public enum Type extends java.lang.Enum<Type>
These types are abstract and have no relation to a particular SQL database.
The names of the types for a particular database are specified by a TypeMapping
.
Enum Constant and Description |
---|
BOOLEAN
The type representing a
boolean value. |
BYTE_ARRAY
The type representing a byte array.
|
INT
The type representing an
int value. |
LONG
The type representing a
long value. |
STRING
The type representing a
String , maximum length of which is unknown. |
STRING_255
The type representing a
String , maximum length of which
doesn't exceed 255 characters. |
Modifier and Type | Method and Description |
---|---|
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type BYTE_ARRAY
public static final Type INT
int
value.public static final Type LONG
long
value.public static final Type STRING_255
String
, maximum length of which
doesn't exceed 255 characters.public static final Type STRING
String
, maximum length of which is unknown.public static final Type BOOLEAN
boolean
value.public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 null