Enum Class ColumnType
- All Implemented Interfaces:
Serializable,Comparable<ColumnType>,Constable
Types of columns supported
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA date/time value in the format YYYY-MM-DD HH:MM:SSA standard 8-byte double valueA standard 4-byte float valueA integer increment to put a number ID on each entryA standard integerA standard longText that can store up to 16MB or 16,777,215 charactersA string that can be up to 128 characters longA string that can be up to 16 characters longA string that can be up to 256 characters longA string that can be up to 32 characters longA string that can be up to 64 characters longA string that can be up to 64KB or 65,535 characters long -
Method Summary
Modifier and TypeMethodDescriptionstatic ColumnTypegetByValues(String type, int size) Retrieves a column type by name and size values.toString()static ColumnTypeReturns the enum constant of this class with the specified name.static ColumnType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING_16
A string that can be up to 16 characters long
-
STRING_32
A string that can be up to 32 characters long -
STRING_64
A string that can be up to 64 characters long
-
STRING_128
A string that can be up to 128 characters long
-
STRING_255
A string that can be up to 256 characters long
-
TEXT
A string that can be up to 64KB or 65,535 characters long
-
MEDIUM_TEXT
Text that can store up to 16MB or 16,777,215 characters -
INT
A standard integer -
LONG
A standard long -
FLOAT
A standard 4-byte float value
-
DOUBLE
A standard 8-byte double value
-
INCREMENT
A integer increment to put a number ID on each entry
-
DATE_TIME
A date/time value in the format YYYY-MM-DD HH:MM:SS
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getByValues
Retrieves a column type by name and size values.
If no supported type matches the data, this will return null instead.
- Parameters:
type- type of the columnsize- size of the column- Returns:
- column type representation
-
toString
- Overrides:
toStringin classEnum<ColumnType>- Returns:
- type key
-