public interface AmberExpr
Modifier and Type | Field and Description |
---|---|
static int |
IS_INNER_JOIN |
static int |
USES_DATA |
Modifier and Type | Method and Description |
---|---|
AmberExpr |
bindSelect(QueryParser parser)
Binds the expression as a select item.
|
AmberExpr |
createBoolean()
Converts to a boolean expression.
|
boolean |
exists()
Returns true if the expression item is required to exist, e.g.
|
boolean |
exists(FromItem from)
Returns true if the item is required to exist by the expression, e.g.
|
EntityItem |
findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
void |
generateHaving(CharBuffer cb)
Generates the having expression.
|
void |
generateJoin(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.
|
java.lang.Object |
getCacheObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the cache object for the expr.
|
java.lang.Object |
getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
Returns the object for the expr.
|
AmberType |
getType()
Returns the expr type.
|
boolean |
hasRelationship()
Returns true if this expr has any relationship.
|
boolean |
isBoolean()
Returns true for a boolean expression.
|
AmberExpr |
replaceJoin(JoinExpr join)
Returns true if the expression uses the from item.
|
void |
setInternalArgType(AmberExpr otherExpr)
Binds the argument type based on another expr.
|
boolean |
usesFrom(FromItem from,
int type)
Returns true if the expression uses the from item.
|
boolean |
usesFrom(FromItem from,
int type,
boolean isNot)
Returns true if the expression uses the from item.
|
static final int USES_DATA
static final int IS_INNER_JOIN
boolean isBoolean()
AmberType getType()
AmberExpr bindSelect(QueryParser parser)
boolean usesFrom(FromItem from, int type)
boolean usesFrom(FromItem from, int type, boolean isNot)
boolean exists(FromItem from)
boolean exists()
void generateWhere(CharBuffer cb)
void generateUpdateWhere(CharBuffer cb)
void generateHaving(CharBuffer cb)
void generateJoin(CharBuffer cb)
void generateSelect(CharBuffer cb)
AmberExpr createBoolean() throws QueryParseException
QueryParseException
java.lang.Object getObject(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
java.sql.SQLException
java.lang.Object getCacheObject(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
java.sql.SQLException
boolean hasRelationship()
EntityItem findItem(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
java.sql.SQLException
void setInternalArgType(AmberExpr otherExpr)