Class JRDesignDatasetRun
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseDatasetRun
-
- net.sf.jasperreports.engine.design.JRDesignDatasetRun
-
- All Implemented Interfaces:
Serializable
,Cloneable
,JRChangeEventsSupport
,JRCloneable
,JRDatasetRun
,JRIdentifiable
,JRPropertiesHolder
public class JRDesignDatasetRun extends JRBaseDatasetRun implements JRChangeEventsSupport
Implementation ofJRDatasetRun
to be used for report design.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_DUPLICATE_PARAMETER
static String
PROPERTY_CONNECTION_EXPRESSION
static String
PROPERTY_DATA_SOURCE_EXPRESSION
static String
PROPERTY_DATASET_NAME
static String
PROPERTY_PARAMETERS
static String
PROPERTY_PARAMETERS_MAP_EXPRESSION
static String
PROPERTY_RETURN_VALUES
-
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseDatasetRun
connectionExpression, datasetName, dataSourceExpression, parameters, parametersMapExpression, propertiesMap, returnValues, uuid
-
-
Constructor Summary
Constructors Constructor Description JRDesignDatasetRun()
Creates an empty dataset instantiation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(JRDatasetParameter parameter)
Adds a parameter value.void
addReturnValue(ReturnValue returnValue)
Adds a return value to the subdataset run.Object
clone()
JRPropertyChangeSupport
getEventSupport()
Returns the property change support object for this instance.JRDatasetParameter[]
getParameters()
Returns the list of parameter values.List<ReturnValue>
getReturnValuesList()
Returns the list of values to be copied from the subdataset run into the main dataset.JRDatasetParameter
removeParameter(String parameterName)
Removes a parameter value.JRDatasetParameter
removeParameter(JRDatasetParameter parameter)
Removes a parameter value.boolean
removeReturnValue(ReturnValue returnValue)
Removes a return value from the subdataset run.void
setConnectionExpression(JRExpression connectionExpression)
Sets the connection expression.void
setDatasetName(String datasetName)
Sets the sub dataset name.void
setDataSourceExpression(JRExpression dataSourceExpression)
Sets the data source expression.void
setParametersMapExpression(JRExpression parametersMapExpression)
Sets the parameters map expression.void
setUUID(UUID uuid)
-
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseDatasetRun
getConnectionExpression, getDatasetName, getDataSourceExpression, getParametersMapExpression, getParentProperties, getPropertiesMap, getReturnValues, getUUID, hasProperties
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_DUPLICATE_PARAMETER
public static final String EXCEPTION_MESSAGE_KEY_DUPLICATE_PARAMETER
- See Also:
- Constant Field Values
-
PROPERTY_CONNECTION_EXPRESSION
public static final String PROPERTY_CONNECTION_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_DATASET_NAME
public static final String PROPERTY_DATASET_NAME
- See Also:
- Constant Field Values
-
PROPERTY_DATA_SOURCE_EXPRESSION
public static final String PROPERTY_DATA_SOURCE_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_PARAMETERS_MAP_EXPRESSION
public static final String PROPERTY_PARAMETERS_MAP_EXPRESSION
- See Also:
- Constant Field Values
-
PROPERTY_PARAMETERS
public static final String PROPERTY_PARAMETERS
- See Also:
- Constant Field Values
-
PROPERTY_RETURN_VALUES
public static final String PROPERTY_RETURN_VALUES
- See Also:
- Constant Field Values
-
-
Method Detail
-
addParameter
public void addParameter(JRDatasetParameter parameter) throws JRException
Adds a parameter value.- Parameters:
parameter
- the parameter value- Throws:
JRException
- See Also:
JRDatasetRun.getParameters()
-
removeParameter
public JRDatasetParameter removeParameter(String parameterName)
Removes a parameter value.- Parameters:
parameterName
- the parameter name- Returns:
- the removed parameter value
-
removeParameter
public JRDatasetParameter removeParameter(JRDatasetParameter parameter)
Removes a parameter value.- Parameters:
parameter
- the parameter value- Returns:
- the parameter value
-
setConnectionExpression
public void setConnectionExpression(JRExpression connectionExpression)
Sets the connection expression.- Parameters:
connectionExpression
- the connection expression- See Also:
JRDatasetRun.getConnectionExpression()
-
setDatasetName
public void setDatasetName(String datasetName)
Sets the sub dataset name.- Parameters:
datasetName
- the sub dataset name- See Also:
JRDatasetRun.getDatasetName()
-
setDataSourceExpression
public void setDataSourceExpression(JRExpression dataSourceExpression)
Sets the data source expression.- Parameters:
dataSourceExpression
- the data source expression- See Also:
JRDatasetRun.getDataSourceExpression()
-
setParametersMapExpression
public void setParametersMapExpression(JRExpression parametersMapExpression)
Sets the parameters map expression.- Parameters:
parametersMapExpression
- the parameters map expression- See Also:
JRDatasetRun.getParametersMapExpression()
-
getParameters
public JRDatasetParameter[] getParameters()
Description copied from interface:JRDatasetRun
Returns the list of parameter values.- Specified by:
getParameters
in interfaceJRDatasetRun
- Overrides:
getParameters
in classJRBaseDatasetRun
- Returns:
- the list of parameter values
-
setUUID
public void setUUID(UUID uuid)
-
addReturnValue
public void addReturnValue(ReturnValue returnValue)
Adds a return value to the subdataset run.- Parameters:
returnValue
- the return value to be added.
-
getReturnValuesList
public List<ReturnValue> getReturnValuesList()
Returns the list of values to be copied from the subdataset run into the main dataset.- Returns:
- list of
ReturnValue
objects
-
removeReturnValue
public boolean removeReturnValue(ReturnValue returnValue)
Removes a return value from the subdataset run.- Parameters:
returnValue
- the return value to be removed- Returns:
true
if the return value was found and removed
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classJRBaseDatasetRun
-
getEventSupport
public JRPropertyChangeSupport getEventSupport()
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-
-