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
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DatasetResetTypeEnumprotected JRDatasetRunprotected Stringprotected IncrementTypeEnumprotected JRExpressionprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedJRBaseElementDataset(JRElementDataset dataset) protectedJRBaseElementDataset(JRElementDataset dataset, JRBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()voidcollectExpressions(JRExpressionCollector collector) Gets the reset type.Returns the sub dataset run for this chart dataset.Gets the selected increment group in case of increment type group.Returns the increment type.Returns the "increment when" expression.Gets the selected reset group in case of reset type group.
-
Field Details
-
datasetResetType
-
incrementType
-
resetGroup
-
incrementGroup
-
datasetRun
-
incrementWhenExpression
-
-
Constructor Details
-
JRBaseElementDataset
protected JRBaseElementDataset() -
JRBaseElementDataset
-
JRBaseElementDataset
-
-
Method Details
-
getDatasetResetType
Description copied from interface:JRElementDatasetGets the reset type. This specifies the range of report data used for filling the dataset.- Specified by:
getDatasetResetTypein interfaceJRElementDataset- Returns:
- one of the reset constants in
DatasetResetTypeEnum
-
getIncrementType
Description copied from interface:JRElementDatasetReturns the increment type. This specifies dataset values increment step.- Specified by:
getIncrementTypein interfaceJRElementDataset- Returns:
- one of the increment constants in
IncrementTypeEnum.
-
getResetGroup
Description copied from interface:JRElementDatasetGets the selected reset group in case of reset type group.- Specified by:
getResetGroupin interfaceJRElementDataset
-
getIncrementGroup
Description copied from interface:JRElementDatasetGets the selected increment group in case of increment type group.- Specified by:
getIncrementGroupin interfaceJRElementDataset
-
getDatasetRun
Description copied from interface:JRElementDatasetReturns the sub dataset run for this chart dataset.- Specified by:
getDatasetRunin interfaceDatasetRunHolder- Specified by:
getDatasetRunin interfaceJRElementDataset- Returns:
- the sub dataset run for this chart dataset
-
getIncrementWhenExpression
Description copied from interface:JRElementDatasetReturns 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:
getIncrementWhenExpressionin interfaceJRElementDataset- Returns:
- the "increment when" expression
-
collectExpressions
- Specified by:
collectExpressionsin interfaceJRElementDataset
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-