|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The "body" of an SQL expression.
An AbstractSqlExpression
consists of exactly one body object,
but the expression is distinct from its body.
Different SqlExpression classes encapsulate what kind of operations can be applied to an expression to yield new expressions.
On the other hand, different Body classes mainly implement the different ways in which the text of an expression can be constructed. For example, it may be constructed as a simple reference to a column, as an operator applied to another expression, as a function applied to a list of argument expressions, etc.
Method Summary | |
java.lang.Class |
getJavaType()
Returns the corresponding Java type of the expression. |
Mapping |
getMapping()
Returns the preferred mapping for mapping this expression to/from Java objects. |
QueryStatement |
getQueryStatement()
Returns the query statement to which the expression belongs. |
Operator |
lowestOperator()
Returns the operator in the expression with the lowest precedence. |
Methods inherited from interface com.triactive.jdo.store.sql.expr.StatementTextGenerator |
toStatementText, toString |
Method Detail |
public QueryStatement getQueryStatement()
Does not need to be especially efficient since AbstractSqlExpression will call it no more than once.
public java.lang.Class getJavaType()
Does not need to be especially efficient since AbstractSqlExpression will call it no more than once.
public Mapping getMapping()
Does not need to be especially efficient since AbstractSqlExpression will call it no more than once.
null
if there is nonepublic Operator lowestOperator()
null
if the expression uses no operators.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |