org.datanucleus.jdo.query
Class PersistableExpressionImpl<T>

java.lang.Object
  extended by org.datanucleus.jdo.query.ExpressionImpl<T>
      extended by org.datanucleus.jdo.query.PersistableExpressionImpl<T>
All Implemented Interfaces:
Expression<T>, PersistableExpression<T>

public class PersistableExpressionImpl<T>
extends ExpressionImpl<T>
implements PersistableExpression<T>

(Base) implementation of a persistable expression. This will be extended by the "Q" class implementations of PersistableExpression to add on public fields that equate to the fields/properties of the persistable class.


Constructor Summary
PersistableExpressionImpl(java.lang.Class<T> cls, java.lang.String name, ExpressionType type)
           
PersistableExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
Method Summary
 Expression jdoObjectId()
          Method to return an expression for the identity of this persistable object.
 Expression jdoVersion()
          Method to return an expression for the version of this persistable object.
 
Methods inherited from class org.datanucleus.jdo.query.ExpressionImpl
cast, count, countDistinct, eq, eq, getQueryExpression, instanceOf, isParameter, isVariable, ne, ne
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Constructor Detail

PersistableExpressionImpl

public PersistableExpressionImpl(PersistableExpression parent,
                                 java.lang.String name)

PersistableExpressionImpl

public PersistableExpressionImpl(java.lang.Class<T> cls,
                                 java.lang.String name,
                                 ExpressionType type)
Method Detail

jdoObjectId

public Expression jdoObjectId()
Description copied from interface: PersistableExpression
Method to return an expression for the identity of this persistable object. TODO Only applicable to JDOQL so move to language specific interface

Specified by:
jdoObjectId in interface PersistableExpression<T>
Returns:
The identity expression

jdoVersion

public Expression jdoVersion()
Description copied from interface: PersistableExpression
Method to return an expression for the version of this persistable object. TODO Only applicable to JDOQL so move to language specific interface

Specified by:
jdoVersion in interface PersistableExpression<T>
Returns:
The version expression


Copyright © 2011. All Rights Reserved.