public class ElementCollectionExpr extends AbstractPathExpr
IS_INNER_JOIN, USES_DATA
Constructor and Description |
---|
ElementCollectionExpr(QueryParser parser,
PathExpr parent,
LinkColumns linkColumns,
ElementType targetType)
Creates a new expression to the child objects.
|
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.
|
IdExpr |
createId(FromItem fromItem)
Creates an id expression.
|
boolean |
equals(java.lang.Object o) |
void |
generateHaving(CharBuffer cb)
Generates the having expression.
|
void |
generateSelect(CharBuffer cb)
Generates the where expression.
|
void |
generateUpdateWhere(CharBuffer cb)
Generates the (update) where expression.
|
void |
generateWhere(CharBuffer cb)
Generates the where expression.
|
FromItem |
getChildFromItem()
Returns the child from item.
|
LinkColumns |
getLinkColumns()
Returns the link columns.
|
PathExpr |
getParent()
Returns the parent.
|
AmberTable |
getTable()
Returns the table.
|
AmberBeanType |
getTargetType()
Returns the expr type.
|
AmberType |
getType()
Returns the expr type.
|
java.lang.String |
toString() |
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item.
|
createArray, createField, createLoad
createBoolean, exists, exists, findItem, generateJoin, getCacheObject, getColumnCount, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createBoolean, exists, exists, findItem, generateJoin, getCacheObject, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
public ElementCollectionExpr(QueryParser parser, PathExpr parent, LinkColumns linkColumns, ElementType targetType)
public LinkColumns getLinkColumns()
public AmberType getType()
getType
in interface AmberExpr
getType
in class AbstractAmberExpr
public IdExpr createId(FromItem fromItem)
createId
in interface PathExpr
createId
in class AbstractPathExpr
public AmberBeanType getTargetType()
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom
in interface AmberExpr
usesFrom
in class AbstractAmberExpr
public PathExpr getParent()
public AmberExpr bindSelect(QueryParser parser)
bindSelect
in interface AmberExpr
bindSelect
in class AbstractAmberExpr
public PathExpr bindSelect(QueryParser parser, java.lang.String id)
bindSelect
in interface PathExpr
bindSelect
in class AbstractPathExpr
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 AmberTable getTable()
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 void generateSelect(CharBuffer cb)
generateSelect
in interface AmberExpr
generateSelect
in class AbstractAmberExpr
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object