public class DataSourceCollection<D extends JRDataSource,P extends DataSourceProvider<D>> extends java.lang.Object implements JRDataSource
Modifier and Type | Field and Description |
---|---|
protected D |
currentDataSource |
protected boolean |
empty |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_METHOD_CALL_ERROR |
protected java.util.ListIterator<? extends P> |
providerIterator |
Constructor and Description |
---|
DataSourceCollection(java.util.List<? extends P> dataSourceProviders) |
Modifier and Type | Method and Description |
---|---|
D |
currentDataSource() |
java.lang.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 java.lang.String EXCEPTION_MESSAGE_KEY_METHOD_CALL_ERROR
protected final boolean empty
protected final java.util.ListIterator<? extends P extends DataSourceProvider<D>> providerIterator
protected D extends JRDataSource currentDataSource
public DataSourceCollection(java.util.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 java.lang.Object getFieldValue(JRField field) throws JRException
JRDataSource
getFieldValue
in interface JRDataSource
JRException
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com