Package net.sf.jasperreports.engine.base
Class JRBaseDatasetRun
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseDatasetRun
- All Implemented Interfaces:
Serializable,Cloneable,JRCloneable,JRDatasetRun,JRIdentifiable,JRPropertiesHolder
- Direct Known Subclasses:
JRDesignDatasetRun
Base implementation of the
JRDatasetRun interface.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionprotected Stringprotected JRExpressionprotected JRDatasetParameter[]protected JRExpressionprotected JRPropertiesMapprotected List<ReturnValue> protected UUID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates an empty object.protectedJRBaseDatasetRun(JRDatasetRun datasetRun, JRBaseObjectFactory factory) Creates a copy of a dataset instantiation. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the DB connection expression.Returns 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()booleanChecks whether the object has any properties.
-
Field Details
-
uuid
-
datasetName
-
parametersMapExpression
-
parameters
-
connectionExpression
-
dataSourceExpression
-
propertiesMap
-
returnValues
-
-
Constructor Details
-
JRBaseDatasetRun
protected JRBaseDatasetRun()Creates an empty object. -
JRBaseDatasetRun
Creates a copy of a dataset instantiation.- Parameters:
datasetRun- the dataset instantiationfactory- the base object factory
-
-
Method Details
-
getUUID
- Specified by:
getUUIDin interfaceJRIdentifiable
-
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
-
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.
-
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
-