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

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

public class JDBCTutorPresetStorageIterator
extends Object
implements Iterator<TutorPreset>


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
 TutorPreset next()
          Returns the next preset in the iterator.
 void remove()
          does _not_ remove a preset 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<TutorPreset>
Returns:
boolean which is true if there is another row

next

public TutorPreset next()
Returns the next preset in the iterator.

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

remove

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

Specified by:
remove in interface Iterator<TutorPreset>