public enum TypeAffinities extends java.lang.Enum<TypeAffinities>
Enum Constant and Description |
---|
BLOB
Use
NONE instead, cause blob is data type, not affinity, I
just added it cause it is really painful for me that for each type affinity corresponding
with data type there is data type called exactly like type affinity (e.g. |
INTEGER |
NONE |
NOT_SET_USE_DEFAULT_MAPPING
Default option, when on, boolean, byte, integer, long and short primitives would be auto mapped to INTEGER
byte[] to NONE, float and double to REAL and String to TEXT
|
NUMERIC |
REAL |
TEXT |
Modifier and Type | Method and Description |
---|---|
boolean |
equalsName(java.lang.String sqlText) |
java.lang.String |
toString() |
static TypeAffinities |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TypeAffinities[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeAffinities INTEGER
public static final TypeAffinities NONE
public static final TypeAffinities REAL
public static final TypeAffinities NUMERIC
public static final TypeAffinities TEXT
public static final TypeAffinities BLOB
NONE
instead, cause blob is data type, not affinity, I
just added it cause it is really painful for me that for each type affinity corresponding
with data type there is data type called exactly like type affinity (e.g. NUMERIC data type
for NUMERIC affinity type), but no data type NONE for type affinity NONE exists.public static final TypeAffinities NOT_SET_USE_DEFAULT_MAPPING
public static TypeAffinities[] values()
for (TypeAffinities c : TypeAffinities.values()) System.out.println(c);
public static TypeAffinities 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 equalsName(java.lang.String sqlText)
public java.lang.String toString()
toString
in class java.lang.Enum<TypeAffinities>