ReportMill 10 API

com.reportmill.datasource
Class RMJDBCDataSet

java.lang.Object
  extended by com.reportmill.datasource.RMDatum
      extended by com.reportmill.datasource.RMDataSet
          extended by com.reportmill.datasource.RMJDBCDataSet

public class RMJDBCDataSet
extends RMDataSet

A dataset subclass for JDBC.


Constructor Summary
RMJDBCDataSet(java.util.List aList, RMDataSource aDataSource, RMEntity anEntity, RMDatum aParent, java.lang.String aKey)
          Creates a new RMJDBCDataSet.
 
Method Summary
 void addDatum(RMDatum aDatum, int anIndex)
          The superclass version of this routine makes the list hold on to the actual data objects, with getDatum() above creating a new RMDatum every time it's accessed.
 RMDatum getDatum(int anIndex)
          Overridden to return an instance of RMJDBCDatum.
 
Methods inherited from class com.reportmill.datasource.RMDataSet
getList, removeDatum, size, 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

RMJDBCDataSet

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

Method Detail

getDatum

public RMDatum getDatum(int anIndex)
Overridden to return an instance of RMJDBCDatum.

Overrides:
getDatum in class RMDataSet

addDatum

public void addDatum(RMDatum aDatum,
                     int anIndex)
The superclass version of this routine makes the list hold on to the actual data objects, with getDatum() above creating a new RMDatum every time it's accessed. This messes with our uniquing, so we make the list hold the RMDatums.

Overrides:
addDatum in class RMDataSet

ReportMill 10 API