org.openrdf.sail.rdbms.iteration.base
Class RdbmIterationBase<T,X extends Exception>
java.lang.Object
org.openrdf.sail.rdbms.iteration.base.RdbmIterationBase<T,X>
- All Implemented Interfaces:
- CloseableIteration<T,X>, Iteration<T,X>
- Direct Known Subclasses:
- RdbmsBindingIteration, RdbmsResourceIteration, RdbmsStatementIteration
public abstract class RdbmIterationBase<T,X extends Exception>
- extends Object
- implements CloseableIteration<T,X>
Base class for Iteration of a ResultSet.
- Author:
- James Leigh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdbmIterationBase
public RdbmIterationBase(PreparedStatement stmt)
throws SQLException
- Throws:
SQLException
close
public void close()
throws X extends Exception
- Specified by:
close in interface CloseableIteration<T,X extends Exception>
- Throws:
X extends Exception
hasNext
public boolean hasNext()
throws X extends Exception
- Specified by:
hasNext in interface Iteration<T,X extends Exception>
- Throws:
X extends Exception
next
public T next()
throws X extends Exception
- Specified by:
next in interface Iteration<T,X extends Exception>
- Throws:
X extends Exception
remove
public void remove()
throws X extends Exception
- Specified by:
remove in interface Iteration<T,X extends Exception>
- Throws:
X extends Exception
convert
protected abstract T convert(ResultSet rs)
throws SQLException
- Throws:
SQLException
convertSQLException
protected abstract X convertSQLException(SQLException e)
Copyright © 2001-2008 Aduna. All Rights Reserved.