Package net.sf.jasperreports.engine.data
Interface IndexedDataSource
- All Superinterfaces:
JRDataSource
- All Known Implementing Classes:
ColumnValuesDataSource
,SortedDataSource
JRDataSource
extension that can provide the record index at
the current position.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the index of the current record in the data source.Methods inherited from interface net.sf.jasperreports.engine.JRDataSource
getFieldValue, next
-
Method Details
-
getRecordIndex
int getRecordIndex()Returns the index of the current record in the data source. Note that this would not necessarily be the same as the index of the record in the order in which the data appears in the report, as after sorting or filtering a data source the original index of the record will be returned.- Returns:
- the index of the current record
-