public class Types extends Object
The class that defines the constants that are used to identify generic SQL types, called JDBC types.
This class is never instantiated.
Modifier and Type | Field | Description |
---|---|---|
static final int |
ARRAY |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ARRAY . |
static final int |
BIGINT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIGINT . |
static final int |
BINARY |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BINARY . |
static final int |
BIT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIT . |
static final int |
BLOB |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BLOB . |
static final int |
BOOLEAN |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BOOLEAN . |
static final int |
CHAR |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CHAR . |
static final int |
CLOB |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CLOB . |
static final int |
DATALINK |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATALINK . |
static final int |
DATE |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATE . |
static final int |
DECIMAL |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DECIMAL . |
static final int |
DISTINCT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DISTINCT . |
static final int |
DOUBLE |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DOUBLE . |
static final int |
FLOAT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT . |
static final int |
INTEGER |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type INTEGER . |
static final int |
JAVA_OBJECT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type JAVA_OBJECT . |
static final int |
LONGNVARCHAR |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGNVARCHAR . |
static final int |
LONGVARBINARY |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARBINARY . |
static final int |
LONGVARCHAR |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARCHAR . |
static final int |
NCHAR |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCHAR
|
static final int |
NCLOB |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NCLOB . |
static final int |
NULL |
The constant in the Java programming language that identifies the generic SQL value NULL . |
static final int |
NUMERIC |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NUMERIC . |
static final int |
NVARCHAR |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NVARCHAR . |
static final int |
OTHER |
The constant in the Java programming language that 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 . |
static final int |
REAL |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL . |
static final int |
REF |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF . |
static final int |
REF_CURSOR |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REF CURSOR . |
static final int |
ROWID |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type ROWID
|
static final int |
SMALLINT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type SMALLINT . |
static final int |
SQLXML |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type XML . |
static final int |
STRUCT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type STRUCT . |
static final int |
TIME |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME . |
static final int |
TIME_WITH_TIMEZONE |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME WITH TIMEZONE . |
static final int |
TIMESTAMP |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP . |
static final int |
TIMESTAMP_WITH_TIMEZONE |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP WITH TIMEZONE . |
static final int |
TINYINT |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TINYINT . |
static final int |
VARBINARY |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARBINARY . |
static final int |
VARCHAR |
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR . |
public static final int BIT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIT
.
public static final int TINYINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TINYINT
.
public static final int SMALLINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type SMALLINT
.
public static final int INTEGER
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type INTEGER
.
public static final int BIGINT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BIGINT
.
public static final int FLOAT
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type FLOAT
.
public static final int REAL
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type REAL
.
public static final int DOUBLE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DOUBLE
.
public static final int NUMERIC
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type NUMERIC
.
public static final int DECIMAL
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DECIMAL
.
public static final int CHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type CHAR
.
public static final int VARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARCHAR
.
public static final int LONGVARCHAR
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARCHAR
.
public static final int DATE
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type DATE
.
public static final int TIME
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIME
.
public static final int TIMESTAMP
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type TIMESTAMP
.
public static final int BINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type BINARY
.
public static final int VARBINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type VARBINARY
.
public static final int LONGVARBINARY
The constant in the Java programming language, sometimes referred to as a type code, that identifies the generic SQL type LONGVARBINARY
.
public static final int NULL
The constant in the Java programming language that identifies the generic SQL value NULL
.
public static final int OTHER
getObject
and setObject
.public static final int JAVA_OBJECT
JAVA_OBJECT
.public static final int DISTINCT
DISTINCT
.public static final int STRUCT
STRUCT
.public static final int ARRAY
ARRAY
.public static final int BLOB
BLOB
.public static final int CLOB
CLOB
.public static final int REF
REF
.public static final int DATALINK
DATALINK
.public static final int BOOLEAN
BOOLEAN
.public static final int ROWID
ROWID
public static final int NCHAR
NCHAR
public static final int NVARCHAR
NVARCHAR
.public static final int LONGNVARCHAR
LONGNVARCHAR
.public static final int NCLOB
NCLOB
.public static final int SQLXML
XML
.public static final int REF_CURSOR
REF CURSOR
.public static final int TIME_WITH_TIMEZONE
TIME WITH TIMEZONE
.public static final int TIMESTAMP_WITH_TIMEZONE
TIMESTAMP WITH TIMEZONE
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.sql/java/sql/Types.html