Enum SQLDataType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SQLDataType>

    public enum SQLDataType
    extends java.lang.Enum<SQLDataType>
    Defines the possible SQL data types.
    Since:
    2.2.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARRAY
      Specifies the SQL data type ARRAY.
      BIGINT
      Specifies the SQL data type BIGINT.
      BINARY
      Specifies the SQL data type BINARY.
      BIT
      Specifies the SQL data type BIT.
      BLOB
      Specifies the SQL data type BLOB.
      BOOLEAN
      Specifies the SQL data type BOOLEAN.
      CHAR
      Specifies the SQL data type CHAR.
      CLOB
      Specifies the SQL data type CLOB.
      DATE
      Specifies the SQL data type DATE.
      DECIMAL
      Specifies the SQL data type DECIMAL.
      DOUBLE
      Specifies the SQL data type DOUBLE.
      FLOAT
      Specifies the SQL data type FLOAT.
      INTEGER
      Specifies the SQL data type INTEGER.
      LONGNVARCHAR
      Specifies the SQL data type LONGNVARCHAR.
      LONGVARBINARY
      Specifies the SQL data type LONGVARBINARY.
      LONGVARCHAR
      Specifies the SQL data type LONGVARCHAR.
      NCHAR
      Specifies the SQL data type NCHAR.
      NCLOB
      Specifies the SQL data type NCLOB.
      NUMERIC
      Specifies the SQL data type NUMERIC.
      NVARCHAR
      Specifies the SQL data type NVARCHAR.
      REAL
      Specifies the SQL data type REAL.
      ROWID
      Specifies the SQL data type ROWID.
      SMALLINT
      Specifies the SQL data type SMALLINT.
      SQLXML
      Specifies the SQL data type SQLXML.
      TIME
      Specifies the SQL data type TIME.
      TIMESTAMP
      Specifies the SQL data type TIMESTAMP.
      TINYINT
      Specifies the SQL data type TINYINT.
      UNKNOWN
      Specifies the SQL data type UNKNOWN.
      VARBINARY
      Specifies the SQL data type VARBINARY.
      VARCHAR
      Specifies the SQL data type VARCHAR.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SQLDataType parse​(int type)  
      static SQLDataType parse​(int type, java.lang.String name)  
      static SQLDataType parse​(java.lang.String typeName)  
      static SQLDataType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SQLDataType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

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

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

      • BOOLEAN

        public static final SQLDataType BOOLEAN
        Specifies the SQL data type BOOLEAN.
      • BIT

        public static final SQLDataType BIT
        Specifies the SQL data type BIT.
      • BIGINT

        public static final SQLDataType BIGINT
        Specifies the SQL data type BIGINT.
      • INTEGER

        public static final SQLDataType INTEGER
        Specifies the SQL data type INTEGER.
      • SMALLINT

        public static final SQLDataType SMALLINT
        Specifies the SQL data type SMALLINT.
      • TINYINT

        public static final SQLDataType TINYINT
        Specifies the SQL data type TINYINT.
      • DECIMAL

        public static final SQLDataType DECIMAL
        Specifies the SQL data type DECIMAL.
      • NUMERIC

        public static final SQLDataType NUMERIC
        Specifies the SQL data type NUMERIC.
      • DOUBLE

        public static final SQLDataType DOUBLE
        Specifies the SQL data type DOUBLE.
      • REAL

        public static final SQLDataType REAL
        Specifies the SQL data type REAL.
      • FLOAT

        public static final SQLDataType FLOAT
        Specifies the SQL data type FLOAT.
      • CHAR

        public static final SQLDataType CHAR
        Specifies the SQL data type CHAR.
      • VARCHAR

        public static final SQLDataType VARCHAR
        Specifies the SQL data type VARCHAR.
      • LONGVARCHAR

        public static final SQLDataType LONGVARCHAR
        Specifies the SQL data type LONGVARCHAR.
      • NCHAR

        public static final SQLDataType NCHAR
        Specifies the SQL data type NCHAR.
      • NVARCHAR

        public static final SQLDataType NVARCHAR
        Specifies the SQL data type NVARCHAR.
      • LONGNVARCHAR

        public static final SQLDataType LONGNVARCHAR
        Specifies the SQL data type LONGNVARCHAR.
      • BINARY

        public static final SQLDataType BINARY
        Specifies the SQL data type BINARY.
      • VARBINARY

        public static final SQLDataType VARBINARY
        Specifies the SQL data type VARBINARY.
      • LONGVARBINARY

        public static final SQLDataType LONGVARBINARY
        Specifies the SQL data type LONGVARBINARY.
      • ARRAY

        public static final SQLDataType ARRAY
        Specifies the SQL data type ARRAY.
      • DATE

        public static final SQLDataType DATE
        Specifies the SQL data type DATE.
      • TIME

        public static final SQLDataType TIME
        Specifies the SQL data type TIME.
      • TIMESTAMP

        public static final SQLDataType TIMESTAMP
        Specifies the SQL data type TIMESTAMP.
      • BLOB

        public static final SQLDataType BLOB
        Specifies the SQL data type BLOB.
      • CLOB

        public static final SQLDataType CLOB
        Specifies the SQL data type CLOB.
      • NCLOB

        public static final SQLDataType NCLOB
        Specifies the SQL data type NCLOB.
      • ROWID

        public static final SQLDataType ROWID
        Specifies the SQL data type ROWID.
      • SQLXML

        public static final SQLDataType SQLXML
        Specifies the SQL data type SQLXML.
      • UNKNOWN

        public static final SQLDataType UNKNOWN
        Specifies the SQL data type UNKNOWN.
    • Method Detail

      • values

        public static SQLDataType[] 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 (SQLDataType c : SQLDataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SQLDataType 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
      • parse

        public static SQLDataType parse​(int type)
      • parse

        public static SQLDataType parse​(java.lang.String typeName)
      • parse

        public static SQLDataType parse​(int type,
                                        java.lang.String name)