public class IntegerType extends BasicType<Integer> implements PrimitiveIntType
Constructor and Description |
---|
IntegerType(Class<Integer> type) |
Modifier and Type | Method and Description |
---|---|
Integer |
fromResult(ResultSet results,
int column)
Reads a result using a specific
ResultSet get method rather than
ResultSet.getObject(int) . |
Keyword |
getIdentifier() |
int |
readInt(ResultSet results,
int column) |
void |
writeInt(PreparedStatement statement,
int index,
int value) |
equals, getDefaultLength, getIdentifierSuffix, getSqlType, hashCode, hasLength, toString, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDefaultLength, getIdentifierSuffix, getSqlType, hasLength, read, write
public Integer fromResult(ResultSet results, int column) throws SQLException
BasicType
ResultSet
get method rather than
ResultSet.getObject(int)
.fromResult
in class BasicType<Integer>
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 Keyword getIdentifier()
getIdentifier
in interface FieldType<Integer>
getIdentifier
in class BasicType<Integer>
String
or Keyword
public int readInt(ResultSet results, int column) throws SQLException
readInt
in interface PrimitiveIntType
SQLException
public void writeInt(PreparedStatement statement, int index, int value) throws SQLException
writeInt
in interface PrimitiveIntType
SQLException