Class SQLXMLColumnHandler
java.lang.Object
org.apache.commons.dbutils.handlers.columns.SQLXMLColumnHandler
- All Implemented Interfaces:
ColumnHandler<SQLXML>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the current row's column value from aResultSet
and stores it into an instance ofpropType
.boolean
Tests whether to handle a column targeted for a value type matchingpropType
.
-
Constructor Details
-
SQLXMLColumnHandler
public SQLXMLColumnHandler()
-
-
Method Details
-
apply
Description copied from interface:ColumnHandler
Retrieves the current row's column value from aResultSet
and stores it into an instance ofpropType
. This method is only called ifColumnHandler.match(Class)
returns true.- Specified by:
apply
in interfaceColumnHandler<SQLXML>
- Parameters:
resultSet
- The source result set. This must be on the correct row.columnIndex
- The position of the column to retrieve, a 1-based index.- 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
-
match
Description copied from interface:ColumnHandler
Tests whether to handle a column targeted for a value type matchingpropType
.- Specified by:
match
in interfaceColumnHandler<SQLXML>
- Parameters:
propType
- The type of the target parameter.- Returns:
- true is this property handler handles this
propType
; false otherwise.
-