Package org.sqlproc.engine
Enum SqlOrder.Order
- java.lang.Object
-
- java.lang.Enum<SqlOrder.Order>
-
- org.sqlproc.engine.SqlOrder.Order
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlOrder.Order>
- Enclosing class:
- SqlOrder
public static enum SqlOrder.Order extends Enum<SqlOrder.Order>
The enumeration for the ordering directives.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASC
ascending orderingASC_NULLS_FIRST
ascending ordering, NULL values should be returned before non-NULL valuesASC_NULLS_LAST
ascending ordering, NULL values should be returned after non-NULL valuesDESC
descending orderingDESC_NULLS_FIRST
descending ordering, NULL values should be returned before non-NULL valuesDESC_NULLS_LAST
descending ordering, NULL values should be returned after non-NULL valuesNONE
no ordering
-
Constructor Summary
Constructors Modifier Constructor Description private
Order()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlOrder.Order
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlOrder.Order[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
values
public static SqlOrder.Order[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SqlOrder.Order c : SqlOrder.Order.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlOrder.Order valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-