public enum JdbcType extends Enum<JdbcType> implements ColumnType
The class that defines the constants that are used to identify generic SQL types, called JDBC types. The int values are identical from java.sql.Types
Types
Enum Constant and Description |
---|
ARRAY
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
ARRAY . |
BIGINT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
BIGINT . |
BINARY
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
BINARY . |
BIT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
BIT . |
BLOB
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
BLOB . |
BOOLEAN
The constant in the Java programming language, somtimes referred to as a
type code, that identifies the generic SQL type
BOOLEAN . |
CHAR
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
CHAR . |
CLOB
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
CLOB . |
DATALINK
The constant in the Java programming language, somtimes referred to as a
type code, that identifies the generic SQL type
DATALINK . |
DATE
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
DATE . |
DECIMAL
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
DECIMAL . |
DISTINCT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
DISTINCT . |
DOUBLE
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
DOUBLE . |
FLOAT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
FLOAT . |
INTEGER
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
INTEGER . |
JAVA_OBJECT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
JAVA_OBJECT . |
LONGNVARCHAR
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
LONGNVARCHAR
. |
LONGVARBINARY
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
LONGVARBINARY . |
LONGVARCHAR
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
LONGVARCHAR . |
NCHAR
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
NCHAR |
NCLOB
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
NCLOB . |
NULL
The constant in the Java programming language that identifies the generic
SQL value
NULL . |
NUMERIC
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
NUMERIC . |
NVARCHAR
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
NVARCHAR . |
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 . |
REAL
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
REAL . |
REF
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
REF . |
REF_CURSOR
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
REF CURSOR . |
ROWID
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
ROWID |
SMALLINT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
SMALLINT . |
SQLXML
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
XML . |
STRUCT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
STRUCT . |
TIME
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
TIME . |
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 . |
TIMESTAMP
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
TIMESTAMP . |
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 . |
TINYINT
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
TINYINT . |
VARBINARY
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
VARBINARY . |
VARCHAR
The constant in the Java programming language, sometimes referred to as a
type code, that identifies the generic SQL type
VARCHAR . |
Modifier and Type | Method and Description |
---|---|
boolean |
isBinary() |
boolean |
isBlob() |
boolean |
isClob() |
boolean |
isDate() |
boolean |
isTime() |
boolean |
isTimestamp() |
int |
value() |
static ColumnType |
valueOf(int jdbcTypeValue) |
static JdbcType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JdbcType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType 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 JdbcType NULL
The constant in the Java programming language that identifies the generic
SQL value NULL
.
public static final JdbcType OTHER
getObject
and
setObject
.public static final JdbcType JAVA_OBJECT
JAVA_OBJECT
.public static final JdbcType DISTINCT
DISTINCT
.public static final JdbcType STRUCT
STRUCT
.public static final JdbcType ARRAY
ARRAY
.public static final JdbcType BLOB
BLOB
.public static final JdbcType CLOB
CLOB
.public static final JdbcType REF
REF
.public static final JdbcType DATALINK
DATALINK
.public static final JdbcType BOOLEAN
BOOLEAN
.public static final JdbcType ROWID
ROWID
public static final JdbcType NCHAR
NCHAR
public static final JdbcType NVARCHAR
NVARCHAR
.public static final JdbcType LONGNVARCHAR
LONGNVARCHAR
.public static final JdbcType NCLOB
NCLOB
.public static final JdbcType SQLXML
XML
.public static final JdbcType REF_CURSOR
REF CURSOR
.public static final JdbcType TIME_WITH_TIMEZONE
TIME WITH TIMEZONE
.public static final JdbcType TIMESTAMP_WITH_TIMEZONE
TIMESTAMP WITH TIMEZONE
.public static JdbcType[] values()
for (JdbcType c : JdbcType.values()) System.out.println(c);
public static JdbcType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int value()
value
in interface ColumnType
public boolean isBinary()
isBinary
in interface ColumnType
public boolean isBlob()
isBlob
in interface ColumnType
public boolean isClob()
isClob
in interface ColumnType
public boolean isDate()
isDate
in interface ColumnType
public boolean isTimestamp()
isTimestamp
in interface ColumnType
public boolean isTime()
isTime
in interface ColumnType
public static ColumnType valueOf(int jdbcTypeValue)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.