ReportMill 10 API

com.reportmill.datasource
Class RMDataSet

java.lang.Object
  extended by com.reportmill.datasource.RMDatum
      extended by com.reportmill.datasource.RMDataSet
Direct Known Subclasses:
RMJDBCDataSet

public class RMDataSet
extends RMDatum

This class is an abstract representation of a list with the ability to access individual objects, and add/remove items.


Constructor Summary
RMDataSet(java.util.List aList, RMDataSource aDataSource, RMEntity anEntity, RMDatum aParent, java.lang.String aKey)
          Creates a new dataset.
 
Method Summary
 void addDatum(RMDatum aDatum, int anIndex)
          Adds a data object at the given index.
 RMDatum getDatum(int anIndex)
          Returns the datum at the given index.
 java.util.List getList()
          Returns the dataset list object.
 void removeDatum(int anIndex)
          Removes a data object at the given index.
 int size()
          Returns the size of the dataset.
 java.lang.String toString()
           
 
Methods inherited from class com.reportmill.datasource.RMDatum
getDataSet, getDataSource, getDatum, getEntity, getKey, getObject, getParent, getProperty, getPropertyType, getValue, setValue, valueForKey
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMDataSet

public RMDataSet(java.util.List aList,
                 RMDataSource aDataSource,
                 RMEntity anEntity,
                 RMDatum aParent,
                 java.lang.String aKey)
Creates a new dataset.

Method Detail

getList

public java.util.List getList()
Returns the dataset list object.


size

public int size()
Returns the size of the dataset.


getDatum

public RMDatum getDatum(int anIndex)
Returns the datum at the given index.


addDatum

public void addDatum(RMDatum aDatum,
                     int anIndex)
Adds a data object at the given index.


removeDatum

public void removeDatum(int anIndex)
Removes a data object at the given index.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ReportMill 10 API