Enum 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 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
    • 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 given SqlColumnType.
      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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • VARCHAR

        public static final SqlColumnType VARCHAR
        VARCHAR type, represented by String
      • BOOLEAN

        public static final SqlColumnType BOOLEAN
        BOOLEAN type, represented by Boolean
      • TINYINT

        public static final SqlColumnType TINYINT
        TINYINT type, represented by Byte
      • SMALLINT

        public static final SqlColumnType SMALLINT
        SMALLINT type, represented by Short
      • INTEGER

        public static final SqlColumnType INTEGER
        INTEGER type, represented by Integer
      • BIGINT

        public static final SqlColumnType BIGINT
        BIGINT type, represented by Long
      • DECIMAL

        public static final SqlColumnType DECIMAL
        DECIMAL type, represented by BigDecimal
      • REAL

        public static final SqlColumnType REAL
        REAL type, represented by Float
      • DOUBLE

        public static final SqlColumnType DOUBLE
        DOUBLE type, represented by Double
      • DATE

        public static final SqlColumnType DATE
        DATE type, represented by LocalDate
      • TIME

        public static final SqlColumnType TIME
        TIME type, represented by LocalTime
      • TIMESTAMP

        public static final SqlColumnType TIMESTAMP
        TIMESTAMP type, represented by LocalDateTime
      • TIMESTAMP_WITH_TIME_ZONE

        public static final SqlColumnType TIMESTAMP_WITH_TIME_ZONE
        TIMESTAMP_WITH_TIME_ZONE type, represented by OffsetDateTime
      • 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 SQL NULL literal.

        The only valid value of NULL type is null.

      • ROW

        @Beta
        public static final SqlColumnType ROW
        This type and the value representing it is likely to change or be removed in the future release

        ROW 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 name
        java.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 given SqlColumnType.
        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 class java.lang.Enum<SqlColumnType>