public enum NullCollation extends Enum<NullCollation>
| Enum Constant and Description |
|---|
FIRST
Nulls first for DESC and ASC.
|
HIGH
Nulls first for DESC, nulls last for ASC.
|
LAST
Nulls last for DESC and ASC.
|
LOW
Nulls last for DESC, nulls first for ASC.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDefaultOrder(boolean nullsFirst,
boolean desc)
Returns whether a given combination of null direction and sort order is
the default order of nulls returned in the ORDER BY clause.
|
boolean |
last(boolean desc)
Returns whether NULL values should appear last.
|
static NullCollation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NullCollation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullCollation HIGH
public static final NullCollation LOW
public static final NullCollation FIRST
public static final NullCollation LAST
public static NullCollation[] values()
for (NullCollation c : NullCollation.values()) System.out.println(c);
public static NullCollation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean last(boolean desc)
desc - Whether sort is descendingpublic boolean isDefaultOrder(boolean nullsFirst,
boolean desc)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.