public class EmbeddedExpr extends AbstractPathExpr
IS_INNER_JOIN, USES_DATA| Constructor and Description |
|---|
EmbeddedExpr(PathExpr parent,
EmbeddableType embeddableType,
java.util.ArrayList<EmbeddedSubField> subFields)
Creates a new 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.
|
boolean |
equals(java.lang.Object o) |
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.
|
AmberColumn |
getColumnByFieldName(java.lang.String fieldName)
Returns column by name.
|
FromItem |
getFromItem()
Return the parent from item.
|
PathExpr |
getParent()
Returns the parent.
|
EmbeddableType |
getTargetType()
Returns the target type.
|
AmberType |
getType()
Returns the target type.
|
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, createLoadcreateBoolean, exists, exists, findItem, generateHaving, generateJoin, getCacheObject, getColumnCount, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFromclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateBoolean, exists, exists, findItem, generateHaving, generateJoin, getCacheObject, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrompublic EmbeddedExpr(PathExpr parent, EmbeddableType embeddableType, java.util.ArrayList<EmbeddedSubField> subFields)
public EmbeddableType getTargetType()
public AmberType getType()
getType in interface AmberExprgetType in class AbstractAmberExprpublic AmberColumn getColumnByFieldName(java.lang.String fieldName)
public AmberExpr bindSelect(QueryParser parser)
bindSelect in interface AmberExprbindSelect in class AbstractAmberExprpublic FromItem getFromItem()
public FromItem getChildFromItem()
getChildFromItem in interface PathExprgetChildFromItem in class AbstractPathExprpublic FromItem bindSubPath(QueryParser parser)
bindSubPath in interface PathExprbindSubPath in class AbstractPathExprpublic PathExpr bindSelect(QueryParser parser, java.lang.String id)
bindSelect in interface PathExprbindSelect in class AbstractPathExprpublic boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom in interface AmberExprusesFrom in class AbstractAmberExprpublic void generateMatchArgWhere(CharBuffer cb)
public void generateWhere(CharBuffer cb)
generateWhere in interface AmberExprgenerateWhere in class AbstractAmberExprpublic void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere in interface AmberExprgenerateUpdateWhere in class AbstractAmberExprpublic void generateSelect(CharBuffer cb)
generateSelect in interface AmberExprgenerateSelect in class AbstractAmberExprpublic PathExpr getParent()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object