C# 클래스 Azavea.Open.DAO.Criteria.Joins.DaoJoinCriteria

This class defines how to join two FastDAOs together.
파일 보기 프로젝트 열기: azavea/net-dao 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BoolType BooleanOperator
Expressions List
LeftCriteria DaoCriteria
Limit int
Orders List
RightCriteria DaoCriteria
Start int
TypeOfJoin JoinType

보호된 프로퍼티들

프로퍼티 타입 설명
_log log4net.ILog

공개 메소드들

메소드 설명
Clear ( ) : void

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

DaoJoinCriteria ( ) : System

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

DaoJoinCriteria ( BooleanOperator howToAddExpressions ) : System

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

DaoJoinCriteria ( IJoinExpression firstExpr ) : System

Constructs an inner join criteria with one expression. May be handy for cases where you only need one expression.

DaoJoinCriteria ( IJoinExpression firstExpr, BooleanOperator howToAddExpressions ) : System

Constructs an inner join criteria with one expression.

DaoJoinCriteria ( JoinType typeOfJoin ) : System

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

DaoJoinCriteria ( JoinType typeOfJoin, BooleanOperator howToAddExpressions ) : System

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

DaoJoinCriteria ( JoinType typeOfJoin, IJoinExpression firstExpr ) : System

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

DaoJoinCriteria ( JoinType typeOfJoin, IJoinExpression firstExpr, BooleanOperator howToAddExpressions ) : System

Constructs a criteria with one expression.

Flip ( ) : DaoJoinCriteria

For some implementations, it's simpler to only implement one-sided joins. So to handle right (or left) joins, you want to flip the criteria so the right and left daos are swapped and you can do a left (or right) join instead.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

메소드 상세

Clear() 공개 메소드

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

DaoJoinCriteria() 공개 메소드

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

DaoJoinCriteria() 공개 메소드

Constructs a blank inner join criteria, which will return all records unless you customize it.
public DaoJoinCriteria ( 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.
리턴 System

DaoJoinCriteria() 공개 메소드

Constructs an inner join criteria with one expression. May be handy for cases where you only need one expression.
public DaoJoinCriteria ( IJoinExpression firstExpr ) : System
firstExpr IJoinExpression The first expression to add.
리턴 System

DaoJoinCriteria() 공개 메소드

Constructs an inner join criteria with one expression.
public DaoJoinCriteria ( IJoinExpression firstExpr, BooleanOperator howToAddExpressions ) : System
firstExpr IJoinExpression 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.
리턴 System

DaoJoinCriteria() 공개 메소드

Constructs a blank criteria, which will return all records unless you customize it. All expressions added to it will be ANDed together.
public DaoJoinCriteria ( JoinType typeOfJoin ) : System
typeOfJoin JoinType Is this an inner join, left join, etc.
리턴 System

DaoJoinCriteria() 공개 메소드

Constructs a blank criteria, which will return all records unless you customize it.
public DaoJoinCriteria ( JoinType typeOfJoin, BooleanOperator howToAddExpressions ) : System
typeOfJoin JoinType Is this an inner join, left join, etc.
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.
리턴 System

DaoJoinCriteria() 공개 메소드

Constructs a criteria with one expression. May be handy for cases where you only need one expression.
public DaoJoinCriteria ( JoinType typeOfJoin, IJoinExpression firstExpr ) : System
typeOfJoin JoinType Is this an inner join, left join, etc.
firstExpr IJoinExpression The first expression to add.
리턴 System

DaoJoinCriteria() 공개 메소드

Constructs a criteria with one expression.
public DaoJoinCriteria ( JoinType typeOfJoin, IJoinExpression firstExpr, BooleanOperator howToAddExpressions ) : System
typeOfJoin JoinType Is this an inner join, left join, etc.
firstExpr IJoinExpression 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.
리턴 System

Flip() 공개 메소드

For some implementations, it's simpler to only implement one-sided joins. So to handle right (or left) joins, you want to flip the criteria so the right and left daos are swapped and you can do a left (or right) join instead.
public Flip ( ) : DaoJoinCriteria
리턴 DaoJoinCriteria

ToString() 공개 메소드

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
리턴 string

프로퍼티 상세

BoolType 공개적으로 프로퍼티

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

Expressions 공개적으로 프로퍼티

The individual expressions that make up this criteria, defaults to empty.
public List Expressions
리턴 List

LeftCriteria 공개적으로 프로퍼티

These are the criteria applied to the left DAO's records by themselves. I.E. only return rows where left.field == 5.
public DaoCriteria LeftCriteria
리턴 DaoCriteria

Limit 공개적으로 프로퍼티

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
리턴 int

Orders 공개적으로 프로퍼티

The list of properties to sort on, defaults to empty.
public List Orders
리턴 List

RightCriteria 공개적으로 프로퍼티

These are the criteria applied to the right DAO's records by themselves. I.E. only return rows where right.field is not null.
public DaoCriteria RightCriteria
리턴 DaoCriteria

Start 공개적으로 프로퍼티

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
리턴 int

TypeOfJoin 공개적으로 프로퍼티

Whether this is an inner join, left join, etc.
public JoinType TypeOfJoin
리턴 JoinType

_log 보호되어 있는 정적으로 프로퍼티

log4net logger for logging any appropriate messages.
protected static ILog,log4net _log
리턴 log4net.ILog