Package com.sap.cds.ql.cqn
Enum Class CqnSortSpecification.Order
- All Implemented Interfaces:
Serializable
,Comparable<CqnSortSpecification.Order>
,Constable
- Enclosing interface:
- CqnSortSpecification
The sort order of a
CqnSortSpecification
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAscending order with null values before non-null values.Ascending order with null values after non-null values.Descending order with null values after non-null values.Descending order with null values before non-null values. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static CqnSortSpecification.Order
Returns the enum constant of this class with the specified name.static CqnSortSpecification.Order
static CqnSortSpecification.Order[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASC
Ascending order with null values before non-null values. -
DESC
Descending order with null values after non-null values. -
ASC_NULLS_LAST
Ascending order with null values after non-null values. -
DESC_NULLS_FIRST
Descending order with null values before non-null values.
-
-
Field Details
-
sort
The order (asc or desc) -
nulls
The order of null values (first or last)
-
-
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
-
valueOf
-
toString
- Overrides:
toString
in classEnum<CqnSortSpecification.Order>
-