Package com.hazelcast.sql
Enum SqlColumnType
- All Implemented Interfaces:
Serializable
,Comparable<SqlColumnType>
,java.lang.constant.Constable
public enum SqlColumnType extends Enum<SqlColumnType>
SQL column type.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description BIGINT
BIGINT type, represented byLong
BOOLEAN
BOOLEAN type, represented byBoolean
DATE
DATE type, represented byLocalDate
DECIMAL
DECIMAL type, represented byBigDecimal
DOUBLE
DOUBLE type, represented byDouble
INTEGER
INTEGER type, represented byInteger
NULL
The type of the generic SQLNULL
literal.OBJECT
OBJECT type, could be represented by any Java class.REAL
REAL type, represented byFloat
SMALLINT
SMALLINT type, represented byShort
TIME
TIME type, represented byLocalTime
TIMESTAMP
TIMESTAMP type, represented byLocalDateTime
TIMESTAMP_WITH_TIME_ZONE
TIMESTAMP_WITH_TIME_ZONE type, represented byOffsetDateTime
TINYINT
TINYINT type, represented byByte
VARCHAR
VARCHAR type, represented byString
-
Method Summary
Modifier and Type Method Description static SqlColumnType
getById(int id)
Returns the IndexType as an enum.int
getId()
Gets the ID for the givenSqlColumnType
.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.
-
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
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
-