Enum Class TableColumnType
- All Implemented Interfaces:
Serializable,Comparable<TableColumnType>,Constable
Represents data types for H2 table columns.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the SQL fragment representation of this column type.booleanIndicates if this column type supports auto-increment.booleanIndicates if this column type supports length specification.booleanIndicates if this column type supports scale specification.static TableColumnTypeReturns the enum constant of this class with the specified name.static TableColumnType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BIT
-
TINYBIT
-
SMALLINT
-
MEDIUMINT
-
INT
-
INTEGER
-
BIGINT
-
FLOAT
-
DOUBLE
-
DOUBLE_PRECISION
-
DECIMAL
-
DEC
-
BOOLEAN
-
BOOL
-
BINARY
-
VARBINARY
-
TINYBLOB
-
BLOB
-
MEDIUMBLOB
-
LONGBLOB
-
CHAR
-
VARCHAR
-
DATE
-
DATETIME
-
TIMESTAMP
-
TIME
-
YEAR
-
JSON
-
GEOMETRY
-
POINT
-
LINESTRING
-
POLYGON
-
MULTIPOINT
-
MULTILINESTRING
-
MULTIPOLYGON
-
GEOMETRYCOLLECTION
-
TEXT
-
TINYTEXT
-
MEDIUMTEXT
-
LONGTEXT
-
-
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
-
isLengthSupported
public boolean isLengthSupported()Indicates if this column type supports length specification.- Returns:
- true if length is supported
-
isScaleSupported
public boolean isScaleSupported()Indicates if this column type supports scale specification.- Returns:
- true if scale is supported
-
isAutoIncrementSupported
public boolean isAutoIncrementSupported()Indicates if this column type supports auto-increment.- Returns:
- true if auto-increment is supported
-
getSqlFragment
Returns the SQL fragment representation of this column type.- Returns:
- the SQL fragment
-