org.datanucleus.jdo.query
Class PersistableExpressionImpl<T>
java.lang.Object
org.datanucleus.jdo.query.ExpressionImpl<T>
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.
|
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 |
PersistableExpressionImpl
public PersistableExpressionImpl(PersistableExpression parent,
java.lang.String name)
PersistableExpressionImpl
public PersistableExpressionImpl(java.lang.Class<T> cls,
java.lang.String name,
ExpressionType type)
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.