public static enum HasNullable.ImplementAs extends Enum<HasNullable.ImplementAs>
Enum Constant and Description |
---|
OPTIONAL
This option means that the getter for a column will return an
Optional<T> where T is the java type. |
WRAPPER
This option means that the getter for a column will return the value
straight off.
|
Modifier and Type | Method and Description |
---|---|
static HasNullable.ImplementAs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HasNullable.ImplementAs[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HasNullable.ImplementAs OPTIONAL
Optional<T>
where T
is the java type. If a primitive
type mapper is used, one of the primitive implementations like
OptionalInt
might be used instead.public static final HasNullable.ImplementAs WRAPPER
Long
, then a Long
will be returned.public static HasNullable.ImplementAs[] values()
for (HasNullable.ImplementAs c : HasNullable.ImplementAs.values()) System.out.println(c);
public static HasNullable.ImplementAs 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 nullCopyright © 2018 Speedment, Inc.. All rights reserved.