Package net.sf.jasperreports.engine.base
Class JRBaseElementDataset
- java.lang.Object
-
- net.sf.jasperreports.engine.base.JRBaseElementDataset
-
- All Implemented Interfaces:
Serializable
,Cloneable
,DatasetRunHolder
,JRCloneable
,JRElementDataset
- Direct Known Subclasses:
BaseMultiAxisDataset
,JRBaseChartDataset
,JRBaseCrosstabDataset
,JRDesignElementDataset
public class JRBaseElementDataset extends Object implements JRElementDataset, Serializable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DatasetResetTypeEnum
datasetResetType
protected JRDatasetRun
datasetRun
protected String
incrementGroup
protected IncrementTypeEnum
incrementType
protected JRExpression
incrementWhenExpression
protected String
resetGroup
-
Constructor Summary
Constructors Modifier Constructor Description protected
JRBaseElementDataset()
protected
JRBaseElementDataset(JRElementDataset dataset)
protected
JRBaseElementDataset(JRElementDataset dataset, JRBaseObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
void
collectExpressions(JRExpressionCollector collector)
DatasetResetTypeEnum
getDatasetResetType()
Gets the reset type.JRDatasetRun
getDatasetRun()
Returns the sub dataset run for this chart dataset.String
getIncrementGroup()
Gets the selected increment group in case of increment type group.IncrementTypeEnum
getIncrementType()
Returns the increment type.JRExpression
getIncrementWhenExpression()
Returns the "increment when" expression.String
getResetGroup()
Gets the selected reset group in case of reset type group.
-
-
-
Field Detail
-
datasetResetType
protected DatasetResetTypeEnum datasetResetType
-
incrementType
protected IncrementTypeEnum incrementType
-
resetGroup
protected String resetGroup
-
incrementGroup
protected String incrementGroup
-
datasetRun
protected JRDatasetRun datasetRun
-
incrementWhenExpression
protected JRExpression incrementWhenExpression
-
-
Constructor Detail
-
JRBaseElementDataset
protected JRBaseElementDataset()
-
JRBaseElementDataset
protected JRBaseElementDataset(JRElementDataset dataset)
-
JRBaseElementDataset
protected JRBaseElementDataset(JRElementDataset dataset, JRBaseObjectFactory factory)
-
-
Method Detail
-
getDatasetResetType
public DatasetResetTypeEnum getDatasetResetType()
Description copied from interface:JRElementDataset
Gets the reset type. This specifies the range of report data used for filling the dataset.- Specified by:
getDatasetResetType
in interfaceJRElementDataset
- Returns:
- one of the reset constants in
DatasetResetTypeEnum
-
getIncrementType
public IncrementTypeEnum getIncrementType()
Description copied from interface:JRElementDataset
Returns the increment type. This specifies dataset values increment step.- Specified by:
getIncrementType
in interfaceJRElementDataset
- Returns:
- one of the increment constants in
IncrementTypeEnum
.
-
getResetGroup
public String getResetGroup()
Description copied from interface:JRElementDataset
Gets the selected reset group in case of reset type group.- Specified by:
getResetGroup
in interfaceJRElementDataset
-
getIncrementGroup
public String getIncrementGroup()
Description copied from interface:JRElementDataset
Gets the selected increment group in case of increment type group.- Specified by:
getIncrementGroup
in interfaceJRElementDataset
-
getDatasetRun
public JRDatasetRun getDatasetRun()
Description copied from interface:JRElementDataset
Returns the sub dataset run for this chart dataset.- Specified by:
getDatasetRun
in interfaceDatasetRunHolder
- Specified by:
getDatasetRun
in interfaceJRElementDataset
- Returns:
- the sub dataset run for this chart dataset
-
getIncrementWhenExpression
public JRExpression getIncrementWhenExpression()
Description copied from interface:JRElementDataset
Returns the "increment when" expression.This expression determines whether a dataset will be incremented or not.
The expression (if not null) is evaluated before each increment of the dataset. The increment will be carried on only when the result of the evaluation is
Boolean.TRUE
; if the result is null or false, the increment will not be performed.- Specified by:
getIncrementWhenExpression
in interfaceJRElementDataset
- Returns:
- the "increment when" expression
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
- Specified by:
collectExpressions
in interfaceJRElementDataset
-
clone
public Object clone()
- Specified by:
clone
in interfaceJRCloneable
- Overrides:
clone
in classObject
-
-