Enum AdbaType

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

    public enum AdbaType
    extends java.lang.Enum<AdbaType>
    implements SqlType

    Defines the constants that are used to identify generic SQL types, called JDBC types.

    Since:
    1.8
    See Also:
    SqlType
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARRAY
      Identifies the generic SQL type ARRAY.
      BIGINT
      Identifies the generic SQL type BIGINT.
      BINARY
      Identifies the generic SQL type BINARY.
      BIT
      Identifies the generic SQL type BIT.
      BLOB
      Identifies the generic SQL type BLOB.
      BOOLEAN
      Identifies the generic SQL type BOOLEAN.
      CHAR
      Identifies the generic SQL type CHAR.
      CLOB
      Identifies the generic SQL type CLOB.
      DATALINK
      Identifies the generic SQL type DATALINK.
      DATE
      Identifies the generic SQL type DATE.
      DECIMAL
      Identifies the generic SQL type DECIMAL.
      DISTINCT
      Identifies the generic SQL type DISTINCT.
      DOUBLE
      Identifies the generic SQL type DOUBLE.
      FLOAT
      Identifies the generic SQL type FLOAT.
      INTEGER
      Identifies the generic SQL type INTEGER.
      JAVA_OBJECT
      Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
      LONG_NVARCHAR
      Identifies the generic SQL type LONG NVARCHAR.
      LONG_VARBINARY
      Identifies the generic SQL type LONG VARBINARY.
      LONG_VARCHAR
      Identifies the generic SQL type LONG VARCHAR.
      NCHAR
      Identifies the generic SQL type NCHAR.
      NCLOB
      Identifies the generic SQL type NCLOB.
      NULL
      Identifies the generic SQL value NULL.
      NUMERIC
      Identifies the generic SQL type NUMERIC.
      NVARCHAR
      Identifies the generic SQL type NVARCHAR.
      OTHER
      Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
      REAL
      Identifies the generic SQL type REAL.
      REF
      Identifies the generic SQL type REF.
      REF_CURSOR
      Identifies the generic SQL type REF CURSOR.
      ROWID
      Identifies the SQL type ROWID.
      SMALLINT
      Identifies the generic SQL type SMALLINT.
      SQLXML
      Identifies the generic SQL type SQLXML.
      STRUCT
      Identifies the generic SQL type STRUCT.
      TIME
      Identifies the generic SQL type TIME.
      TIME_WITH_TIME_ZONE
      Identifies the generic SQL type TIME WITH TIME ZONE.
      TIMESTAMP
      Identifies the generic SQL type TIMESTAMP.
      TIMESTAMP_WITH_TIME_ZONE
      Identifies the generic SQL type TIMESTAMP WITH TIME ZONE.
      TINYINT
      Identifies the generic SQL type TINYINT.
      VARBINARY
      Identifies the generic SQL type VARBINARY.
      VARCHAR
      Identifies the generic SQL type VARCHAR.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<?> javaType  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<?> getJavaType()
      java.lang.String getName()
      java.lang.String getVendor()
      static AdbaType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AdbaType[] 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, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • BIT

        public static final AdbaType BIT
        Identifies the generic SQL type BIT.
      • TINYINT

        public static final AdbaType TINYINT
        Identifies the generic SQL type TINYINT.
      • SMALLINT

        public static final AdbaType SMALLINT
        Identifies the generic SQL type SMALLINT.
      • INTEGER

        public static final AdbaType INTEGER
        Identifies the generic SQL type INTEGER.
      • BIGINT

        public static final AdbaType BIGINT
        Identifies the generic SQL type BIGINT.
      • FLOAT

        public static final AdbaType FLOAT
        Identifies the generic SQL type FLOAT.
      • REAL

        public static final AdbaType REAL
        Identifies the generic SQL type REAL.
      • DOUBLE

        public static final AdbaType DOUBLE
        Identifies the generic SQL type DOUBLE.
      • NUMERIC

        public static final AdbaType NUMERIC
        Identifies the generic SQL type NUMERIC.
      • DECIMAL

        public static final AdbaType DECIMAL
        Identifies the generic SQL type DECIMAL.
      • CHAR

        public static final AdbaType CHAR
        Identifies the generic SQL type CHAR.
      • VARCHAR

        public static final AdbaType VARCHAR
        Identifies the generic SQL type VARCHAR.
      • LONG_VARCHAR

        public static final AdbaType LONG_VARCHAR
        Identifies the generic SQL type LONG VARCHAR.
      • DATE

        public static final AdbaType DATE
        Identifies the generic SQL type DATE.
      • TIME

        public static final AdbaType TIME
        Identifies the generic SQL type TIME.
      • TIMESTAMP

        public static final AdbaType TIMESTAMP
        Identifies the generic SQL type TIMESTAMP.
      • BINARY

        public static final AdbaType BINARY
        Identifies the generic SQL type BINARY.
      • VARBINARY

        public static final AdbaType VARBINARY
        Identifies the generic SQL type VARBINARY.
      • LONG_VARBINARY

        public static final AdbaType LONG_VARBINARY
        Identifies the generic SQL type LONG VARBINARY.
      • NULL

        public static final AdbaType NULL
        Identifies the generic SQL value NULL.
      • OTHER

        public static final AdbaType OTHER
        Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
      • JAVA_OBJECT

        public static final AdbaType JAVA_OBJECT
        Indicates that the SQL type is database-specific and gets mapped to a Java object that can be accessed via the methods getObject and setObject.
      • DISTINCT

        public static final AdbaType DISTINCT
        Identifies the generic SQL type DISTINCT.
      • STRUCT

        public static final AdbaType STRUCT
        Identifies the generic SQL type STRUCT.
      • ARRAY

        public static final AdbaType ARRAY
        Identifies the generic SQL type ARRAY.
      • BLOB

        public static final AdbaType BLOB
        Identifies the generic SQL type BLOB.
      • CLOB

        public static final AdbaType CLOB
        Identifies the generic SQL type CLOB.
      • REF

        public static final AdbaType REF
        Identifies the generic SQL type REF.
      • DATALINK

        public static final AdbaType DATALINK
        Identifies the generic SQL type DATALINK.
      • BOOLEAN

        public static final AdbaType BOOLEAN
        Identifies the generic SQL type BOOLEAN.
      • ROWID

        public static final AdbaType ROWID
        Identifies the SQL type ROWID.
      • NCHAR

        public static final AdbaType NCHAR
        Identifies the generic SQL type NCHAR.
      • NVARCHAR

        public static final AdbaType NVARCHAR
        Identifies the generic SQL type NVARCHAR.
      • LONG_NVARCHAR

        public static final AdbaType LONG_NVARCHAR
        Identifies the generic SQL type LONG NVARCHAR.
      • NCLOB

        public static final AdbaType NCLOB
        Identifies the generic SQL type NCLOB.
      • SQLXML

        public static final AdbaType SQLXML
        Identifies the generic SQL type SQLXML.
      • REF_CURSOR

        public static final AdbaType REF_CURSOR
        Identifies the generic SQL type REF CURSOR.
      • TIME_WITH_TIME_ZONE

        public static final AdbaType TIME_WITH_TIME_ZONE
        Identifies the generic SQL type TIME WITH TIME ZONE.
      • TIMESTAMP_WITH_TIME_ZONE

        public static final AdbaType TIMESTAMP_WITH_TIME_ZONE
        Identifies the generic SQL type TIMESTAMP WITH TIME ZONE.
    • Field Detail

      • javaType

        protected final java.lang.Class<?> javaType
    • Method Detail

      • values

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

        public static AdbaType 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
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface SqlType
        Returns:
      • getVendor

        public java.lang.String getVendor()
        Specified by:
        getVendor in interface SqlType
        Returns:
      • getJavaType

        public java.lang.Class<?> getJavaType()
        Specified by:
        getJavaType in interface SqlType
        Returns:
        a Java type that best represents values of this SQL type