public abstract class LoadExpr extends AbstractAmberExpr
IS_INNER_JOIN, USES_DATA
Modifier and Type | Method and Description |
---|---|
FromItem |
bindSubPath(QueryParser parser)
Binds the expression as a select item.
|
static LoadExpr |
create(PathExpr expr) |
static LoadExpr |
create(PathExpr expr,
FromItem rootItem) |
void |
generateHaving(CharBuffer cb,
java.lang.String fieldName)
Generates the having expression.
|
void |
generateSelect(CharBuffer cb)
Generates the where expression.
|
void |
generateSelect(CharBuffer cb,
boolean fullSelect)
Generates the where expression.
|
void |
generateUpdateWhere(CharBuffer cb,
java.lang.String fieldName)
Generates the (update) where expression.
|
void |
generateWhere(CharBuffer cb,
java.lang.String fieldName)
Generates the where expression.
|
FromItem |
getChildFromItem()
Returns the from item
|
PathExpr |
getExpr()
Returns the underlying expression
|
int |
getIndex()
Returns the number of columns consumed from
a result set after loading the entity.
|
java.lang.String |
getTable()
Returns the table.
|
AmberType |
getType()
Returns the type.
|
java.lang.String |
toString() |
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item.
|
bindSelect, createBoolean, exists, exists, findItem, generateHaving, generateJoin, generateUpdateWhere, generateWhere, getCacheObject, getColumnCount, getObject, hasRelationship, isBoolean, replaceJoin, setInternalArgType, usesFrom
public AmberType getType()
getType
in interface AmberExpr
getType
in class AbstractAmberExpr
public PathExpr getExpr()
public int getIndex()
public java.lang.String getTable()
public FromItem bindSubPath(QueryParser parser)
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom
in interface AmberExpr
usesFrom
in class AbstractAmberExpr
public FromItem getChildFromItem()
public void generateSelect(CharBuffer cb)
generateSelect
in interface AmberExpr
generateSelect
in class AbstractAmberExpr
public void generateSelect(CharBuffer cb, boolean fullSelect)
public void generateWhere(CharBuffer cb, java.lang.String fieldName)
public void generateUpdateWhere(CharBuffer cb, java.lang.String fieldName)
public void generateHaving(CharBuffer cb, java.lang.String fieldName)
public java.lang.String toString()
toString
in class java.lang.Object