T
- java typepublic abstract class BasicType<T> extends BaseType<T>
ResultSet
get method rather than
ResultSet.getObject(int)
.Modifier | Constructor and Description |
---|---|
protected |
BasicType(Class<T> type,
int sqlType)
Instantiates a new type instance.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
fromResult(ResultSet results,
int column)
Reads a result using a specific
ResultSet get method rather than
ResultSet.getObject(int) . |
abstract Keyword |
getIdentifier() |
T |
read(ResultSet results,
int column)
Read the type from a JDBC
ResultSet . |
equals, getDefaultLength, getIdentifierSuffix, getSqlType, hashCode, hasLength, toString, write
public abstract T fromResult(ResultSet results, int column) throws SQLException
ResultSet
get method rather than
ResultSet.getObject(int)
.results
- ResultSet
set to the index of the result to be readcolumn
- column index to readResultSet
SQLException
- on a failure to read from the result setpublic T read(ResultSet results, int column) throws SQLException
FieldType
ResultSet
.public abstract Keyword getIdentifier()
getIdentifier
in interface FieldType<T>
getIdentifier
in class BaseType<T>
String
or Keyword