Package com.hazelcast.sql
Enum SqlColumnType
- java.lang.Object
-
- java.lang.Enum<SqlColumnType>
-
- com.hazelcast.sql.SqlColumnType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SqlColumnType>
public enum SqlColumnType extends java.lang.Enum<SqlColumnType>
SQL column type.
-
-
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
JSON
JSON type, represented byHazelcastJsonValue
NULL
The type of the generic SQLNULL
literal.OBJECT
OBJECT type, could be represented by any Java class.REAL
REAL type, represented byFloat
ROW
This type and the value representing it is likely to change or be removed in the future releaseSMALLINT
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SqlColumnType
getById(int id)
Returns the IndexType as an enum.int
getId()
Gets the ID for the givenSqlColumnType
.java.lang.Class<?>
getValueClass()
Gets the Java class of the value of this SQL type.java.lang.String
toString()
static SqlColumnType
valueOf(java.lang.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 Detail
-
VARCHAR
public static final SqlColumnType VARCHAR
VARCHAR type, represented byString
-
BOOLEAN
public static final SqlColumnType BOOLEAN
BOOLEAN type, represented byBoolean
-
TINYINT
public static final SqlColumnType TINYINT
TINYINT type, represented byByte
-
SMALLINT
public static final SqlColumnType SMALLINT
SMALLINT type, represented byShort
-
INTEGER
public static final SqlColumnType INTEGER
INTEGER type, represented byInteger
-
BIGINT
public static final SqlColumnType BIGINT
BIGINT type, represented byLong
-
DECIMAL
public static final SqlColumnType DECIMAL
DECIMAL type, represented byBigDecimal
-
REAL
public static final SqlColumnType REAL
REAL type, represented byFloat
-
DOUBLE
public static final SqlColumnType DOUBLE
DOUBLE type, represented byDouble
-
DATE
public static final SqlColumnType DATE
DATE type, represented byLocalDate
-
TIME
public static final SqlColumnType TIME
TIME type, represented byLocalTime
-
TIMESTAMP
public static final SqlColumnType TIMESTAMP
TIMESTAMP type, represented byLocalDateTime
-
TIMESTAMP_WITH_TIME_ZONE
public static final SqlColumnType TIMESTAMP_WITH_TIME_ZONE
TIMESTAMP_WITH_TIME_ZONE type, represented byOffsetDateTime
-
OBJECT
public static final SqlColumnType OBJECT
OBJECT type, could be represented by any Java class.
-
NULL
public static final SqlColumnType NULL
The type of the generic SQLNULL
literal.The only valid value of
NULL
type isnull
.
-
JSON
public static final SqlColumnType JSON
JSON type, represented byHazelcastJsonValue
-
ROW
@Beta public static final SqlColumnType 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 Detail
-
values
public static SqlColumnType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SqlColumnType c : SqlColumnType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlColumnType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getById
public static SqlColumnType getById(int id)
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
@Nonnull public java.lang.Class<?> getValueClass()
Gets the Java class of the value of this SQL type.- Returns:
- the Java class of the value of this SQL type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<SqlColumnType>
-
-