public class BinaryExpr extends AbstractAmberExpr
IS_INNER_JOIN, USES_DATA
Constructor and Description |
---|
BinaryExpr(int token,
AmberExpr left,
AmberExpr right)
Creates a new cmp expression
|
Modifier and Type | Method and Description |
---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item.
|
boolean |
exists(FromItem from)
Returns true if the expression uses the from item.
|
void |
generateHaving(CharBuffer cb)
Generates the having expression.
|
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression.
|
void |
generateWhere(CharBuffer cb)
Generates the where expression.
|
java.lang.Class |
getJavaType()
Returns the java type.
|
boolean |
hasRelationship()
Returns true if this expr has any relationship.
|
boolean |
isBoolean()
Returns true for a boolean expr.
|
AmberExpr |
replaceJoin(JoinExpr join)
Returns true if the expression uses the from item.
|
java.lang.String |
toString() |
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item.
|
createBoolean, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, getObject, getType, setInternalArgType, usesFrom
public boolean hasRelationship()
hasRelationship
in interface AmberExpr
hasRelationship
in class AbstractAmberExpr
public boolean isBoolean()
isBoolean
in interface AmberExpr
isBoolean
in class AbstractAmberExpr
public java.lang.Class getJavaType()
public AmberExpr bindSelect(QueryParser parser)
bindSelect
in interface AmberExpr
bindSelect
in class AbstractAmberExpr
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom
in interface AmberExpr
usesFrom
in class AbstractAmberExpr
public boolean exists(FromItem from)
exists
in interface AmberExpr
exists
in class AbstractAmberExpr
public AmberExpr replaceJoin(JoinExpr join)
replaceJoin
in interface AmberExpr
replaceJoin
in class AbstractAmberExpr
public void generateWhere(CharBuffer cb)
generateWhere
in interface AmberExpr
generateWhere
in class AbstractAmberExpr
public void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere
in interface AmberExpr
generateUpdateWhere
in class AbstractAmberExpr
public void generateHaving(CharBuffer cb)
generateHaving
in interface AmberExpr
generateHaving
in class AbstractAmberExpr
public java.lang.String toString()
toString
in class java.lang.Object