|
||||||||||
| 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. |
Type |
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 AmberExprpublic Type getType()
getType in interface AmberExprpublic boolean hasRelationship()
hasRelationship in interface AmberExpr
public AmberExpr createBoolean()
throws QueryParseException
createBoolean in interface AmberExprQueryParseExceptionpublic 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 AmberExprpublic boolean exists(FromItem from)
exists in interface AmberExprpublic boolean exists()
exists in interface AmberExprpublic 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 AmberExpr
public java.lang.Object getObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
getObject in interface AmberExprjava.sql.SQLException
public java.lang.Object getCacheObject(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
getCacheObject in interface AmberExprjava.sql.SQLException
public EntityItem findItem(AmberConnection aConn,
java.sql.ResultSet rs,
int index)
throws java.sql.SQLException
findItem in interface AmberExprjava.sql.SQLExceptionpublic void setInternalArgType(AmberExpr other)
setInternalArgType in interface AmberExpr
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||