Class RelationQuery.OrderSpec

  • Enclosing class:
    RelationQuery

    public class RelationQuery.OrderSpec
    extends java.lang.Object
    The Class OrderSpec. Each instance of OrderSpec defines an attribute and whether we want to sort ascending or descending on it.
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderSpec​(java.lang.String attribute, RelationQuery.ORDERING ascending)
      Instantiates a new order spec.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAttribute()
      Gets the attribute.
      boolean isAscending()
      Checks if is ascending.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OrderSpec

        public OrderSpec​(java.lang.String attribute,
                         RelationQuery.ORDERING ascending)
        Instantiates a new order spec.
        Parameters:
        attribute - the attribute
        ascending - the ascending
    • Method Detail

      • getAttribute

        public java.lang.String getAttribute()
        Gets the attribute.
        Returns:
        the attribute
      • isAscending

        public boolean isAscending()
        Checks if is ascending.
        Returns:
        true, if is ascending