public enum NullCollation extends java.lang.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(java.lang.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(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 boolean last(boolean desc)
desc
- Whether sort is descendingpublic boolean isDefaultOrder(boolean nullsFirst, boolean desc)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.