public interface DBType<E>
| Modifier and Type | Method and Description |
|---|---|
void |
bindToStmt(PreparedStatement stmt,
int index,
E 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.
|
E |
getFromResultSet(ResultSet rset,
int index)
Do what you have to do to get and return this database type from a result set.
|
E |
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.
|
E getFromResultSet(ResultSet rset, int index) throws SQLException
rset - The result setindex - The index in the result setSQLExceptionvoid bindToStmt(PreparedStatement stmt, int index, E value) throws SQLException
stmt - The prepared statementindex - The index in the prepared statementvalue - The value to be bound to the prepared statementSQLExceptionE getFromResultSet(ResultSet rset, String field) throws SQLException
rset - The result setfield - The name of the field in the result setSQLExceptionClass<? extends Object> getTypeClass()
boolean canBeNull()
String getAnsiType()
Copyright © 2016. All Rights Reserved.