Class MeasurementDataSource
- java.lang.Object
-
- org.opennms.netmgt.jasper.measurement.MeasurementDataSource
-
- All Implemented Interfaces:
net.sf.jasperreports.engine.JRDataSource
,net.sf.jasperreports.engine.JRRewindableDataSource
public class MeasurementDataSource extends java.lang.Object implements net.sf.jasperreports.engine.JRRewindableDataSource
-
-
Field Summary
Fields Modifier and Type Field Description protected QueryResponse
response
-
Constructor Summary
Constructors Constructor Description MeasurementDataSource(java.io.InputStream inputStream)
MeasurementDataSource(QueryResponse queryResponse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static net.sf.jasperreports.engine.JRField
createField(java.lang.String name, java.lang.Class<?> clazz)
protected int
getCurrentRow()
protected java.util.List<net.sf.jasperreports.engine.JRField>
getFields()
Returns the supported fields.protected java.lang.Object
getFieldValue(java.lang.String name, int rowIndex)
java.lang.Object
getFieldValue(net.sf.jasperreports.engine.JRField jrField)
protected int
getRowCount()
void
moveFirst()
boolean
next()
-
-
-
Field Detail
-
response
protected QueryResponse response
-
-
Constructor Detail
-
MeasurementDataSource
public MeasurementDataSource(java.io.InputStream inputStream)
-
MeasurementDataSource
public MeasurementDataSource(QueryResponse queryResponse)
-
-
Method Detail
-
getFieldValue
protected java.lang.Object getFieldValue(java.lang.String name, int rowIndex)
-
getRowCount
protected int getRowCount()
-
getFields
protected java.util.List<net.sf.jasperreports.engine.JRField> getFields()
Returns the supported fields.- Returns:
- The supported fields.
-
createField
protected static net.sf.jasperreports.engine.JRField createField(java.lang.String name, java.lang.Class<?> clazz)
-
next
public boolean next()
- Specified by:
next
in interfacenet.sf.jasperreports.engine.JRDataSource
-
getFieldValue
public java.lang.Object getFieldValue(net.sf.jasperreports.engine.JRField jrField)
- Specified by:
getFieldValue
in interfacenet.sf.jasperreports.engine.JRDataSource
-
moveFirst
public void moveFirst()
- Specified by:
moveFirst
in interfacenet.sf.jasperreports.engine.JRRewindableDataSource
-
getCurrentRow
protected int getCurrentRow()
-
-