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