Package org.sqlproc.engine
Enum Class SqlOrder.Order
- All Implemented Interfaces:
Serializable,Comparable<SqlOrder.Order>,Constable
- Enclosing class:
SqlOrder
The enumeration for the ordering directives.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionascending orderingascending ordering, NULL values should be returned before non-NULL valuesascending ordering, NULL values should be returned after non-NULL valuesdescending orderingdescending ordering, NULL values should be returned before non-NULL valuesdescending ordering, NULL values should be returned after non-NULL valuesno ordering -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlOrder.OrderReturns the enum constant of this class with the specified name.static SqlOrder.Order[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
no ordering -
ASC
ascending ordering -
DESC
descending ordering -
ASC_NULLS_FIRST
ascending ordering, NULL values should be returned before non-NULL values -
ASC_NULLS_LAST
ascending ordering, NULL values should be returned after non-NULL values -
DESC_NULLS_FIRST
descending ordering, NULL values should be returned before non-NULL values -
DESC_NULLS_LAST
descending ordering, NULL values should be returned after non-NULL values
-
-
Constructor Details
-
Order
private Order()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-