public class ModelBasedResultSetIterator extends Object implements Iterator
SqlDynaBean instances
are created from the rows, otherwise normal DynaBean instances
are created.| Constructor and Description |
|---|
ModelBasedResultSetIterator(PlatformImplBase platform,
Database model,
ResultSet resultSet,
Table[] queryHints,
boolean cleanUpAfterFinish)
Creates a new iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Advances the iterator without materializing the object.
|
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() |
public ModelBasedResultSetIterator(PlatformImplBase platform, Database model, ResultSet resultSet, Table[] queryHints, boolean cleanUpAfterFinish) throws DatabaseOperationException
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 collectedDatabaseOperationExceptionpublic boolean hasNext()
throws DatabaseOperationException
hasNext in interface IteratorDatabaseOperationExceptionpublic Object next() throws DatabaseOperationException
next in interface IteratorDatabaseOperationExceptionpublic void advance()
next() except that no object is created and nothing is read from the result set.public void remove()
throws DatabaseOperationException
remove in interface IteratorDatabaseOperationExceptionpublic void cleanUp()
protected void finalize()
throws Throwable
public boolean isConnectionOpen()
true if the connection is still openCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.