public class AmberColumnExpr extends AbstractAmberExpr
Modifier and Type | Field and Description |
---|---|
protected FromItem |
_fromItem |
protected PathExpr |
_parent |
IS_INNER_JOIN, USES_DATA
Constructor and Description |
---|
AmberColumnExpr(PathExpr parent,
AmberColumn column)
Creates a new unbound id expression.
|
Modifier and Type | Method and Description |
---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item.
|
AmberExpr |
createBoolean()
Returns a boolean expression.
|
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.
|
AmberColumn |
getColumn()
Returns the name.
|
PathExpr |
getParent()
Returns the parent.
|
AmberType |
getType()
Returns the expr type.
|
boolean |
hasRelationship()
Returns true if this expr has any relationship.
|
AmberExpr |
replaceJoin(JoinExpr join)
Replaces linked join to eliminate a table.
|
java.lang.String |
toString() |
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item.
|
exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, getObject, isBoolean, setInternalArgType, usesFrom
public AmberColumnExpr(PathExpr parent, AmberColumn column)
public PathExpr getParent()
public AmberColumn getColumn()
public AmberType getType()
getType
in interface AmberExpr
getType
in class AbstractAmberExpr
public boolean hasRelationship()
hasRelationship
in interface AmberExpr
hasRelationship
in class AbstractAmberExpr
public AmberExpr createBoolean() throws QueryParseException
createBoolean
in interface AmberExpr
createBoolean
in class AbstractAmberExpr
QueryParseException
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 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