Enum Class SqlOrder.Order

java.lang.Object
java.lang.Enum<SqlOrder.Order>
org.sqlproc.engine.SqlOrder.Order
All Implemented Interfaces:
Serializable, Comparable<SqlOrder.Order>, Constable
Enclosing class:
SqlOrder

public static enum SqlOrder.Order extends Enum<SqlOrder.Order>
The enumeration for the ordering directives.
  • Enum Constant Details

    • NONE

      public static final SqlOrder.Order NONE
      no ordering
    • ASC

      public static final SqlOrder.Order ASC
      ascending ordering
    • DESC

      public static final SqlOrder.Order DESC
      descending ordering
    • ASC_NULLS_FIRST

      public static final SqlOrder.Order ASC_NULLS_FIRST
      ascending ordering, NULL values should be returned before non-NULL values
    • ASC_NULLS_LAST

      public static final SqlOrder.Order ASC_NULLS_LAST
      ascending ordering, NULL values should be returned after non-NULL values
    • DESC_NULLS_FIRST

      public static final SqlOrder.Order DESC_NULLS_FIRST
      descending ordering, NULL values should be returned before non-NULL values
    • DESC_NULLS_LAST

      public static final SqlOrder.Order DESC_NULLS_LAST
      descending ordering, NULL values should be returned after non-NULL values
  • Constructor Details

    • Order

      private Order()
  • Method Details

    • values

      public static SqlOrder.Order[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SqlOrder.Order valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null