|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectResultSetMapper
public abstract class ResultSetMapper
Extend this class to create new ResultSet mappers. The extended class will be invoked by the JdbcController when it is time to map a ResultSet to a method's return type. ResultSet mappers are specified on a per method basis using the SQL annotation's resultSetMapper field.
Constructor Summary | |
---|---|
ResultSetMapper()
|
Method Summary | |
---|---|
boolean |
canCloseResultSet()
Can the ResultSet which this mapper uses be closed by the Jdbc control? |
abstract Object |
mapToResultType(ControlBeanContext context,
Method m,
ResultSet resultSet,
Calendar cal)
Map a ResultSet to an object type |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultSetMapper()
Method Detail |
---|
public abstract Object mapToResultType(ControlBeanContext context, Method m, ResultSet resultSet, Calendar cal)
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.
public boolean canCloseResultSet()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |