Enum Constant and Description |
---|
ARRAY |
BIGINT |
BINARY |
BIT |
BLOB |
BOOLEAN |
CHAR |
CLOB |
DATALINK |
DATE |
DECIMAL |
DOUBLE |
FLOAT |
INTEGER |
JAVA_OBJECT |
LONGNVARCHAR |
LONGVARBINARY |
LONGVARCHAR |
NCHAR |
NCLOB |
NULL |
NUMERIC |
NVARCHAR |
OTHER |
REAL |
ROWID |
SMALLINT |
SQLXML |
TIME |
TIMESTAMP |
TINYINT |
VARBINARY |
VARCHAR |
Modifier and Type | Method and Description |
---|---|
static SQLType |
findType(int typeCode)
Find the SQLType for the given type code from java.sql.Types
|
java.lang.Class<?> |
getJavaClass() |
int |
getType()
The corresponding code from java.sql.Types
|
java.lang.Object |
read(int columnIndex,
java.sql.ResultSet rs) |
void |
setParam(java.sql.CallableStatement stmt,
java.lang.String paramName,
java.lang.Object value) |
void |
setParam(java.sql.PreparedStatement stmt,
int index,
java.lang.Object value) |
static SQLType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SQLType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SQLType BIT
public static final SQLType TINYINT
public static final SQLType SMALLINT
public static final SQLType INTEGER
public static final SQLType BIGINT
public static final SQLType FLOAT
public static final SQLType REAL
public static final SQLType DOUBLE
public static final SQLType NUMERIC
public static final SQLType DECIMAL
public static final SQLType CHAR
public static final SQLType VARCHAR
public static final SQLType LONGVARCHAR
public static final SQLType DATE
public static final SQLType TIME
public static final SQLType TIMESTAMP
public static final SQLType BINARY
public static final SQLType VARBINARY
public static final SQLType LONGVARBINARY
public static final SQLType NULL
public static final SQLType OTHER
public static final SQLType JAVA_OBJECT
public static final SQLType BLOB
public static final SQLType CLOB
public static final SQLType BOOLEAN
public static final SQLType NVARCHAR
public static final SQLType NCHAR
public static final SQLType LONGNVARCHAR
public static final SQLType NCLOB
public static final SQLType ARRAY
public static final SQLType SQLXML
public static final SQLType DATALINK
public static final SQLType ROWID
public static SQLType[] values()
for (SQLType c : SQLType.values()) System.out.println(c);
public static SQLType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SQLType findType(int typeCode)
java.lang.IllegalArgumentException
- if the typecode is unknown.public int getType()
public java.lang.Class<?> getJavaClass()
public java.lang.Object read(int columnIndex, java.sql.ResultSet rs) throws java.sql.SQLException
java.sql.SQLException
public void setParam(java.sql.PreparedStatement stmt, int index, java.lang.Object value) throws java.sql.SQLException
java.sql.SQLException
public void setParam(java.sql.CallableStatement stmt, java.lang.String paramName, java.lang.Object value) throws java.sql.SQLException
java.sql.SQLException