org.jpox.store.expression
Class ReferenceExpression
java.lang.Object
org.jpox.store.expression.ScalarExpression
org.jpox.store.expression.ReferenceExpression
- public class ReferenceExpression
- extends ScalarExpression
Represents a reference field/object (interface/object) in a JDOQL query.
- Version:
- $Revision: 1.4 $
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 |
Methods inherited from class org.jpox.store.expression.ScalarExpression |
add, and, as, callMethod, com, div, encloseWithInParentheses, eor, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, sub, toStatementText, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ReferenceExpression
public ReferenceExpression(QueryExpression qs,
JavaTypeMapping mapping,
LogicSetExpression te)
- Constructor for a reference expression, using the mapping of the field, and the expression for the table.
- Parameters:
qs
- The Query Statementmapping
- The mapping for the field whose interface we are expressingte
- The expression for the table of the interface.
cast
public ScalarExpression cast(java.lang.Class castType)
- Method for casting a reference expression to some other type in the query.
- Overrides:
cast
in class ScalarExpression
- Parameters:
castType
- The type to cast it to.
- Returns:
- The expression for the casted reference
eq
public BooleanExpression eq(ScalarExpression expr)
- Method for use when handling the equality of reference expressions.
- Overrides:
eq
in class ScalarExpression
- Parameters:
expr
- The expression to compare against
- Returns:
- Expression whether the expressions are equal
noteq
public BooleanExpression noteq(ScalarExpression expr)
- Method for use when handling the inequality of reference expressions.
- Overrides:
noteq
in class ScalarExpression
- Parameters:
expr
- The expression to compare against
- Returns:
- Expression whether the expressions are not equal
accessField
public ScalarExpression accessField(java.lang.String fieldName,
boolean innerJoin)
- Method invoked when accessing a field in the reference.
This is currently not available - you must cast it to a concrete type (since the
reference doesnt have any fields!).
- Overrides:
accessField
in class ScalarExpression
- Parameters:
fieldName
- Name of the field to accessinnerJoin
- whether to join using an inner join
- Returns:
- Expression representing the field of this reference
Copyright © -2007 . All Rights Reserved.