jdbreport.source
Class MapDataSet
java.lang.Object
jdbreport.source.AbstractDataSet
jdbreport.source.MapDataSet
- All Implemented Interfaces:
- Cloneable, ReportDataSet
public class MapDataSet
- extends AbstractDataSet
- Version:
- 1.0 07.02.2011
- Author:
- Andrey Kholmanskih
MapDataSet
public MapDataSet(String id,
Map<String,Object> map)
getValue
public Object getValue(String name)
throws ReportException
- Description copied from interface:
ReportDataSet
- 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
public Collection<String> getColumnNames()
throws ReportException
- Description copied from interface:
ReportDataSet
- Returns names' collection of columns or properties
- Returns:
- names of columns or properties
- Throws:
ReportException
getCurrentObject
public Object getCurrentObject()
- Description copied from interface:
ReportDataSet
- Returns a current object, can be null
- Returns:
- - current object
reopen
public boolean reopen()
throws ReportException
- Description copied from interface:
ReportDataSet
- Reopens the DataSet when the MasterDataSet changes parameters
- Returns:
- true if not eof
- Throws:
ReportException
hasNext
public boolean hasNext()