public interface ColumnHandler
ResultSet. ColumnHandlers do the work of retrieving data correctly from the ResultSet.| 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. |
boolean match(Class<?> propType)
ColumnHandler wants to handle a column targetted for a value type matching
propType.propType - The type of the target parameter.Object apply(ResultSet rs, int columnIndex) throws SQLException
ResultSet into something of type
propType. This method is called only if this handler responded true after a
call to match(Class).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.SQLExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.