org.openrdf.sail.rdbms.iteration.base
Class RdbmIterationBase<T,X extends Exception>

java.lang.Object
  extended by 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

Constructor Summary
RdbmIterationBase(PreparedStatement stmt)
           
 
Method Summary
 void close()
           
protected abstract  T convert(ResultSet rs)
           
protected abstract  X convertSQLException(SQLException e)
           
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdbmIterationBase

public RdbmIterationBase(PreparedStatement stmt)
                  throws SQLException
Throws:
SQLException
Method Detail

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-2010 Aduna. All Rights Reserved.