public enum NullPrecedence extends Enum<NullPrecedence>
Defines precedence of null values within ORDER BY
clause.
Enum Constant and Description |
---|
FIRST
Null values appear at the beginning of the sorted collection.
|
LAST
Null values appear at the end of the sorted collection.
|
NONE
Null precedence not specified.
|
Modifier and Type | Method and Description |
---|---|
static NullPrecedence |
parse(String name)
Interprets a string representation of a NullPrecedence, returning
null by default. |
static NullPrecedence |
parse(String name,
NullPrecedence defaultValue)
Interprets a string representation of a NullPrecedence, returning the specified default if not recognized.
|
static NullPrecedence |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NullPrecedence[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullPrecedence NONE
Null precedence not specified. Relies on the RDBMS implementation.
public static final NullPrecedence FIRST
Null values appear at the beginning of the sorted collection.
public static final NullPrecedence LAST
Null values appear at the end of the sorted collection.
public static NullPrecedence[] values()
for (NullPrecedence c : NullPrecedence.values()) System.out.println(c);
public static NullPrecedence 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 static NullPrecedence parse(String name)
Interprets a string representation of a NullPrecedence, returning null
by default. For
alternative default handling, see parse(String, NullPrecedence)
name
- The String representation to interpretnull
public static NullPrecedence parse(String name, NullPrecedence defaultValue)
Interprets a string representation of a NullPrecedence, returning the specified default if not recognized.
name
- The String representation to interpretdefaultValue
- The default value to usedefaultValue
.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.