Package com.hazelcast.sql
Enum Class SqlColumnType
- All Implemented Interfaces:
Serializable
,Comparable<SqlColumnType>
,Constable
SQL column type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBIGINT type, represented byLong
BOOLEAN type, represented byBoolean
DATE type, represented byLocalDate
DECIMAL type, represented byBigDecimal
DOUBLE type, represented byDouble
INTEGER type, represented byInteger
JSON type, represented byHazelcastJsonValue
The type of the generic SQLNULL
literal.OBJECT type, could be represented by any Java class.REAL type, represented byFloat
This type and the value representing it is likely to change or be removed in the future releaseSMALLINT type, represented byShort
TIME type, represented byLocalTime
TIMESTAMP type, represented byLocalDateTime
TIMESTAMP_WITH_TIME_ZONE type, represented byOffsetDateTime
TINYINT type, represented byByte
VARCHAR type, represented byString
-
Method Summary
Modifier and TypeMethodDescriptionstatic SqlColumnType
getById
(int id) Returns the IndexType as an enum.int
getId()
Gets the ID for the givenSqlColumnType
.Class<?>
Gets the Java class of the value of this SQL type.toString()
static SqlColumnType
Returns the enum constant of this class with the specified name.static SqlColumnType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VARCHAR
VARCHAR type, represented byString
-
BOOLEAN
BOOLEAN type, represented byBoolean
-
TINYINT
TINYINT type, represented byByte
-
SMALLINT
SMALLINT type, represented byShort
-
INTEGER
INTEGER type, represented byInteger
-
BIGINT
BIGINT type, represented byLong
-
DECIMAL
DECIMAL type, represented byBigDecimal
-
REAL
REAL type, represented byFloat
-
DOUBLE
DOUBLE type, represented byDouble
-
DATE
DATE type, represented byLocalDate
-
TIME
TIME type, represented byLocalTime
-
TIMESTAMP
TIMESTAMP type, represented byLocalDateTime
-
TIMESTAMP_WITH_TIME_ZONE
TIMESTAMP_WITH_TIME_ZONE type, represented byOffsetDateTime
-
OBJECT
OBJECT type, could be represented by any Java class. -
NULL
The type of the generic SQLNULL
literal.The only valid value of
NULL
type isnull
. -
JSON
JSON type, represented byHazelcastJsonValue
-
ROW
This type and the value representing it is likely to change or be removed in the future releaseROW type, represented by the private API
RowValue
-
-
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
-
getById
Returns the IndexType as an enum.- Returns:
- the IndexType as an enum
-
getId
public int getId()Gets the ID for the givenSqlColumnType
.- Returns:
- the ID
-
getValueClass
Gets the Java class of the value of this SQL type.- Returns:
- the Java class of the value of this SQL type
-
toString
- Overrides:
toString
in classEnum<SqlColumnType>
-