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 of JRDatasetRun to be used for report design.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
  • Field Details

  • Constructor Details

    • JRDesignDatasetRun

      public JRDesignDatasetRun()
      Creates an empty dataset instantiation.
  • Method Details

    • addParameter

      public void addParameter(JRDatasetParameter parameter) throws JRException
      Adds a parameter value.
      Parameters:
      parameter - the parameter value
      Throws:
      JRException
      See Also:
    • 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:
    • setDatasetName

      public void setDatasetName(String datasetName)
      Sets the sub dataset name.
      Parameters:
      datasetName - the sub dataset name
      See Also:
    • setDataSourceExpression

      public void setDataSourceExpression(JRExpression dataSourceExpression)
      Sets the data source expression.
      Parameters:
      dataSourceExpression - the data source expression
      See Also:
    • setParametersMapExpression

      public void setParametersMapExpression(JRExpression parametersMapExpression)
      Sets the parameters map expression.
      Parameters:
      parametersMapExpression - the parameters map expression
      See Also:
    • getParameters

      public JRDatasetParameter[] getParameters()
      Description copied from interface: JRDatasetRun
      Returns the list of parameter values.
      Specified by:
      getParameters in interface JRDatasetRun
      Overrides:
      getParameters in class JRBaseDatasetRun
      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 interface JRCloneable
      Overrides:
      clone in class JRBaseDatasetRun
    • getEventSupport

      public JRPropertyChangeSupport getEventSupport()
      Description copied from interface: JRChangeEventsSupport
      Returns the property change support object for this instance.
      Specified by:
      getEventSupport in interface JRChangeEventsSupport
      Returns:
      the property change support object for this instance