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
public class JRBaseDatasetRun extends Object implements JRDatasetRun, Serializable
Base implementation of theJRDatasetRuninterface.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JRExpressionconnectionExpressionprotected StringdatasetNameprotected JRExpressiondataSourceExpressionprotected JRDatasetParameter[]parametersprotected JRExpressionparametersMapExpressionprotected JRPropertiesMappropertiesMapprotected List<ReturnValue>returnValuesprotected UUIDuuid
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRBaseDatasetRun()Creates an empty object.protectedJRBaseDatasetRun(JRDatasetRun datasetRun, JRBaseObjectFactory factory)Creates a copy of a dataset instantiation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()JRExpressiongetConnectionExpression()Returns the DB connection expression.StringgetDatasetName()Returns the sub dataset name.JRExpressiongetDataSourceExpression()Returns the data source expression.JRDatasetParameter[]getParameters()Returns the list of parameter values.JRExpressiongetParametersMapExpression()Returns the parameters map expression.JRPropertiesHoldergetParentProperties()Returns the parent properties holder, whose properties are used as defaults for this object.JRPropertiesMapgetPropertiesMap()Returns this object's properties map.List<ReturnValue>getReturnValues()Returns the list of values to be copied from the subdataset.UUIDgetUUID()booleanhasProperties()Checks whether the object has any properties.
-
-
-
Field Detail
-
uuid
protected UUID uuid
-
datasetName
protected String datasetName
-
parametersMapExpression
protected JRExpression parametersMapExpression
-
parameters
protected JRDatasetParameter[] parameters
-
connectionExpression
protected JRExpression connectionExpression
-
dataSourceExpression
protected JRExpression dataSourceExpression
-
propertiesMap
protected JRPropertiesMap propertiesMap
-
returnValues
protected List<ReturnValue> returnValues
-
-
Constructor Detail
-
JRBaseDatasetRun
protected JRBaseDatasetRun()
Creates an empty object.
-
JRBaseDatasetRun
protected JRBaseDatasetRun(JRDatasetRun datasetRun, JRBaseObjectFactory factory)
Creates a copy of a dataset instantiation.- Parameters:
datasetRun- the dataset instantiationfactory- the base object factory
-
-
Method Detail
-
getUUID
public UUID getUUID()
- Specified by:
getUUIDin interfaceJRIdentifiable
-
getDatasetName
public String getDatasetName()
Description copied from interface:JRDatasetRunReturns the sub dataset name.- Specified by:
getDatasetNamein interfaceJRDatasetRun- Returns:
- the sub dataset name
-
getParametersMapExpression
public JRExpression 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
public JRDatasetParameter[] getParameters()
Description copied from interface:JRDatasetRunReturns the list of parameter values.- Specified by:
getParametersin interfaceJRDatasetRun- Returns:
- the list of parameter values
-
getConnectionExpression
public JRExpression 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
public JRExpression 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
public List<ReturnValue> 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
public Object 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
public JRPropertiesMap getPropertiesMap()
Description copied from interface:JRPropertiesHolderReturns this object's properties map.- Specified by:
getPropertiesMapin interfaceJRPropertiesHolder- Returns:
- this object's properties map
-
getParentProperties
public JRPropertiesHolder 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
-
-