jdbreport.source
Class AbstractDataSet

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

public abstract class AbstractDataSet
extends Object
implements ReportDataSet

Version:
1.1 03/09/08
Author:
Andrey Kholmanskih

Field Summary
protected static Logger logger
           
 
Constructor Summary
protected AbstractDataSet()
           
  AbstractDataSet(String id)
           
 
Method Summary
 Object clone()
           
 String getId()
           
 String getMasterId()
          Returns id of the leading DataSet
 and.dbcomp.DataSetParams getParams()
          Returns parameters
 boolean next()
          Moves the cursor on the next record (object) in the DataSet
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jdbreport.source.ReportDataSet
getColumnNames, getCurrentObject, getValue, hasNext, reopen
 

Field Detail

logger

protected static final Logger logger
Constructor Detail

AbstractDataSet

protected AbstractDataSet()

AbstractDataSet

public AbstractDataSet(String id)
Method Detail

getId

public String getId()
Specified by:
getId in interface ReportDataSet
Returns:
DataSet id

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
Returns:
true if successful
Throws:
ReportException

getParams

public and.dbcomp.DataSetParams getParams()
                                   throws ReportException
Description copied from interface: ReportDataSet
Returns parameters

Specified by:
getParams in interface ReportDataSet
Returns:
parameters
Throws:
ReportException

getMasterId

public String getMasterId()
Description copied from interface: ReportDataSet
Returns id of the leading DataSet

Specified by:
getMasterId in interface ReportDataSet
Returns:
masterId property

clone

public Object clone()
Specified by:
clone in interface ReportDataSet
Overrides:
clone in class Object