public abstract class AbstractAmberExpr extends java.lang.Object implements AmberExpr
IS_INNER_JOIN, USES_DATA
Constructor and Description |
---|
AbstractAmberExpr() |
Modifier and Type | Method and Description |
---|---|
abstract 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 must exist
|
boolean |
exists(FromItem from)
Returns true if the expression must exist
|
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 in a join 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 object for the expr.
|
int |
getColumnCount()
Returns the number of columns.
|
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 other)
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.
|
public boolean isBoolean()
public AmberType getType()
public boolean hasRelationship()
hasRelationship
in interface AmberExpr
public AmberExpr createBoolean() throws QueryParseException
createBoolean
in interface AmberExpr
QueryParseException
public abstract AmberExpr bindSelect(QueryParser parser)
bindSelect
in interface AmberExpr
public boolean usesFrom(FromItem from, int type)
public boolean usesFrom(FromItem from, int type, boolean isNot)
public boolean exists(FromItem from)
public boolean exists()
public AmberExpr replaceJoin(JoinExpr join)
replaceJoin
in interface AmberExpr
public int getColumnCount()
public void generateWhere(CharBuffer cb)
generateWhere
in interface AmberExpr
public void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere
in interface AmberExpr
public void generateHaving(CharBuffer cb)
generateHaving
in interface AmberExpr
public void generateJoin(CharBuffer cb)
generateJoin
in interface AmberExpr
public void generateSelect(CharBuffer cb)
generateSelect
in interface AmberExpr
public java.lang.Object getObject(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
public java.lang.Object getCacheObject(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
getCacheObject
in interface AmberExpr
java.sql.SQLException
public EntityItem findItem(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
public void setInternalArgType(AmberExpr other)
setInternalArgType
in interface AmberExpr