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, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDefaultLength, getIdentifierSuffix, getSqlType, hasLength, read, writepublic Integer fromResult(ResultSet results, int column) throws SQLException
BasicTypeResultSet 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 readResultSetSQLException - on a failure to read from the result setpublic Keyword getIdentifier()
getIdentifier in interface FieldType<Integer>getIdentifier in class BasicType<Integer>String or Keywordpublic int readInt(ResultSet results, int column) throws SQLException
readInt in interface PrimitiveIntTypeSQLExceptionpublic void writeInt(PreparedStatement statement, int index, int value) throws SQLException
writeInt in interface PrimitiveIntTypeSQLException