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, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDefaultLength, getIdentifierSuffix, getSqlType, hasLength, read, write
public Short fromResult(ResultSet results, int column) throws SQLException
BasicType
ResultSet
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 readResultSet
SQLException
- on a failure to read from the result setpublic Keyword getIdentifier()
getIdentifier
in interface FieldType<Short>
getIdentifier
in class BasicType<Short>
String
or Keyword
public short readShort(ResultSet results, int column) throws SQLException
readShort
in interface PrimitiveShortType
SQLException
public void writeShort(PreparedStatement statement, int index, short value) throws SQLException
writeShort
in interface PrimitiveShortType
SQLException