org.datanucleus.jpa.criteria
Class OrderImpl

java.lang.Object
  extended by org.datanucleus.jpa.criteria.OrderImpl
All Implemented Interfaces:
javax.persistence.criteria.Order

public class OrderImpl
extends java.lang.Object
implements javax.persistence.criteria.Order

Implementation of JPA2 Criteria "Order".


Constructor Summary
OrderImpl(javax.persistence.criteria.Expression<?> expr, boolean asc)
          Constructor for an Order.
 
Method Summary
 javax.persistence.criteria.Expression<?> getExpression()
           
 org.datanucleus.query.expression.OrderExpression getQueryExpression()
          Method to return the underlying DataNucleus query expression that this equates to.
 boolean isAscending()
           
 javax.persistence.criteria.Order reverse()
           
 java.lang.String toString()
          Method to return the JPQL single-string that this equates to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderImpl

public OrderImpl(javax.persistence.criteria.Expression<?> expr,
                 boolean asc)
Constructor for an Order.

Parameters:
expr - The expression
asc - Whether it is ascending
Method Detail

getExpression

public javax.persistence.criteria.Expression<?> getExpression()
Specified by:
getExpression in interface javax.persistence.criteria.Order

isAscending

public boolean isAscending()
Specified by:
isAscending in interface javax.persistence.criteria.Order

reverse

public javax.persistence.criteria.Order reverse()
Specified by:
reverse in interface javax.persistence.criteria.Order

getQueryExpression

public org.datanucleus.query.expression.OrderExpression getQueryExpression()
Method to return the underlying DataNucleus query expression that this equates to.

Returns:
The order Expression

toString

public java.lang.String toString()
Method to return the JPQL single-string that this equates to.

Overrides:
toString in class java.lang.Object
Returns:
The JPQL single-string form of this order


Copyright © 2011. All Rights Reserved.