public class AndExpr extends AbstractAmberExpr
IS_INNER_JOIN, USES_DATA| Constructor and Description |
|---|
AndExpr() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AmberExpr expr)
Adds a new component.
|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item.
|
static AmberExpr |
create(AmberExpr left,
AmberExpr right)
Creates the and.
|
boolean |
exists(FromItem from)
Returns true if the from item is used in the expression
|
void |
generateHaving(CharBuffer cb)
Generates the having expression.
|
void |
generateJoin(CharBuffer cb)
Generates the join expression.
|
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression.
|
void |
generateWhere(CharBuffer cb)
Generates the where expression.
|
java.util.ArrayList<AmberExpr> |
getComponents()
Returns the components.
|
AmberExpr |
getSingle()
Returns a single expression.
|
boolean |
isBoolean()
Returns true for a boolean expression.
|
AmberExpr |
replaceJoin(JoinExpr join)
Returns true if the expression uses the from item.
|
void |
setInternalArgType(AmberExpr other)
Binds the argument type based on another expr.
|
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item.
|
createBoolean, exists, findItem, generateSelect, getCacheObject, getColumnCount, getObject, getType, hasRelationship, usesFrompublic static AmberExpr create(AmberExpr left, AmberExpr right) throws QueryParseException
QueryParseExceptionpublic boolean isBoolean()
isBoolean in interface AmberExprisBoolean in class AbstractAmberExprpublic void add(AmberExpr expr)
public java.util.ArrayList<AmberExpr> getComponents()
public AmberExpr bindSelect(QueryParser parser)
bindSelect in interface AmberExprbindSelect in class AbstractAmberExprpublic AmberExpr getSingle()
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom in interface AmberExprusesFrom in class AbstractAmberExprpublic boolean exists(FromItem from)
exists in interface AmberExprexists in class AbstractAmberExprpublic AmberExpr replaceJoin(JoinExpr join)
replaceJoin in interface AmberExprreplaceJoin in class AbstractAmberExprpublic void generateWhere(CharBuffer cb)
generateWhere in interface AmberExprgenerateWhere in class AbstractAmberExprpublic void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere in interface AmberExprgenerateUpdateWhere in class AbstractAmberExprpublic void generateHaving(CharBuffer cb)
generateHaving in interface AmberExprgenerateHaving in class AbstractAmberExprpublic void generateJoin(CharBuffer cb)
generateJoin in interface AmberExprgenerateJoin in class AbstractAmberExprpublic void setInternalArgType(AmberExpr other)
setInternalArgType in interface AmberExprsetInternalArgType in class AbstractAmberExpr