org.openrdf.sail.rdbms.iteration
Class EmptyRdbmsStatementIteration

java.lang.Object
  extended by org.openrdf.sail.rdbms.iteration.base.RdbmIterationBase<RdbmsStatement,SailException>
      extended by org.openrdf.sail.rdbms.iteration.RdbmsStatementIteration
          extended by org.openrdf.sail.rdbms.iteration.EmptyRdbmsStatementIteration
All Implemented Interfaces:
CloseableIteration<RdbmsStatement,SailException>, Iteration<RdbmsStatement,SailException>

public class EmptyRdbmsStatementIteration
extends RdbmsStatementIteration

Empty iteration that extends RdbmsStatementIteration.

Author:
James Leigh

Constructor Summary
EmptyRdbmsStatementIteration()
           
 
Method Summary
 void close()
          Closes this iteration, freeing any resources that it is holding.
 boolean hasNext()
          Returns true if the iteration has more elements.
 
Methods inherited from class org.openrdf.sail.rdbms.iteration.RdbmsStatementIteration
convert, convertSQLException
 
Methods inherited from class org.openrdf.sail.rdbms.iteration.base.RdbmIterationBase
next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyRdbmsStatementIteration

public EmptyRdbmsStatementIteration()
                             throws SQLException
Throws:
SQLException
Method Detail

close

public void close()
           throws SailException
Description copied from interface: CloseableIteration
Closes this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.

Specified by:
close in interface CloseableIteration<RdbmsStatement,SailException>
Overrides:
close in class RdbmIterationBase<RdbmsStatement,SailException>
Throws:
SailException

hasNext

public boolean hasNext()
                throws SailException
Description copied from interface: Iteration
Returns true if the iteration has more elements. (In other words, returns true if Iteration.next() would return an element rather than throwing a NoSuchElementException.)

Specified by:
hasNext in interface Iteration<RdbmsStatement,SailException>
Overrides:
hasNext in class RdbmIterationBase<RdbmsStatement,SailException>
Returns:
true if the iteration has more elements.
Throws:
SailException


Copyright © 2001-2012 Aduna. All Rights Reserved.