Package Summary  Overview Summary

class:JDBCType [NONE]

  • All Implemented Interfaces:
    SQLType


                                                    
                                public enum JDBCType
    extends java.lang.Enum<JDBCType>
    implements SQLType
                                                

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

    Since:
    1.8
    See Also:
    SQLType

field:BIT [NONE]

  • BIT

                                                
                                                public static final JDBCType BIT
                                            
                                            
    Identifies the generic SQL type BIT.

field:TINYINT [NONE]

  • TINYINT

                                                
                                                public static final JDBCType TINYINT
                                            
                                            
    Identifies the generic SQL type TINYINT.

field:SMALLINT [NONE]

  • SMALLINT

                                                
                                                public static final JDBCType SMALLINT
                                            
                                            
    Identifies the generic SQL type SMALLINT.

field:INTEGER [NONE]

  • INTEGER

                                                
                                                public static final JDBCType INTEGER
                                            
                                            
    Identifies the generic SQL type INTEGER.

field:BIGINT [NONE]

  • BIGINT

                                                
                                                public static final JDBCType BIGINT
                                            
                                            
    Identifies the generic SQL type BIGINT.

field:FLOAT [NONE]

  • FLOAT

                                                
                                                public static final JDBCType FLOAT
                                            
                                            
    Identifies the generic SQL type FLOAT.

field:REAL [NONE]

  • REAL

                                                
                                                public static final JDBCType REAL
                                            
                                            
    Identifies the generic SQL type REAL.

field:DOUBLE [NONE]

  • DOUBLE

                                                
                                                public static final JDBCType DOUBLE
                                            
                                            
    Identifies the generic SQL type DOUBLE.

field:NUMERIC [NONE]

  • NUMERIC

                                                
                                                public static final JDBCType NUMERIC
                                            
                                            
    Identifies the generic SQL type NUMERIC.

field:DECIMAL [NONE]

  • DECIMAL

                                                
                                                public static final JDBCType DECIMAL
                                            
                                            
    Identifies the generic SQL type DECIMAL.

field:CHAR [NONE]

  • CHAR

                                                
                                                public static final JDBCType CHAR
                                            
                                            
    Identifies the generic SQL type CHAR.

field:VARCHAR [NONE]

  • VARCHAR

                                                
                                                public static final JDBCType VARCHAR
                                            
                                            
    Identifies the generic SQL type VARCHAR.

field:LONGVARCHAR [NONE]

  • LONGVARCHAR

                                                
                                                public static final JDBCType LONGVARCHAR
                                            
                                            
    Identifies the generic SQL type LONGVARCHAR.

field:DATE [NONE]

  • DATE

                                                
                                                public static final JDBCType DATE
                                            
                                            
    Identifies the generic SQL type DATE.

field:TIME [NONE]

  • TIME

                                                
                                                public static final JDBCType TIME
                                            
                                            
    Identifies the generic SQL type TIME.

field:TIMESTAMP [NONE]

  • TIMESTAMP

                                                
                                                public static final JDBCType TIMESTAMP
                                            
                                            
    Identifies the generic SQL type TIMESTAMP.

field:BINARY [NONE]

  • BINARY

                                                
                                                public static final JDBCType BINARY
                                            
                                            
    Identifies the generic SQL type BINARY.

field:VARBINARY [NONE]

  • VARBINARY

                                                
                                                public static final JDBCType VARBINARY
                                            
                                            
    Identifies the generic SQL type VARBINARY.

field:LONGVARBINARY [NONE]

  • LONGVARBINARY

                                                
                                                public static final JDBCType LONGVARBINARY
                                            
                                            
    Identifies the generic SQL type LONGVARBINARY.

field:NULL [NONE]

  • NULL

                                                
                                                public static final JDBCType NULL
                                            
                                            
    Identifies the generic SQL value NULL.

field:OTHER [NONE]

  • OTHER

                                                
                                                public static final JDBCType 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.

field:JAVA_OBJECT [NONE]

  • JAVA_OBJECT

                                                
                                                public static final JDBCType 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.

field:DISTINCT [NONE]

  • DISTINCT

                                                
                                                public static final JDBCType DISTINCT
                                            
                                            
    Identifies the generic SQL type DISTINCT.

field:STRUCT [NONE]

  • STRUCT

                                                
                                                public static final JDBCType STRUCT
                                            
                                            
    Identifies the generic SQL type STRUCT.

field:ARRAY [NONE]

  • ARRAY

                                                
                                                public static final JDBCType ARRAY
                                            
                                            
    Identifies the generic SQL type ARRAY.

field:BLOB [NONE]

  • BLOB

                                                
                                                public static final JDBCType BLOB
                                            
                                            
    Identifies the generic SQL type BLOB.

field:CLOB [NONE]

  • CLOB

                                                
                                                public static final JDBCType CLOB
                                            
                                            
    Identifies the generic SQL type CLOB.

field:REF [NONE]

  • REF

                                                
                                                public static final JDBCType REF
                                            
                                            
    Identifies the generic SQL type REF.

field:DATALINK [NONE]

  • DATALINK

                                                
                                                public static final JDBCType DATALINK
                                            
                                            
    Identifies the generic SQL type DATALINK.

field:BOOLEAN [NONE]

  • BOOLEAN

                                                
                                                public static final JDBCType BOOLEAN
                                            
                                            
    Identifies the generic SQL type BOOLEAN.

field:ROWID [NONE]

  • ROWID

                                                
                                                public static final JDBCType ROWID
                                            
                                            
    Identifies the SQL type ROWID.

field:NCHAR [NONE]

  • NCHAR

                                                
                                                public static final JDBCType NCHAR
                                            
                                            
    Identifies the generic SQL type NCHAR.

field:NVARCHAR [NONE]

  • NVARCHAR

                                                
                                                public static final JDBCType NVARCHAR
                                            
                                            
    Identifies the generic SQL type NVARCHAR.

field:LONGNVARCHAR [NONE]

  • LONGNVARCHAR

                                                
                                                public static final JDBCType LONGNVARCHAR
                                            
                                            
    Identifies the generic SQL type LONGNVARCHAR.

field:NCLOB [NONE]

  • NCLOB

                                                
                                                public static final JDBCType NCLOB
                                            
                                            
    Identifies the generic SQL type NCLOB.

field:SQLXML [NONE]

  • SQLXML

                                                
                                                public static final JDBCType SQLXML
                                            
                                            
    Identifies the generic SQL type SQLXML.

field:REF_CURSOR [NONE]

  • REF_CURSOR

                                                
                                                public static final JDBCType REF_CURSOR
                                            
                                            
    Identifies the generic SQL type REF_CURSOR.

field:TIME_WITH_TIMEZONE [NONE]

  • TIME_WITH_TIMEZONE

                                                
                                                public static final JDBCType TIME_WITH_TIMEZONE
                                            
                                            
    Identifies the generic SQL type TIME_WITH_TIMEZONE.

field:TIMESTAMP_WITH_TIMEZONE [NONE]

  • TIMESTAMP_WITH_TIMEZONE

                                                
                                                public static final JDBCType TIMESTAMP_WITH_TIMEZONE
                                            
                                            
    Identifies the generic SQL type TIMESTAMP_WITH_TIMEZONE.

method:values() [NONE]

  • values

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

method:valueOf(java.lang.String) [NONE]

  • valueOf

                                                
                                                public static JDBCType 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

method:getName() [NONE]

  • getName

    public java.lang.String getName()
    Returns the SQLType name that represents a SQL data type.
    Specified by:
    getName in interface SQLType
    Returns:
    The name of this SQLType.

method:getVendor() [NONE]

  • getVendor

    public java.lang.String getVendor()
    Returns the name of the vendor that supports this data type.
    Specified by:
    getVendor in interface SQLType
    Returns:
    The name of the vendor for this data type which is java.sql for JDBCType.

method:getVendorTypeNumber() [NONE]

  • getVendorTypeNumber

    public java.lang.Integer getVendorTypeNumber()
    Returns the vendor specific type number for the data type.
    Specified by:
    getVendorTypeNumber in interface SQLType
    Returns:
    An Integer representing the data type. For JDBCType, the value will be the same value as in Types for the data type.

method:valueOf(int) [NONE]

  • valueOf

                                                
                                                public static JDBCType valueOf(int type)
                                            
                                            
    Returns the JDBCType that corresponds to the specified Types value
    Parameters:
    type - Types value
    Returns:
    The JDBCType constant
    Throws:
    java.lang.IllegalArgumentException - if this enum type has no constant with the specified Types value
    See Also:
    Types