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 AmberExprpublic AmberExpr createBoolean() throws QueryParseException
createBoolean in interface AmberExprQueryParseExceptionpublic abstract AmberExpr bindSelect(QueryParser parser)
bindSelect in interface AmberExprpublic 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 AmberExprpublic int getColumnCount()
public void generateWhere(CharBuffer cb)
generateWhere in interface AmberExprpublic void generateUpdateWhere(CharBuffer cb)
generateUpdateWhere in interface AmberExprpublic void generateHaving(CharBuffer cb)
generateHaving in interface AmberExprpublic void generateJoin(CharBuffer cb)
generateJoin in interface AmberExprpublic void generateSelect(CharBuffer cb)
generateSelect in interface AmberExprpublic 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 AmberExprjava.sql.SQLExceptionpublic EntityItem findItem(AmberConnection aConn, java.sql.ResultSet rs, int index) throws java.sql.SQLException
public void setInternalArgType(AmberExpr other)
setInternalArgType in interface AmberExpr