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