|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ddlutils.platform.ModelBasedResultSetIterator
This is an iterator that is specifically targeted at traversing result sets.
If the query is against a known table, then SqlDynaBean instances
are created from the rows, otherwise normal DynaBean instances
are created.
| Constructor Summary | |
ModelBasedResultSetIterator(PlatformImplBase platform,
Database model,
ResultSet resultSet,
Table[] queryHints,
boolean cleanUpAfterFinish)
Creates a new iterator. |
|
| Method Summary | |
void |
cleanUp()
Closes the resources (connection, statement, resultset). |
protected void |
finalize()
|
boolean |
hasNext()
|
boolean |
isConnectionOpen()
Determines whether the connection is still open. |
Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ModelBasedResultSetIterator(PlatformImplBase platform,
Database model,
ResultSet resultSet,
Table[] queryHints,
boolean cleanUpAfterFinish)
throws DynaSqlException
platform - The platformmodel - The database modelresultSet - The result setqueryHints - The tables that were queried in the query that produced the given result set
(optional)cleanUpAfterFinish - Whether to close the statement and connection after finishing
the iteration, upon on exception, or when this iterator is garbage collected| Method Detail |
public boolean hasNext()
throws DynaSqlException
hasNext in interface IteratorDynaSqlException
public Object next()
throws DynaSqlException
next in interface IteratorDynaSqlException
public void remove()
throws DynaSqlException
remove in interface IteratorDynaSqlExceptionpublic void cleanUp()
protected void finalize()
throws Throwable
Throwablepublic boolean isConnectionOpen()
true if the connection is still open
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||