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

Inheritance: IJoinExpression
Datei anzeigen Open project: azavea/net-dao

Protected Properties

Property Type Description
_trueOrNot bool

Public Methods

Method Description
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.

ToString ( ) : string
TrueOrNot ( ) : bool

This tells you whether you want things that match, or things that don't match, this expression.

Protected Methods

Method Description
AbstractJoinExpression ( bool trueOrNot ) : System

This lets you specify whether to negate this expression.

Method Details

AbstractJoinExpression() protected method

This lets you specify whether to negate this expression.
protected AbstractJoinExpression ( bool trueOrNot ) : System
trueOrNot bool True means look for matches (I.E. ==), /// false means look for non-matches (I.E. !=)
return System

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

Invert() public abstract 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 abstract Invert ( ) : IExpression
return IExpression

ToString() public method

public ToString ( ) : string
return string

TrueOrNot() public method

This tells you whether you want things that match, or things that don't match, this expression.
public TrueOrNot ( ) : bool
return bool

Property Details

_trueOrNot protected_oe property

Holds the value indicating whether this expression is negated.
protected bool _trueOrNot
return bool