Package io.quarkus.panache.common
Enum Sort.NullPrecedence
- java.lang.Object
-
- java.lang.Enum<Sort.NullPrecedence>
-
- io.quarkus.panache.common.Sort.NullPrecedence
-
- All Implemented Interfaces:
Serializable
,Comparable<Sort.NullPrecedence>
- Enclosing class:
- Sort
public static enum Sort.NullPrecedence extends Enum<Sort.NullPrecedence>
Represents the order of null columns.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NULLS_FIRST
Sort by the null columns listed first in the resulting query.NULLS_LAST
Sort by the null columns listed last in the resulting query.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sort.NullPrecedence
valueOf(String name)
Returns the enum constant of this type with the specified name.static Sort.NullPrecedence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULLS_FIRST
public static final Sort.NullPrecedence NULLS_FIRST
Sort by the null columns listed first in the resulting query.
-
NULLS_LAST
public static final Sort.NullPrecedence NULLS_LAST
Sort by the null columns listed last in the resulting query.
-
-
Method Detail
-
values
public static Sort.NullPrecedence[] 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 (Sort.NullPrecedence c : Sort.NullPrecedence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sort.NullPrecedence 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
-
-