public interface JRDatasetRun extends JRCloneable, JRIdentifiable, JRPropertiesHolder
java.sql.Connection
can be passed to the dataset instead of a JRDataSource
instance,
when there is a SQL query associated with the dataset. This query is executed by the engine using the
JDBC connection and the java.sql.ResultSet
object obtained is iterated through.
Dataset runs resemble subreports in the way parameters and the data source/connection
are passed in.
Charts, crosstabs and other report components can reference datasets by instantiating and configuring dataset
runs. If no dataset run is specified for a component, the main dataset of the report is
used.JRDataset
,
JRElementDataset.getDatasetRun()
Modifier and Type | Method and Description |
---|---|
JRExpression |
getConnectionExpression()
Returns the DB connection expression.
|
String |
getDatasetName()
Returns the sub dataset name.
|
JRExpression |
getDataSourceExpression()
Returns the data source expression.
|
JRDatasetParameter[] |
getParameters()
Returns the list of parameter values.
|
JRExpression |
getParametersMapExpression()
Returns the parameters map expression.
|
List<ReturnValue> |
getReturnValues()
Returns the list of values to be copied from the subdataset.
|
clone
getUUID
getParentProperties, getPropertiesMap, hasProperties
String getDatasetName()
JRExpression getParametersMapExpression()
The result of this expression is used as the parameters map when instantiating the dataset.
JRDatasetParameter[] getParameters()
JRExpression getConnectionExpression()
The result of this expression is used as the DB connection when instantiating the dataset.
JRExpression getDataSourceExpression()
The result of this expression is used as the data source when instantiating the dataset.
List<ReturnValue> getReturnValues()
Copyright © 2016. All rights reserved.