C# Class Azavea.Open.DAO.Criteria.DaoCriteria

Datei anzeigen Open project: azavea/net-dao Class Usage Examples

Public Properties

Property Type Description
BoolType BooleanOperator
Expressions List
Limit int
Orders List
Start int

Public Methods

Method Description
Clear ( ) : void

Completely clears the object so that it may be used over again.

CopyFrom ( DaoCriteria other ) : void

Makes this DaoCriteria into a copy of the other one. Any existing orders, expressions, etc. on this one are lost.

DaoCriteria ( ) : System

Constructs a blank criteria, which will return all records unless you customize it. All expressions added to it will be ANDed together.

DaoCriteria ( BooleanOperator howToAddExpressions ) : System

Constructs a blank criteria, which will return all records unless you customize it.

DaoCriteria ( IExpression firstExpr ) : System

Constructs a criteria with one expression. May be handy for cases where you only need one expression.

DaoCriteria ( IExpression firstExpr, BooleanOperator howToAddExpressions ) : System

Constructs a criteria with one expression.

Method Details

Clear() public method

Completely clears the object so that it may be used over again.
public Clear ( ) : void
return void

CopyFrom() public method

Makes this DaoCriteria into a copy of the other one. Any existing orders, expressions, etc. on this one are lost.
public CopyFrom ( DaoCriteria other ) : void
other DaoCriteria Criteria to copy everything from.
return void

DaoCriteria() public method

Constructs a blank criteria, which will return all records unless you customize it. All expressions added to it will be ANDed together.
public DaoCriteria ( ) : System
return System

DaoCriteria() public method

Constructs a blank criteria, which will return all records unless you customize it.
public DaoCriteria ( BooleanOperator howToAddExpressions ) : System
howToAddExpressions BooleanOperator How expressions will be added together. Determines /// if we do exp1 AND exp2 AND exp3, or if we do /// exp1 OR exp2 OR exp3.
return System

DaoCriteria() public method

Constructs a criteria with one expression. May be handy for cases where you only need one expression.
public DaoCriteria ( IExpression firstExpr ) : System
firstExpr IExpression The first expression to add.
return System

DaoCriteria() public method

Constructs a criteria with one expression.
public DaoCriteria ( IExpression firstExpr, BooleanOperator howToAddExpressions ) : System
firstExpr IExpression The first expression to add.
howToAddExpressions BooleanOperator How expressions will be added together. Determines /// if we do exp1 AND exp2 AND exp3, or if we do /// exp1 OR exp2 OR exp3.
return System

Property Details

BoolType public_oe property

Whether this is an "AND" criteria or an "OR" criteria.
public BooleanOperator BoolType
return BooleanOperator

Expressions public_oe property

The individual expressions that make up this criteria. Defaults to empty. Expressions can be added, cleared, etc.
public List Expressions
return List

Limit public_oe property

Used to limit the data returned, only data rows Start to Start + Limit will be returned. A value of -1 means ignore this parameter.
public int Limit
return int

Orders public_oe property

The list of properties to sort on. Defaults to empty, you may add, clear, reorder, etc.
public List Orders
return List

Start public_oe property

Used to limit the data returned, only data rows Start to Start + Limit will be returned. A value of -1 means ignore this parameter.
public int Start
return int