org.apache.beehive.controls.system.jdbc
Class DefaultIteratorResultSetMapper
Object
ResultSetMapper
DefaultIteratorResultSetMapper
public class DefaultIteratorResultSetMapper
- extends ResultSetMapper
Default ResultSetMapper implementation for Iterators.
Method Summary |
boolean |
canCloseResultSet()
Can the ResultSet which this mapper uses be closed by the database control on return from its invoke() method? |
Iterator |
mapToResultType(ControlBeanContext context,
Method m,
ResultSet resultSet,
Calendar cal)
Map a ResultSet to an object type
Type of object to interate over is defined in the SQL annotation for the method. |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIteratorResultSetMapper
public DefaultIteratorResultSetMapper()
mapToResultType
public Iterator mapToResultType(ControlBeanContext context,
Method m,
ResultSet resultSet,
Calendar cal)
- Map a ResultSet to an object type
Type of object to interate over is defined in the SQL annotation for the method.
- Specified by:
mapToResultType
in class ResultSetMapper
- Parameters:
context
- A ControlBeanContext instance, see Beehive controls javadoc for additional informationm
- Method assoicated with this call.resultSet
- Result set to map.cal
- A Calendar instance for time/date value resolution.
- Returns:
- The Iterator object instance resulting from the ResultSet
canCloseResultSet
public boolean canCloseResultSet()
- Can the ResultSet which this mapper uses be closed by the database control on return from its invoke() method?
- Overrides:
canCloseResultSet
in class ResultSetMapper
- Returns:
- always returns false