jdbreport.source
Class ReflectDataSet
java.lang.Object
jdbreport.source.AbstractDataSet
jdbreport.source.ReflectDataSet
- All Implemented Interfaces:
- Cloneable, ReportDataSet
- Direct Known Subclasses:
- ArrayDataSet, IteratorDataSet, ObjectDataSet
public abstract class ReflectDataSet
- extends AbstractDataSet
- Version:
- 2.0 02.12.2011
- Author:
- Andrey Kholmanskih
current
protected Object current
ReflectDataSet
public ReflectDataSet(String id)
reflect
protected void reflect(Object o)
getColumnMap
protected Map<String,Object> getColumnMap()
getObjectClass
protected Class<? extends Object> getObjectClass()
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
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
hasNext
public boolean hasNext()