| Modifier and Type | Method and Description |
|---|---|
static Integer[] |
fieldValues()
Returns an array containing the field values of this enum type.
|
static Type |
fromFieldValue(int fieldValue)
Return the enum constant of this type with the specified field value.
|
Integer |
getFieldValue()
Returns field value.
|
void |
setNull(PreparedStatement preparedStatement,
int parameterIndex)
Invokes
PreparedStatement.setNull(int, int) on given
preparedStatement with specified parameterIndex and
fieldValue. |
void |
setObject(PreparedStatement preparedStatement,
int parameterIndex,
Object x)
Invokes
PreparedStatement.setObject(int, java.lang.Object, int)
on given preparedStatement with
parameterIndex, x, and fieldValue. |
void |
setObject(PreparedStatement preparedStatement,
int parameterIndex,
Object x,
int scaleOrLength)
Invokes
PreparedStatement.setObject(int, java.lang.Object, int, int) on
given preparedStatement with parameterIndex, x,
and fieldValue, and scaleOfLength. |
static Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type LONGNVARCHAR
Types.LONGVARCHAR.public static final Type NCHAR
Types.NCHAR.public static final Type NVARCHAR
Types.NVARCHAR.public static final Type ROWID
Types.ROWID.public static final Type TINYINT
Types.TINYINT.public static final Type BIGINT
Types.BIGINT.public static final Type LONGVARBINARY
Types.LONGVARBINARY.public static final Type VARBINARY
Types.VARBINARY.public static final Type BINARY
Types.BINARY.public static final Type LONGVARCHAR
Types.LONGVARCHAR.public static final Type CHAR
Types.CHAR.public static final Type NUMERIC
Types.NUMERIC.public static final Type DECIMAL
Types.DECIMAL.public static final Type INTEGER
Types.INTEGER.public static final Type SMALLINT
Types.SMALLINT.public static final Type FLOAT
Types.FLOAT.public static final Type REAL
Types.REAL.public static final Type DOUBLE
Types.DOUBLE.public static final Type VARCHAR
Types.VARCHAR.public static final Type BOOLEAN
Types.BOOLEAN.public static final Type DATALINK
Types.DATALINK.public static final Type DATE
Types.DATE.public static final Type TIME
Types.TIME.public static final Type TIMESTAMP
Types.TIMESTAMP.public static final Type JAVA_OBJECT
Types.JAVA_OBJECT.public static final Type DISTINCT
Types.DISTINCT.public static final Type STRUCT
Types.STRUCT.public static final Type ARRAY
Types.ARRAY.public static final Type BLOB
Types.BLOBpublic static final Type CLOB
Types.CLOB.public static final Type SQLXML
Types.SQLXML.public static final Type NCLOB
Types.NCLOB.public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type 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 static Type fromFieldValue(int fieldValue)
fieldValue - the field value of the enum constant to be returnedpublic static Integer[] fieldValues()
public Integer getFieldValue()
FieldEnumgetFieldValue in interface FieldEnum<Type,Integer>public void setNull(PreparedStatement preparedStatement, int parameterIndex) throws SQLException
PreparedStatement.setNull(int, int) on given
preparedStatement with specified parameterIndex and
fieldValue.preparedStatement - prepared statementparameterIndex - parameter indexSQLException - see PreparedStatement.setNull(int, int)public void setObject(PreparedStatement preparedStatement, int parameterIndex, Object x) throws SQLException
PreparedStatement.setObject(int, java.lang.Object, int)
on given preparedStatement with
parameterIndex, x, and fieldValue.preparedStatement - prepared statementparameterIndex - parameter indexx - the object to setSQLException - see
PreparedStatement.setObject(int, java.lang.Object, int)public void setObject(PreparedStatement preparedStatement, int parameterIndex, Object x, int scaleOrLength) throws SQLException
PreparedStatement.setObject(int, java.lang.Object, int, int) on
given preparedStatement with parameterIndex, x,
and fieldValue, and scaleOfLength.preparedStatement - prepared statementparameterIndex - parameter indexx - the object to setscaleOrLength - scale or lengthSQLException - see
PreparedStatement.setObject(int, java.lang.Object, int, int)Copyright © 2011-2013. All Rights Reserved.