|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.rdbms.iteration.base.RdbmIterationBase<T,X>
public abstract class RdbmIterationBase<T,X extends Exception>
Base class for Iteration of a ResultSet.
| Constructor Summary | |
|---|---|
RdbmIterationBase(PreparedStatement stmt)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this iteration, freeing any resources that it is holding. |
protected abstract T |
convert(ResultSet rs)
|
protected abstract X |
convertSQLException(SQLException e)
|
boolean |
hasNext()
Returns true if the iteration has more elements. |
T |
next()
Returns the next element in the iteration. |
void |
remove()
Removes from the underlying collection the last element returned by the iteration (optional operation). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RdbmIterationBase(PreparedStatement stmt)
throws SQLException
SQLException| Method Detail |
|---|
public void close()
throws X extends Exception
CloseableIteration
close in interface CloseableIteration<T,X extends Exception>X extends Exception
public boolean hasNext()
throws X extends Exception
IterationIteration.next() would return an element
rather than throwing a NoSuchElementException.)
hasNext in interface Iteration<T,X extends Exception>X
X extends Exception
public T next()
throws X extends Exception
Iteration
next in interface Iteration<T,X extends Exception>X extends Exception
public void remove()
throws X extends Exception
Iteration
remove in interface Iteration<T,X extends Exception>X extends Exception
protected abstract T convert(ResultSet rs)
throws SQLException
SQLExceptionprotected abstract X convertSQLException(SQLException e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||