C# Class Azavea.Open.DAO.Criteria.Joins.EqualJoinExpression

Inheritance: AbstractOnePropertyEachJoinExpression
Mostra file Open project: azavea/net-dao

Public Methods

Method Description
EqualJoinExpression ( string leftProperty, string rightProperty ) : System

LeftProperty == RightProperty. Does not accept wild cards.

EqualJoinExpression ( string leftProperty, string rightProperty, bool trueOrNot ) : System

LeftProperty == RightProperty. Does not accept wild cards.

Flip ( ) : IJoinExpression

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.

Invert ( ) : IExpression

Produces an expression that is the exact opposite of this expression. The new expression should exclude everything this one includes, and include everything this one excludes.

Method Details

EqualJoinExpression() public method

LeftProperty == RightProperty. Does not accept wild cards.
public EqualJoinExpression ( string leftProperty, string rightProperty ) : System
leftProperty string The name of the property on the object returned by the /// left DAO that we are comparing.
rightProperty string The name of the property on the object returned by the /// right DAO that we are comparing.
return System

EqualJoinExpression() public method

LeftProperty == RightProperty. Does not accept wild cards.
public EqualJoinExpression ( string leftProperty, string rightProperty, bool trueOrNot ) : System
leftProperty string The name of the property on the object returned by the /// left DAO that we are comparing.
rightProperty string The name of the property on the object returned by the /// right DAO that we are comparing.
trueOrNot bool True means look for matches (I.E. ==), /// false means look for non-matches (I.E. !=)
return System

Flip() public method

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 ( ) : IJoinExpression
return IJoinExpression

Invert() public method

Produces an expression that is the exact opposite of this expression. The new expression should exclude everything this one includes, and include everything this one excludes.
public Invert ( ) : IExpression
return IExpression