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