public class IdExpr extends AbstractPathExpr
IS_INNER_JOIN, USES_DATA
Constructor and Description |
---|
IdExpr(FromItem fromItem)
Creates a new unbound id expression.
|
Modifier and Type | Method and Description |
---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item.
|
FromItem |
bindSubPath(QueryParser parser)
Binds the expression as a select item.
|
LoadExpr |
createLoad()
Creates a load expression.
|
boolean |
equals(java.lang.Object o) |
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.
|
FromItem |
getChildFromItem()
Returns the from item
|
FromItem |
getFromItem()
Returns the from item
|
AmberBeanType |
getTargetType()
Returns the entity class.
|
int |
hashCode() |
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.
|
bindSelect, createArray, createField, createId
createBoolean, exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getColumnCount, getObject, getType, hasRelationship, isBoolean, setInternalArgType, usesFrom
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createBoolean, exists, exists, findItem, generateJoin, generateSelect, getCacheObject, getObject, getType, hasRelationship, isBoolean, setInternalArgType, usesFrom
public IdExpr(FromItem fromItem)
public FromItem getFromItem()
public FromItem getChildFromItem()
getChildFromItem
in interface PathExpr
getChildFromItem
in class AbstractPathExpr
public AmberBeanType getTargetType()
public AmberExpr bindSelect(QueryParser parser)
bindSelect
in interface AmberExpr
bindSelect
in class AbstractAmberExpr
public FromItem bindSubPath(QueryParser parser)
bindSubPath
in interface PathExpr
bindSubPath
in class AbstractPathExpr
public LoadExpr createLoad()
createLoad
in interface PathExpr
createLoad
in class AbstractPathExpr
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
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object