Package net.sf.jasperreports.engine.fill
Class JRFillDatasetRun
java.lang.Object
net.sf.jasperreports.engine.fill.JRFillDatasetRun
- All Implemented Interfaces:
Cloneable,JRCloneable,JRDatasetRun,JRIdentifiable,JRPropertiesHolder
- Direct Known Subclasses:
FillDatasetRun
Class used to instantiate sub datasets.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionprotected final JRFillDatasetprotected JRExpressionprotected final JRFillExpressionEvaluatorprotected final BaseReportFillerprotected JRDatasetParameter[]protected JRExpressionprotected final JRDatasetRun -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRFillDatasetRun(BaseReportFiller filler, JRFillExpressionEvaluator expressionEvaluator, JRDatasetRun datasetRun, JRFillDataset dataset) protectedJRFillDatasetRun(BaseReportFiller filler, JRDatasetRun datasetRun, JRFillDataset dataset) protectedJRFillDatasetRun(JRBaseFiller filler, JRFillExpressionEvaluator expressionEvaluator, JRDatasetRun datasetRun, JRFillObjectFactory factory) JRFillDatasetRun(JRBaseFiller filler, JRDatasetRun datasetRun, JRFillObjectFactory factory) Construct an instance for a dataset run.JRFillDatasetRun(JRFillDatasetRun datasetRun, JRFillCloneFactory factory) protectedJRFillDatasetRun(JRDatasetRun datasetRun, JRFillObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voidclone()protected voidcopyConnectionParameter(Map<String, Object> parameterValues) voidprotected voiddetail()voidevaluate(JRFillElementDataset elementDataset, byte evaluation) Instantiates and iterates the sub dataset for a chart dataset evaluation.Returns the DB connection expression.protected JRFillDatasetReturns the sub dataset name.Returns the data source expression.Returns the list of parameter values.Returns the parameters map expression.Returns the parent properties holder, whose properties are used as defaults for this object.Returns this object's properties map.Returns the list of values to be copied from the subdataset.getUUID()protected voidgroup()booleanChecks whether the object has any properties.protected voidinitReturnValues(JRFillObjectFactory factory) protected voiditerate()protected voidvoidsetBand(JRFillBand band) protected voidprotected boolean
-
Field Details
-
filler
-
expressionEvaluator
-
parentDatasetRun
-
dataset
-
parametersMapExpression
-
parameters
-
connectionExpression
-
dataSourceExpression
-
-
Constructor Details
-
JRFillDatasetRun
Construct an instance for a dataset run.- Parameters:
filler- the fillerdatasetRun- the dataset runfactory- the fill object factory
-
JRFillDatasetRun
-
JRFillDatasetRun
protected JRFillDatasetRun(JRBaseFiller filler, JRFillExpressionEvaluator expressionEvaluator, JRDatasetRun datasetRun, JRFillObjectFactory factory) -
JRFillDatasetRun
-
JRFillDatasetRun
protected JRFillDatasetRun(BaseReportFiller filler, JRFillExpressionEvaluator expressionEvaluator, JRDatasetRun datasetRun, JRFillDataset dataset) -
JRFillDatasetRun
-
-
Method Details
-
initReturnValues
-
setBand
-
evaluate
Instantiates and iterates the sub dataset for a chart dataset evaluation.- Parameters:
elementDataset- the chart datasetevaluation- the evaluation type- Throws:
JRException
-
saveReturnVariables
protected void saveReturnVariables() -
copyReturnValues
public void copyReturnValues() -
copyConnectionParameter
-
iterate
- Throws:
JRException
-
toStartWhenNoData
protected boolean toStartWhenNoData() -
advanceDataset
- Throws:
JRException
-
checkInterrupted
protected void checkInterrupted() -
group
- Throws:
JRExceptionJRScriptletException
-
startData
- Throws:
JRScriptletExceptionJRException
-
detail
- Throws:
JRScriptletExceptionJRException
-
getDatasetName
Description copied from interface:JRDatasetRunReturns the sub dataset name.- Specified by:
getDatasetNamein interfaceJRDatasetRun- Returns:
- the sub dataset name
-
getParametersMapExpression
Description copied from interface:JRDatasetRunReturns the parameters map expression.The result of this expression is used as the parameters map when instantiating the dataset.
- Specified by:
getParametersMapExpressionin interfaceJRDatasetRun- Returns:
- the parameters map expression
-
getParameters
Description copied from interface:JRDatasetRunReturns the list of parameter values.- Specified by:
getParametersin interfaceJRDatasetRun- Returns:
- the list of parameter values
-
getConnectionExpression
Description copied from interface:JRDatasetRunReturns the DB connection expression.The result of this expression is used as the DB connection when instantiating the dataset.
- Specified by:
getConnectionExpressionin interfaceJRDatasetRun- Returns:
- the DB connection expression
-
getDataSourceExpression
Description copied from interface:JRDatasetRunReturns the data source expression.The result of this expression is used as the data source when instantiating the dataset.
- Specified by:
getDataSourceExpressionin interfaceJRDatasetRun- Returns:
- the data source expression
-
getDataset
-
getUUID
- Specified by:
getUUIDin interfaceJRIdentifiable
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
hasProperties
public boolean hasProperties()Description copied from interface:JRPropertiesHolderChecks whether the object has any properties.- Specified by:
hasPropertiesin interfaceJRPropertiesHolder- Returns:
- whether the object has any properties
-
getPropertiesMap
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
Description copied from interface:JRPropertiesHolderReturns the parent properties holder, whose properties are used as defaults for this object.- Specified by:
getParentPropertiesin interfaceJRPropertiesHolder- Returns:
- the parent properties holder, or
nullif no parent
-
getReturnValues
Description copied from interface:JRDatasetRunReturns the list of values to be copied from the subdataset.- Specified by:
getReturnValuesin interfaceJRDatasetRun- Returns:
- the list of copied values.
-