jdbreport.source
Class IteratorDataSet

java.lang.Object
  extended by jdbreport.source.AbstractDataSet
      extended by jdbreport.source.ReflectDataSet
          extended by jdbreport.source.IteratorDataSet
All Implemented Interfaces:
Cloneable, ReportDataSet
Direct Known Subclasses:
IterableDataSet

public class IteratorDataSet
extends ReflectDataSet

Version:
1.4 15.03.2010
Author:
Andrey Kholmanskih

Field Summary
 
Fields inherited from class jdbreport.source.ReflectDataSet
current
 
Fields inherited from class jdbreport.source.AbstractDataSet
logger
 
Constructor Summary
IteratorDataSet(String id, Iterator<?> it)
           
 
Method Summary
 boolean next()
          Moves the cursor on the next record (object) in the DataSet
 boolean reopen()
          Does nothing
protected  void setIterator(Iterator<?> it)
           
 
Methods inherited from class jdbreport.source.ReflectDataSet
getColumnMap, getColumnNames, getCurrentObject, getObjectClass, getValue, hasNext, reflect
 
Methods inherited from class jdbreport.source.AbstractDataSet
clone, getId, getMasterId, getParams
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorDataSet

public IteratorDataSet(String id,
                       Iterator<?> it)
Method Detail

next

public boolean next()
             throws ReportException
Description copied from interface: ReportDataSet
Moves the cursor on the next record (object) in the DataSet

Specified by:
next in interface ReportDataSet
Overrides:
next in class AbstractDataSet
Returns:
true if successful
Throws:
ReportException

setIterator

protected void setIterator(Iterator<?> it)

reopen

public boolean reopen()
               throws ReportException
Does nothing

Returns:
true if not eof
Throws:
ReportException