public class ListOfArrayDataSource extends java.lang.Object implements JRRewindableDataSource
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[] |
currentRecord |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_FIELD_NOT_FOUND |
Constructor and Description |
---|
ListOfArrayDataSource(java.util.List<java.lang.Object[]> records,
java.lang.String[] columnNames) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFieldValue(JRField jrField)
Gets the field value for the current position.
|
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.
|
int |
size() |
public static final java.lang.String EXCEPTION_MESSAGE_KEY_FIELD_NOT_FOUND
protected java.lang.Object[] currentRecord
public ListOfArrayDataSource(java.util.List<java.lang.Object[]> records, java.lang.String[] columnNames)
public boolean next()
JRDataSource
next
in interface JRDataSource
public java.lang.Object getFieldValue(JRField jrField)
JRDataSource
getFieldValue
in interface JRDataSource
public void moveFirst()
JRRewindableDataSource
moveFirst
in interface JRRewindableDataSource
public int size()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com