public enum ColumnType extends java.lang.Enum<ColumnType>
Enum Constant and Description |
---|
DATETIME |
DOUBLE |
INVALID |
LONG |
OPAQUE |
STRING |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ColumnType |
fromString(java.lang.String typeName)
Get the column type enum from a string representation.
|
java.lang.String |
toString()
Get the string representation of the column type.
|
static ColumnType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColumnType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColumnType INVALID
public static final ColumnType LONG
public static final ColumnType STRING
public static final ColumnType OPAQUE
public static final ColumnType DATETIME
public static final ColumnType DOUBLE
public static final ColumnType UNKNOWN
public static ColumnType[] values()
for (ColumnType c : ColumnType.values()) System.out.println(c);
public static ColumnType 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 java.lang.String toString()
toString
in class java.lang.Enum<ColumnType>
public static ColumnType fromString(java.lang.String typeName)
typeName
- The string type name to convert.