Class OrderImpl

  • All Implemented Interfaces:
    javax.persistence.criteria.Order

    public class OrderImpl
    extends Object
    implements javax.persistence.criteria.Order
    Implementation of JPA Criteria "Order".
    • 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
      • nullsFirst

        public javax.persistence.criteria.Order nullsFirst()
        Specified by:
        nullsFirst in interface javax.persistence.criteria.Order
      • nullsLast

        public javax.persistence.criteria.Order nullsLast()
        Specified by:
        nullsLast in interface javax.persistence.criteria.Order
      • getQueryExpression

        public org.datanucleus.store.query.expression.OrderExpression getQueryExpression()
        Method to return the underlying DataNucleus query expression that this equates to.
        Returns:
        The order Expression
      • toString

        public String toString()
        Method to return the JPQL single-string that this equates to.
        Overrides:
        toString in class Object
        Returns:
        The JPQL single-string form of this order