public interface FieldType<T>
ResultSet and written to a
JDBC PreparedStatement.| Modifier and Type | Method and Description |
|---|---|
Integer |
getDefaultLength() |
Object |
getIdentifier() |
String |
getIdentifierSuffix() |
int |
getSqlType() |
boolean |
hasLength() |
T |
read(ResultSet results,
int column)
Read the type from a JDBC
ResultSet. |
void |
write(PreparedStatement statement,
int index,
T value)
Write the value into a JDBC
PreparedStatement. |
@Nullable T read(ResultSet results, int column) throws SQLException
ResultSet.results - result setcolumn - column indexSQLException - when failing to read a value from the resultsvoid write(PreparedStatement statement, int index, @Nullable T value) throws SQLException
PreparedStatement.statement - statement to useindex - parameter indexvalue - object valueSQLException - when failing to set the value in the statementint getSqlType()
Types constants indicating the JDBC typeboolean hasLength()
@Nullable Integer getDefaultLength()