Class BooleanColumnHandler
java.lang.Object
org.apache.commons.dbutils.handlers.columns.BooleanColumnHandler
- All Implemented Interfaces:
ColumnHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDo the work required to retrieve and store a column fromResultSet
into something of typepropType
.boolean
Test whether thisColumnHandler
wants to handle a column targeted for a value type matchingpropType
.
-
Constructor Details
-
BooleanColumnHandler
public BooleanColumnHandler()
-
-
Method Details
-
match
Description copied from interface:ColumnHandler
Test whether thisColumnHandler
wants to handle a column targeted for a value type matchingpropType
.- Specified by:
match
in interfaceColumnHandler
- Parameters:
propType
- The type of the target parameter.- Returns:
- true is this property handler can/wants to handle this value; false otherwise.
-
apply
Description copied from interface:ColumnHandler
Do the work required to retrieve and store a column fromResultSet
into something of typepropType
. This method is called only if this handler respondedtrue
after a call toColumnHandler.match(Class)
.- Specified by:
apply
in interfaceColumnHandler
- Parameters:
rs
- The result set to get data from. This should be moved to the correct row already.columnIndex
- The position of the column to retrieve.- Returns:
- The converted value or the original value if something doesn't work out.
- Throws:
SQLException
- if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set
-