org.jpox.store.expression
Class ClassExpression

java.lang.Object
  extended byorg.jpox.store.expression.ScalarExpression
      extended byorg.jpox.store.expression.ClassExpression

public class ClassExpression
extends ScalarExpression

An expression representing a class. This is used in JDOQL when wanting to

In the first case we invoke accessField on the ClassExpression. In the second case we invoke instanceOf on an ObjectExpression, passing in a ClassExpression.

Version:
$Revision: 1.5 $

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
ClassExpression(QueryExpression qs, java.lang.Class cls)
          Constructor.
 
Method Summary
 ScalarExpression accessField(java.lang.String fieldName, boolean innerJoin)
          Method called when wanting to call public static final methods on the class.
 java.lang.Class getCls()
          Accessor for the class being represented.
 
Methods inherited from class org.jpox.store.expression.ScalarExpression
add, and, as, callMethod, cast, com, div, encloseWithInParentheses, eor, eq, equals, getAlias, getExpressionList, getLogicSetExpression, getMapping, getNonAliasExpression, getQueryExpression, gt, gteq, in, instanceOf, ior, lt, lteq, mod, mul, neg, not, noteq, sub, toStatementText, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassExpression

public ClassExpression(QueryExpression qs,
                       java.lang.Class cls)
Constructor.

Parameters:
qs - The Query Statement
cls - The class
Method Detail

getCls

public java.lang.Class getCls()
Accessor for the class being represented.

Returns:
The class

accessField

public ScalarExpression accessField(java.lang.String fieldName,
                                    boolean innerJoin)
Method called when wanting to call public static final methods on the class.

Overrides:
accessField in class ScalarExpression
Parameters:
fieldName - Name of the public static final field
innerJoin - Not used
Returns:
Expression for the field access


Copyright © -2007 . All Rights Reserved.