public abstract class PostgreSQLStatementIterator<T>
extends java.lang.Object
implements com.googlecode.cqengine.index.support.CloseableIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.sql.Connection |
connection |
protected java.sql.ResultSet |
resultSet |
protected java.sql.PreparedStatement |
statement |
| Constructor and Description |
|---|
PostgreSQLStatementIterator(java.sql.PreparedStatement statement,
java.sql.Connection connection,
boolean lazy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract T |
fetchNext() |
boolean |
hasNext() |
T |
next() |
protected java.sql.ResultSet resultSet
protected final java.sql.PreparedStatement statement
protected final java.sql.Connection connection
public PostgreSQLStatementIterator(java.sql.PreparedStatement statement,
java.sql.Connection connection,
boolean lazy)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>protected abstract T fetchNext()
public void close()
close in interface com.googlecode.cqengine.index.support.CloseableIterator<T>close in interface java.io.Closeableclose in interface java.lang.AutoCloseable