public enum NullPrecedence extends Enum<NullPrecedence>
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
public static final NullPrecedence FIRST
public static final NullPrecedence LAST
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)
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)
name
- The String representation to interpretdefaultValue
- The default value to usedefaultValue
.Copyright © 2016 JBoss by Red Hat. All rights reserved.