|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.amber.expr.AbstractAmberExpr
public abstract class AbstractAmberExpr
Represents an Amber query expression
Field Summary |
---|
Fields inherited from interface com.caucho.amber.expr.AmberExpr |
---|
IS_INNER_JOIN, USES_DATA |
Constructor Summary | |
---|---|
AbstractAmberExpr()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAmberExpr()
Method Detail |
---|
public boolean isBoolean()
isBoolean
in interface AmberExpr
public AmberType getType()
getType
in interface AmberExpr
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)
usesFrom
in interface AmberExpr
public boolean usesFrom(FromItem from, int type, boolean isNot)
usesFrom
in interface AmberExpr
public boolean exists(FromItem from)
exists
in interface AmberExpr
public boolean exists()
exists
in interface AmberExpr
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
getObject
in interface AmberExpr
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
findItem
in interface AmberExpr
java.sql.SQLException
public void setInternalArgType(AmberExpr other)
setInternalArgType
in interface AmberExpr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |