public class DataSourceCollection<D extends JRDataSource,P extends DataSourceProvider<D>> extends Object implements JRDataSource
Modifier and Type | Field and Description |
---|---|
protected D |
currentDataSource |
protected boolean |
empty |
static String |
EXCEPTION_MESSAGE_KEY_METHOD_CALL_ERROR |
protected ListIterator<? extends P> |
providerIterator |
Constructor and Description |
---|
DataSourceCollection(List<? extends P> dataSourceProviders) |
Modifier and Type | Method and Description |
---|---|
D |
currentDataSource() |
Object |
getFieldValue(JRField field)
Gets the field value for the current position.
|
boolean |
next()
Tries to position the cursor on the next element in the data source.
|
protected void |
start() |
public static final String EXCEPTION_MESSAGE_KEY_METHOD_CALL_ERROR
protected final boolean empty
protected final ListIterator<? extends P extends DataSourceProvider<D>> providerIterator
protected D extends JRDataSource currentDataSource
public DataSourceCollection(List<? extends P> dataSourceProviders) throws JRException
JRException
protected final void start() throws JRException
JRException
public D currentDataSource()
public boolean next() throws JRException
JRDataSource
next
in interface JRDataSource
JRException
- if any error occurs while trying to move to the next elementpublic Object getFieldValue(JRField field) throws JRException
JRDataSource
getFieldValue
in interface JRDataSource
JRException
Copyright © 2017. All rights reserved.