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

java.lang.Object
  extended by org.datanucleus.jdo.query.ExpressionImpl<T>
      extended by org.datanucleus.jdo.query.ComparableExpressionImpl<java.lang.Enum>
          extended by org.datanucleus.jdo.query.EnumExpressionImpl<T>
All Implemented Interfaces:
ComparableExpression<java.lang.Enum>, EnumExpression<java.lang.Enum>, Expression<java.lang.Enum>

public class EnumExpressionImpl<T>
extends ComparableExpressionImpl<java.lang.Enum>
implements EnumExpression<java.lang.Enum>

Implementation of an Enum expression.


Constructor Summary
EnumExpressionImpl(java.lang.Class<java.lang.Enum> cls, java.lang.String name, ExpressionType type)
           
EnumExpressionImpl(PersistableExpression parent, java.lang.String name)
           
 
Method Summary
 NumericExpression ordinal()
          Method to return an expression for the ordinal of this enum.
 
Methods inherited from class org.datanucleus.jdo.query.ComparableExpressionImpl
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
 
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.ComparableExpression
asc, desc, gt, gt, gteq, gteq, lt, lt, lteq, lteq, max, min
 
Methods inherited from interface org.datanucleus.query.typesafe.Expression
cast, count, countDistinct, eq, eq, instanceOf, ne, ne
 

Constructor Detail

EnumExpressionImpl

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

EnumExpressionImpl

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

ordinal

public NumericExpression ordinal()
Description copied from interface: EnumExpression
Method to return an expression for the ordinal of this enum.

Specified by:
ordinal in interface EnumExpression<java.lang.Enum>
Returns:
Expression for the ordinal of the passed enum


Copyright © 2011. All Rights Reserved.