it.eng.spagobi.engines.console.exporter
Class JRSpagoBIDataStoreDataSource

java.lang.Object
  extended by it.eng.spagobi.engines.console.exporter.JRSpagoBIDataStoreDataSource
All Implemented Interfaces:
net.sf.jasperreports.engine.JRDataSource, net.sf.jasperreports.engine.JRRewindableDataSource

public class JRSpagoBIDataStoreDataSource
extends java.lang.Object
implements net.sf.jasperreports.engine.JRRewindableDataSource

Author:
Andrea Gioia (andrea.gioia@eng.it)

Constructor Summary
JRSpagoBIDataStoreDataSource(it.eng.spagobi.tools.dataset.common.datastore.IDataStore ds)
           
 
Method Summary
 JRSpagoBIDataStoreDataSource cloneDataSource()
          Clones this data source by creating a new instance that reuses the same underlying map collection.
 it.eng.spagobi.tools.dataset.common.datastore.IDataStore getDataStore()
          Returns the underlying map dataStore used by this data source.
 java.lang.Object getFieldValue(net.sf.jasperreports.engine.JRField field)
           
 int getRecordCount()
          Returns the total number of records/maps that this data source contains.
 void moveFirst()
           
 boolean next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRSpagoBIDataStoreDataSource

public JRSpagoBIDataStoreDataSource(it.eng.spagobi.tools.dataset.common.datastore.IDataStore ds)
Method Detail

next

public boolean next()
Specified by:
next in interface net.sf.jasperreports.engine.JRDataSource

getFieldValue

public java.lang.Object getFieldValue(net.sf.jasperreports.engine.JRField field)
Specified by:
getFieldValue in interface net.sf.jasperreports.engine.JRDataSource

moveFirst

public void moveFirst()
Specified by:
moveFirst in interface net.sf.jasperreports.engine.JRRewindableDataSource

getDataStore

public it.eng.spagobi.tools.dataset.common.datastore.IDataStore getDataStore()
Returns the underlying map dataStore used by this data source.

Returns:
the underlying dataStore

getRecordCount

public int getRecordCount()
Returns the total number of records/maps that this data source contains.

Returns:
the total number of records of this data source

cloneDataSource

public JRSpagoBIDataStoreDataSource cloneDataSource()
Clones this data source by creating a new instance that reuses the same underlying map collection.

Returns:
a clone of this data source