ConditionAndOr

An 'and' or 'or' condition as in WHERE ID=1 AND NAME=?

Methods
void addFilterConditions(TableFilter filter, boolean outerJoin)
void addFilterConditions(TableFilter filter, boolean outerJoin)
void createIndexConditions(Session session, TableFilter filter)
void createIndexConditions(Session session, TableFilter filter)
int getCost()
int getCost()
Expression getExpression(boolean getLeft)
Get the left or the right sub-expression of this condition.
Expression getExpression(boolean getLeft)
Get the left or the right sub-expression of this condition.
Parameters:
getLeft - true to get the left sub-expression, false to get the right sub-expression.
Returns:
the sub-expression
Expression getNotIfPossible(Session session)
Expression getNotIfPossible(Session session)
String getSQL()
String getSQL()
Value getValue(Session session)
Value getValue(Session session)
boolean isEverything(ExpressionVisitor visitor)
boolean isEverything(ExpressionVisitor visitor)
void mapColumns(ColumnResolver resolver, int level)
void mapColumns(ColumnResolver resolver, int level)
Expression optimize(Session session)
Expression optimize(Session session)
void setEvaluatable(TableFilter tableFilter, boolean b)
void setEvaluatable(TableFilter tableFilter, boolean b)
void updateAggregate(Session session)
void updateAggregate(Session session)

Fields
static int AND = 0
static int OR = 1

AND = 0

The AND condition type as in ID=1 AND NAME='Hello'.

OR = 1

The OR condition type as in ID=1 OR NAME='Hello'.