public class SortedDataSource extends java.lang.Object implements JRRewindableDataSource, IndexedDataSource
Modifier and Type | Class and Description |
---|---|
static class |
SortedDataSource.SortRecord |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_FIELD_NOT_FOUND |
Constructor and Description |
---|
SortedDataSource(DatasetSortInfo sortInfo,
java.util.List<SortedDataSource.SortRecord> records,
java.lang.Integer[] recordIndexes) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFieldValue(JRField jrField)
Gets the field value for the current position.
|
int |
getRecordIndex()
Returns the index of the current record in the data source.
|
java.util.List<SortedDataSource.SortRecord> |
getRecords() |
void |
moveFirst()
Moves back to the first element in the data source.
|
boolean |
next()
Tries to position the cursor on the next element in the data source.
|
void |
setRecordFilteredIndex(int index) |
public static final java.lang.String EXCEPTION_MESSAGE_KEY_FIELD_NOT_FOUND
public SortedDataSource(DatasetSortInfo sortInfo, java.util.List<SortedDataSource.SortRecord> records, java.lang.Integer[] recordIndexes)
public boolean next()
JRDataSource
next
in interface JRDataSource
public void setRecordFilteredIndex(int index)
public java.lang.Object getFieldValue(JRField jrField)
JRDataSource
getFieldValue
in interface JRDataSource
public void moveFirst()
JRRewindableDataSource
moveFirst
in interface JRRewindableDataSource
public int getRecordIndex()
IndexedDataSource
getRecordIndex
in interface IndexedDataSource
public java.util.List<SortedDataSource.SortRecord> getRecords()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com