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 |
JSON
JSON type, represented by
HazelcastJsonValue |
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 |
ROW
This type and the value representing it is likely to change or be removed in the future release
|
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.
|
String |
toString() |
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
String
public static final SqlColumnType BOOLEAN
Boolean
public static final SqlColumnType TINYINT
Byte
public static final SqlColumnType SMALLINT
Short
public static final SqlColumnType INTEGER
Integer
public static final SqlColumnType BIGINT
Long
public static final SqlColumnType DECIMAL
BigDecimal
public static final SqlColumnType REAL
Float
public static final SqlColumnType DOUBLE
Double
public static final SqlColumnType DATE
LocalDate
public static final SqlColumnType TIME
LocalTime
public static final SqlColumnType TIMESTAMP
LocalDateTime
public static final SqlColumnType TIMESTAMP_WITH_TIME_ZONE
OffsetDateTime
public static final SqlColumnType OBJECT
public static final SqlColumnType NULL
NULL
literal.
The only valid value of NULL
type is null
.
public static final SqlColumnType JSON
HazelcastJsonValue
@Beta public static final SqlColumnType ROW
ROW type, represented by RowValue
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
.@Nonnull public Class<?> getValueClass()
public String toString()
toString
in class Enum<SqlColumnType>
Copyright © 2023 Hazelcast, Inc.. All rights reserved.