public enum SqlColumnType extends Enum<SqlColumnType>
| Enum Constant and Description |
|---|
BIGINT
BIGINT type, represented by
Long |
BOOLEAN
BOOLEAN type, represented by
Boolean |
DATE
DATE type, represented by
LocalDate |
DECIMAL
DECIMAL type, represented by
BigDecimal |
DOUBLE
DOUBLE type, represented by
Double |
INTEGER
INTEGER type, represented by
Integer |
NULL
The type of the generic SQL
NULL literal. |
OBJECT
OBJECT type, could be represented by any Java class.
|
REAL
REAL type, represented by
Float |
SMALLINT
SMALLINT type, represented by
Short |
TIME
TIME type, represented by
LocalTime |
TIMESTAMP
TIMESTAMP type, represented by
LocalDateTime |
TIMESTAMP_WITH_TIME_ZONE
TIMESTAMP_WITH_TIME_ZONE type, represented by
OffsetDateTime |
TINYINT
TINYINT type, represented by
Byte |
VARCHAR
VARCHAR type, represented by
String |
| Modifier and Type | Method and Description |
|---|---|
static SqlColumnType |
getById(int id)
Returns the IndexType as an enum.
|
int |
getId()
Gets the ID for the given
SqlColumnType. |
Class<?> |
getValueClass()
Gets the Java class of the value of this SQL type.
|
static SqlColumnType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlColumnType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlColumnType VARCHAR
Stringpublic static final SqlColumnType BOOLEAN
Booleanpublic static final SqlColumnType TINYINT
Bytepublic static final SqlColumnType SMALLINT
Shortpublic static final SqlColumnType INTEGER
Integerpublic static final SqlColumnType BIGINT
Longpublic static final SqlColumnType DECIMAL
BigDecimalpublic static final SqlColumnType REAL
Floatpublic static final SqlColumnType DOUBLE
Doublepublic static final SqlColumnType DATE
LocalDatepublic static final SqlColumnType TIME
LocalTimepublic static final SqlColumnType TIMESTAMP
LocalDateTimepublic static final SqlColumnType TIMESTAMP_WITH_TIME_ZONE
OffsetDateTimepublic static final SqlColumnType OBJECT
public static final SqlColumnType NULL
NULL literal.
The only valid value of NULL type is null.
public static SqlColumnType[] values()
for (SqlColumnType c : SqlColumnType.values()) System.out.println(c);
public static SqlColumnType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SqlColumnType getById(int id)
public int getId()
SqlColumnType.Copyright © 2021 Hazelcast, Inc.. All rights reserved.