public class SmallIntType extends BasicType<Short> implements PrimitiveShortType
| Constructor and Description |
|---|
SmallIntType(Class<Short> type) |
| Modifier and Type | Method and Description |
|---|---|
Short |
fromResult(ResultSet results,
int column)
Reads a result using a specific
ResultSet get method rather than
ResultSet.getObject(int). |
Keyword |
getIdentifier() |
short |
readShort(ResultSet results,
int column) |
void |
writeShort(PreparedStatement statement,
int index,
short value) |
equals, getDefaultLength, getIdentifierSuffix, getSqlType, hashCode, hasLength, toString, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDefaultLength, getIdentifierSuffix, getSqlType, hasLength, read, writepublic Short fromResult(ResultSet results, int column) throws SQLException
BasicTypeResultSet get method rather than
ResultSet.getObject(int).fromResult in class BasicType<Short>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<Short>getIdentifier in class BasicType<Short>String or Keywordpublic short readShort(ResultSet results, int column) throws SQLException
readShort in interface PrimitiveShortTypeSQLExceptionpublic void writeShort(PreparedStatement statement, int index, short value) throws SQLException
writeShort in interface PrimitiveShortTypeSQLException