Package com.hazelcast.sql
Enum Class SqlColumnType
- All Implemented Interfaces:
- Serializable,- Comparable<SqlColumnType>,- Constable
SQL column type.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionBIGINT type, represented byLongBOOLEAN type, represented byBooleanDATE type, represented byLocalDateDECIMAL type, represented byBigDecimalDOUBLE type, represented byDoubleINTEGER type, represented byIntegerJSON type, represented byHazelcastJsonValueThe type of the generic SQLNULLliteral.OBJECT type, could be represented by any Java class.REAL type, represented byFloatThis type and the value representing it is likely to change or be removed in the future releaseSMALLINT type, represented byShortTIME type, represented byLocalTimeTIMESTAMP type, represented byLocalDateTimeTIMESTAMP_WITH_TIME_ZONE type, represented byOffsetDateTimeTINYINT type, represented byByteVARCHAR type, represented byString
- 
Method SummaryModifier and TypeMethodDescriptionstatic SqlColumnTypegetById(int id) Returns the IndexType as an enum.intgetId()Gets the ID for the givenSqlColumnType.Class<?>Gets the Java class of the value of this SQL type.toString()static SqlColumnTypeReturns 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- 
VARCHARVARCHAR type, represented byString
- 
BOOLEANBOOLEAN type, represented byBoolean
- 
TINYINTTINYINT type, represented byByte
- 
SMALLINTSMALLINT type, represented byShort
- 
INTEGERINTEGER type, represented byInteger
- 
BIGINTBIGINT type, represented byLong
- 
DECIMALDECIMAL type, represented byBigDecimal
- 
REALREAL type, represented byFloat
- 
DOUBLEDOUBLE type, represented byDouble
- 
DATEDATE type, represented byLocalDate
- 
TIMETIME type, represented byLocalTime
- 
TIMESTAMPTIMESTAMP type, represented byLocalDateTime
- 
TIMESTAMP_WITH_TIME_ZONETIMESTAMP_WITH_TIME_ZONE type, represented byOffsetDateTime
- 
OBJECTOBJECT type, could be represented by any Java class.
- 
NULLThe type of the generic SQLNULLliteral.The only valid value of NULLtype isnull.
- 
JSONJSON type, represented byHazelcastJsonValue
- 
ROWThis 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getByIdReturns the IndexType as an enum.- Returns:
- the IndexType as an enum
 
- 
getIdpublic int getId()Gets the ID for the givenSqlColumnType.- Returns:
- the ID
 
- 
getValueClassGets the Java class of the value of this SQL type.- Returns:
- the Java class of the value of this SQL type
 
- 
toString- Overrides:
- toStringin class- Enum<SqlColumnType>
 
 
-