public class ColumnValuesDataSource extends java.lang.Object implements JRRewindableDataSource, IndexedDataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_INVALID_SNAPSHOT_FIELD_TYPE |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_NO_SUCH_SNAPSHOT_FIELD |
Constructor and Description |
---|
ColumnValuesDataSource(java.lang.String[] fieldNames,
int size,
ColumnValues[] values) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFieldValue(JRField field)
Gets the field value for the current position.
|
int |
getRecordIndex()
Returns the index of the current record in the data source.
|
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.
|
public static final java.lang.String EXCEPTION_MESSAGE_KEY_INVALID_SNAPSHOT_FIELD_TYPE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_NO_SUCH_SNAPSHOT_FIELD
public ColumnValuesDataSource(java.lang.String[] fieldNames, int size, ColumnValues[] values)
public boolean next() throws JRException
JRDataSource
next
in interface JRDataSource
JRException
- if any error occurs while trying to move to the next elementpublic java.lang.Object getFieldValue(JRField field) throws DataSnapshotException
JRDataSource
getFieldValue
in interface JRDataSource
DataSnapshotException
public void moveFirst()
JRRewindableDataSource
moveFirst
in interface JRRewindableDataSource
public int getRecordIndex()
IndexedDataSource
getRecordIndex
in interface IndexedDataSource
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com