public abstract class ResultIterator extends Object
ResultColumn
implementation given the engine in place.| Constructor and Description |
|---|
ResultIterator(PreparedStatement statement)
Creates a new instance of
ResultIterator for PreparedStatement. |
ResultIterator(Statement statement,
String sql)
Creates a new instance of
ResultIterator for regular Statement. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
|
abstract ResultColumn |
createResultColumn(String name,
Object value)
Creates a
ResultColumn for the given engine in place. |
boolean |
isClosed() |
Map<String,ResultColumn> |
next()
Retrieves the next row in the result set.
|
public ResultIterator(Statement statement, String sql) throws DatabaseEngineException
ResultIterator for regular Statement.statement - The statement.sql - The SQL sentence.DatabaseEngineException - If a database access error occurs.public ResultIterator(PreparedStatement statement) throws DatabaseEngineException
ResultIterator for PreparedStatement.statement - The prepared statement.DatabaseEngineException - If a database access error occurs.public Map<String,ResultColumn> next() throws DatabaseEngineException
This method also closes the result set upon the last call on the result set.
If the statement in place is not a PreparedStatement it also closes the statement.
If an exception is thrown the calling thread is responsible for repeating the action in place.
DatabaseEngineException - If a database access error occurs.public boolean isClosed()
public void close()
public abstract ResultColumn createResultColumn(String name, Object value)
ResultColumn for the given engine in place.name - The name of the column.value - The value on the column.Copyright © 2013. All Rights Reserved.