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

java.lang.Object
  extended by org.datanucleus.jdo.query.OrderExpressionImpl<T>
All Implemented Interfaces:
OrderExpression<T>

public class OrderExpressionImpl<T>
extends java.lang.Object
implements OrderExpression<T>

Implementation of an ordering expression.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.datanucleus.query.typesafe.OrderExpression
OrderExpression.OrderDirection
 
Field Summary
protected  OrderExpression.OrderDirection direction
          The order direction for this expression.
protected  Expression orderExpr
          The ordering expression.
 
Constructor Summary
OrderExpressionImpl(Expression<T> expr, OrderExpression.OrderDirection dir)
           
 
Method Summary
 OrderExpression.OrderDirection getDirection()
          Accessor for the direction of the ordering with this expression.
 Expression<T> getExpression()
          Accessor for the expression being used for ordering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orderExpr

protected Expression orderExpr
The ordering expression.


direction

protected OrderExpression.OrderDirection direction
The order direction for this expression.

Constructor Detail

OrderExpressionImpl

public OrderExpressionImpl(Expression<T> expr,
                           OrderExpression.OrderDirection dir)
Method Detail

getDirection

public OrderExpression.OrderDirection getDirection()
Description copied from interface: OrderExpression
Accessor for the direction of the ordering with this expression.

Specified by:
getDirection in interface OrderExpression<T>
Returns:
The direction

getExpression

public Expression<T> getExpression()
Description copied from interface: OrderExpression
Accessor for the expression being used for ordering.

Specified by:
getExpression in interface OrderExpression<T>
Returns:
Ordering expression


Copyright © 2011. All Rights Reserved.