public class ListOfArrayDataSource extends Object implements JRRewindableDataSource
| Modifier and Type | Field and Description |
|---|---|
protected Object[] |
currentRecord |
static String |
EXCEPTION_MESSAGE_KEY_FIELD_NOT_FOUND |
| Constructor and Description |
|---|
ListOfArrayDataSource(List<Object[]> records,
String[] columnNames) |
| Modifier and Type | Method and Description |
|---|---|
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 String EXCEPTION_MESSAGE_KEY_FIELD_NOT_FOUND
protected Object[] currentRecord
public boolean next()
JRDataSourcenext in interface JRDataSourcepublic Object getFieldValue(JRField jrField)
JRDataSourcegetFieldValue in interface JRDataSourcepublic void moveFirst()
JRRewindableDataSourcemoveFirst in interface JRRewindableDataSourcepublic int size()
Copyright © 2017. All rights reserved.