| Modifier and Type | Class and Description |
|---|---|
static class |
EnumIdType.Test |
| Constructor and Description |
|---|
EnumIdType(Class<? extends Enum<?>> enumType) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindToStmt(PreparedStatement stmt,
int index,
Enum<?> value)
Do what you have to do to bind a value to a prepared statement.
|
boolean |
canBeNull()
Returns whether this type can be NULL in the database.
|
String |
getAnsiType()
Return the best ANSI type for this database type.
|
Enum<?> |
getFromResultSet(ResultSet rset,
int index)
Do what you have to do to get and return this database type from a result set.
|
Enum<?> |
getFromResultSet(ResultSet rset,
String field)
Do what you have to do to get and return this database type from a result set.
|
Class<? extends Object> |
getTypeClass()
Return the java type representing this database type.
|
static void |
main(String[] args) |
EnumIdType |
nullable(boolean flag) |
String |
toString() |
public boolean canBeNull()
DBTypepublic EnumIdType nullable(boolean flag)
public String getAnsiType()
DBTypegetAnsiType in interface DBType<Enum<?>>public Enum<?> getFromResultSet(ResultSet rset, int index) throws SQLException
DBTypegetFromResultSet in interface DBType<Enum<?>>rset - The result setindex - The index in the result setSQLExceptionpublic Enum<?> getFromResultSet(ResultSet rset, String field) throws SQLException
DBTypegetFromResultSet in interface DBType<Enum<?>>rset - The result setfield - The name of the field in the result setSQLExceptionpublic Class<? extends Object> getTypeClass()
DBTypegetTypeClass in interface DBType<Enum<?>>public void bindToStmt(PreparedStatement stmt, int index, Enum<?> value) throws SQLException
DBTypebindToStmt in interface DBType<Enum<?>>stmt - The prepared statementindex - The index in the prepared statementvalue - The value to be bound to the prepared statementSQLExceptionCopyright © 2016. All Rights Reserved.