jdbreport.source
Interface ReportDataSet

All Superinterfaces:
Cloneable
All Known Subinterfaces:
MasterDataSet
All Known Implementing Classes:
AbstractDataSet, ArrayDataSet, BufferedDataSet, IterableDataSet, IteratorDataSet, JdbcDataSet, MapDataSet, ObjectDataSet, ReflectDataSet

public interface ReportDataSet
extends Cloneable

Version:
1.4 15.03.2010
Author:
Andrey Kholmanskih

Method Summary
 Object clone()
           
 Collection<String> getColumnNames()
          Returns names' collection of columns or properties
 Object getCurrentObject()
          Returns a current object, can be null
 String getId()
           
 String getMasterId()
          Returns id of the leading DataSet
 and.dbcomp.DataSetParams getParams()
          Returns parameters
 Object getValue(String name)
          Returns value from the current record (object) by the name
 boolean hasNext()
           
 boolean next()
          Moves the cursor on the next record (object) in the DataSet
 boolean reopen()
          Reopens the DataSet when the MasterDataSet changes parameters
 

Method Detail

getId

String getId()
Returns:
DataSet id

next

boolean next()
             throws ReportException
Moves the cursor on the next record (object) in the DataSet

Returns:
true if successful
Throws:
ReportException

getValue

Object getValue(String name)
                throws ReportException
Returns value from the current record (object) by the name

Parameters:
name - - the column's name or the property's name
Returns:
value by the name
Throws:
ReportException

getColumnNames

Collection<String> getColumnNames()
                                  throws ReportException
Returns names' collection of columns or properties

Returns:
names of columns or properties
Throws:
ReportException

getCurrentObject

Object getCurrentObject()
Returns a current object, can be null

Returns:
- current object

getParams

and.dbcomp.DataSetParams getParams()
                                   throws ReportException
Returns parameters

Returns:
parameters
Throws:
ReportException

getMasterId

String getMasterId()
Returns id of the leading DataSet

Returns:
masterId property

reopen

boolean reopen()
               throws ReportException
Reopens the DataSet when the MasterDataSet changes parameters

Returns:
true if not eof
Throws:
ReportException

clone

Object clone()

hasNext

boolean hasNext()