|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.jdbc.object.MappingSqlQueryWithParameters.ResultReaderImpl
protected class MappingSqlQueryWithParameters.ResultReaderImpl
Implementation of ResultReader that calls the enclosing
class's mapRow method for each row.
| Constructor Summary | |
|---|---|
MappingSqlQueryWithParameters.ResultReaderImpl(int rowsExpected,
Object[] parameters,
Map context)
Use an array results. |
|
| Method Summary | |
|---|---|
List |
getResults()
Return all results, disconnected from the JDBC ResultSet. |
void |
processRow(ResultSet rs)
Implementations must implement this method to process each row of data in the ResultSet. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappingSqlQueryWithParameters.ResultReaderImpl(int rowsExpected,
Object[] parameters,
Map context)
| Method Detail |
|---|
public void processRow(ResultSet rs)
throws SQLException
RowCallbackHandlernext() on
the ResultSet; it is only supposed to extract values of the current row.
Exactly what the implementation chooses to do is up to it: A trivial implementation might simply count rows, while another implementation might build an XML document.
processRow in interface RowCallbackHandlerrs - the ResultSet to process (pre-initialized for the current row)
SQLException - if a SQLException is encountered getting
column values (that is, there's no need to catch SQLException)public List getResults()
ResultReader
getResults in interface ResultReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||