public class ManyToOneExpr extends AbstractPathExpr
IS_INNER_JOIN, USES_DATA
Constructor and Description |
---|
ManyToOneExpr(PathExpr parent,
LinkColumns linkColumns)
Creates a new unbound id expression.
|
Modifier and Type | Method and Description |
---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item.
|
PathExpr |
bindSelect(QueryParser parser,
java.lang.String id)
Binds the expression as a select item.
|
FromItem |
bindSubPath(QueryParser parser)
Binds the expression as a subpath.
|
LoadExpr |
createLoad()
Creates a load expression.
|
boolean |
equals(java.lang.Object o) |
boolean |
exists(FromItem from)
Returns true if the item is forced to exist by the parent
|
void |
generateMatchArgWhere(CharBuffer cb)
Generates the where expression.
|
void |
generateSelect(CharBuffer cb)
Generates the select expression.
|
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression.
|
void |
generateWhere(CharBuffer cb)
Generates the where expression.
|
FromItem |
getChildFromItem()
Return the child from item.
|
FromItem |
getFromItem()
Return the parent from item.
|
LinkColumns |
getLinkColumns()
Returns the link columns.
|
PathExpr |
getParent()
Returns the parent.
|
EntityType |
getTargetType()
Returns the entity class.
|
AmberType |
getType()
Returns the entity class.
|
int |
hashCode() |
java.lang.String |
toString() |
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item.
|
createArray, createField, createId
createBoolean, exists, findItem, generateHaving, generateJoin, getCacheObject, getColumnCount, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createBoolean, exists, findItem, generateHaving, generateJoin, getCacheObject, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
public ManyToOneExpr(PathExpr parent, LinkColumns linkColumns)
public EntityType getTargetType()
public AmberType getType()
getType
in interface AmberExpr
getType
in class AbstractAmberExpr
public AmberExpr bindSelect(QueryParser parser)
bindSelect
in interface AmberExpr
bindSelect
in class AbstractAmberExpr
public FromItem getFromItem()
public LinkColumns getLinkColumns()
public FromItem getChildFromItem()
getChildFromItem
in interface PathExpr
getChildFromItem
in class AbstractPathExpr
public FromItem bindSubPath(QueryParser parser)
bindSubPath
in interface PathExpr
bindSubPath
in class AbstractPathExpr
public PathExpr bindSelect(QueryParser parser, java.lang.String id)
bindSelect
in interface PathExpr
bindSelect
in class AbstractPathExpr
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 void generateMatchArgWhere(CharBuffer cb)
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 generateSelect(CharBuffer cb)
generateSelect
in interface AmberExpr
generateSelect
in class AbstractAmberExpr
public LoadExpr createLoad()
createLoad
in interface PathExpr
createLoad
in class AbstractPathExpr
public PathExpr getParent()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object