public enum DefaultNullOrdering extends java.lang.Enum<DefaultNullOrdering>
| Enum Constant and Description |
|---|
FIRST
NULL values are sorted before other values, no matter if ascending or
descending order is used.
|
HIGH
NULL values are considered as larger than other values during sorting.
|
LAST
NULL values are sorted after other values, no matter if ascending or
descending order is used.
|
LOW
NULL values are considered as smaller than other values during sorting.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addExplicitNullOrdering(int sortType)
Returns a sort type bit mask with
SortOrder.NULLS_FIRST or
SortOrder.NULLS_LAST explicitly set |
int |
compareNull(boolean aNull,
int sortType)
Compare two expressions where one of them is NULL.
|
static DefaultNullOrdering |
valueOf(int ordinal)
Returns default ordering of NULL values for the specified ordinal number.
|
static DefaultNullOrdering |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultNullOrdering[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultNullOrdering LOW
public static final DefaultNullOrdering HIGH
public static final DefaultNullOrdering FIRST
public static final DefaultNullOrdering LAST
public static DefaultNullOrdering[] values()
for (DefaultNullOrdering c : DefaultNullOrdering.values()) System.out.println(c);
public static DefaultNullOrdering valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static DefaultNullOrdering valueOf(int ordinal)
ordinal - ordinal numberEnum.ordinal()public int addExplicitNullOrdering(int sortType)
SortOrder.NULLS_FIRST or
SortOrder.NULLS_LAST explicitly setsortType - sort type bit maskSortOrder.NULLS_FIRST or SortOrder.NULLS_LAST
explicitly setpublic int compareNull(boolean aNull,
int sortType)
aNull - whether the first expression is nullsortType - the sort bit mask to use