|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.expression.ScalarExpression
org.jpox.store.expression.UnboundVariable
Representation of an unbound variable in a Query.
Nested Class Summary |
Nested classes inherited from class org.jpox.store.expression.ScalarExpression |
ScalarExpression.DyadicOperator, ScalarExpression.ExpressionList, ScalarExpression.FieldExpression, ScalarExpression.IllegalArgumentTypeException, ScalarExpression.IllegalOperationException, ScalarExpression.MethodInvocationException, ScalarExpression.MonadicOperator, ScalarExpression.Operator |
Field Summary |
Fields inherited from class org.jpox.store.expression.ScalarExpression |
aliasIdentifier, expressionList, FILTER, LOCALISER, lowestOperator, mapping, OP_ADD, OP_AND, OP_BETWEEN, OP_COM, OP_CONCAT, OP_DIV, OP_EQ, OP_GT, OP_GTEQ, OP_IN, OP_IS, OP_ISNOT, OP_LIKE, OP_LT, OP_LTEQ, OP_MOD, OP_MUL, OP_NEG, OP_NOT, OP_NOTEQ, OP_OR, OP_SUB, PROJECTION, qs, st, te |
Constructor Summary | |
UnboundVariable(QueryExpression qs,
java.lang.String name,
java.lang.Class type,
JDOQLQuery.Compiler compiler)
Constructor. |
Method Summary | |
ScalarExpression |
accessField(java.lang.String fieldName,
boolean innerJoin)
Method to access a field in the class of the variable. |
void |
bindTo(ScalarExpression qsc)
Method to bind this variable to its expression, using the JDOQL compiler. |
BooleanExpression |
eq(ScalarExpression expr)
Checks if one expression is equals the other expression |
ScalarExpression.ExpressionList |
getExpressionList()
Returns the expression list. |
LogicSetExpression |
getLogicSetExpression()
Accessor for the table expression being used by this expression. |
java.lang.String |
getVariableName()
Accessor for the variable name. |
java.lang.Class |
getVariableType()
Accessor for the variable type. |
BooleanExpression |
noteq(ScalarExpression expr)
Checks if one expression is not equals the other expression |
void |
setVariableType(java.lang.Class type)
Mutator for the variable type in the case where we have an implicit variable and its type is not known at construction. |
StatementText |
toStatementText()
StatementText representation of this expression. |
StatementText |
toStatementText(int mode)
Change the output statement text to refer to the bound to expression since it has real fields and this is only a variable. |
Methods inherited from class org.jpox.store.expression.ScalarExpression |
add, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, equals, getAlias, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, sub, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UnboundVariable(QueryExpression qs, java.lang.String name, java.lang.Class type, JDOQLQuery.Compiler compiler)
qs
- The Query Expressionname
- Name of the variabletype
- Type of the variable (if known at this point)compiler
- The JDOQL compiler that we can bind with when we know what to bind to.Method Detail |
public java.lang.String getVariableName()
public LogicSetExpression getLogicSetExpression()
ScalarExpression
getLogicSetExpression
in class ScalarExpression
public java.lang.Class getVariableType()
public void setVariableType(java.lang.Class type)
type
- The typepublic void bindTo(ScalarExpression qsc)
qsc
- The expression to bind to.public StatementText toStatementText(int mode)
toStatementText
in class ScalarExpression
mode
- Mode of operation
public ScalarExpression.ExpressionList getExpressionList()
ScalarExpression
getExpressionList
in class ScalarExpression
public StatementText toStatementText()
public BooleanExpression eq(ScalarExpression expr)
eq
in class ScalarExpression
expr
- the expression to check if this is equals to the expression
public BooleanExpression noteq(ScalarExpression expr)
noteq
in class ScalarExpression
expr
- the expression to check if this is not equals to the expression
public ScalarExpression accessField(java.lang.String fieldName, boolean innerJoin)
accessField
in class ScalarExpression
fieldName
- Name of the field to accessinnerJoin
- whether to use an inner join to access this field
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |