public class BooleanColumnHandler extends Object implements ColumnHandler
| Constructor and Description |
|---|
BooleanColumnHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(ResultSet rs,
int columnIndex)
Do the work required to retrieve and store a column from
ResultSet into something of type
propType. |
boolean |
match(Class<?> propType)
Test whether this
ColumnHandler wants to handle a column targetted for a value type matching
propType. |
public boolean match(Class<?> propType)
ColumnHandlerColumnHandler wants to handle a column targetted for a value type matching
propType.match in interface ColumnHandlerpropType - The type of the target parameter.public Object apply(ResultSet rs, int columnIndex) throws SQLException
ColumnHandlerResultSet into something of type
propType. This method is called only if this handler responded true after a
call to ColumnHandler.match(Class).apply in interface ColumnHandlerrs - The result set to get data from. This should be moved to the correct row already.columnIndex - The position of the column to retrieve.SQLExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.