org.activemath.webapp.tools.data.storage
Class JDBCGapStorageDBIterator

java.lang.Object
  extended by org.activemath.webapp.tools.data.storage.JDBCGapStorageDBIterator
All Implemented Interfaces:
Iterator<Gap>

public class JDBCGapStorageDBIterator
extends Object
implements Iterator<Gap>


Field Summary
static int LIMIT_NUM_ROWS
          Number of rows which is output by default; increases performance, because a full result set is only output on request.
protected static Logger log
          The logger for this class
 
Method Summary
 boolean hasNext()
          check whether there is another row in the request
 Gap next()
          Returns the next gap in the iterator.
 void remove()
          does _not_ remove a gap from the iterator, but throws a UnsupportedOperationException instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Logger log
The logger for this class


LIMIT_NUM_ROWS

public static int LIMIT_NUM_ROWS
Number of rows which is output by default; increases performance, because a full result set is only output on request. Limit is only recognized if not filtering

Method Detail

hasNext

public boolean hasNext()
check whether there is another row in the request

Specified by:
hasNext in interface Iterator<Gap>
Returns:
boolean which is true if there is another row

next

public Gap next()
Returns the next gap in the iterator.

Specified by:
next in interface Iterator<Gap>
Returns:
gap in the row or null, if the row was empty

remove

public void remove()
does _not_ remove a gap from the iterator, but throws a UnsupportedOperationException instead.

Specified by:
remove in interface Iterator<Gap>