|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBType<E>
An interface defining a database type. You can add more database types by implementing this interface.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
E getFromResultSet(ResultSet rset,
int index)
throws SQLException
rset - The result setindex - The index in the result set
SQLException
void 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 statement
SQLException
E getFromResultSet(ResultSet rset,
String field)
throws SQLException
rset - The result setfield - The name of the field in the result set
SQLExceptionClass<? extends Object> getTypeClass()
boolean canBeNull()
String getAnsiType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||