Class JRDesignCrosstabDataset
java.lang.Object
net.sf.jasperreports.engine.base.JRBaseElementDataset
net.sf.jasperreports.engine.design.JRDesignElementDataset
net.sf.jasperreports.crosstabs.design.JRDesignCrosstabDataset
- All Implemented Interfaces:
Serializable
,Cloneable
,JRCrosstabDataset
,DatasetRunHolder
,JRChangeEventsSupport
,JRCloneable
,JRElementDataset
Input crosstab dataset implementation to be used at design time.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsFields inherited from class net.sf.jasperreports.engine.design.JRDesignElementDataset
PROPERTY_DATASET_RESET_TYPE, PROPERTY_DATASET_RUN, PROPERTY_INCREMENT_GROUP, PROPERTY_INCREMENT_TYPE, PROPERTY_INCREMENT_WHEN_EXPRESSION, PROPERTY_RESET_GROUP, PROPERTY_RESET_TYPE
Fields inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset
datasetResetType, datasetRun, incrementGroup, incrementType, incrementWhenExpression, resetGroup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectExpressions
(JRExpressionCollector collector) boolean
Returns whether the crosstab data is pre-sorted according to the crosstab's groups.void
setDataPreSorted
(boolean dataPreSorted) Sets the presorted flag for the dataset.Methods inherited from class net.sf.jasperreports.engine.design.JRDesignElementDataset
clone, getEventSupport, setDatasetRun, setIncrementGroup, setIncrementType, setIncrementWhenExpression, setResetGroup, setResetType
Methods inherited from class net.sf.jasperreports.engine.base.JRBaseElementDataset
getDatasetResetType, getDatasetRun, getIncrementGroup, getIncrementType, getIncrementWhenExpression, getResetGroup
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
Methods inherited from interface net.sf.jasperreports.engine.JRElementDataset
getDatasetResetType, getDatasetRun, getIncrementGroup, getIncrementType, getIncrementWhenExpression, getResetGroup
-
Field Details
-
PROPERTY_DATA_PRE_SORTED
- See Also:
-
dataPreSorted
protected boolean dataPreSorted
-
-
Constructor Details
-
JRDesignCrosstabDataset
public JRDesignCrosstabDataset()Creates a crosstab dataset.
-
-
Method Details
-
collectExpressions
- Specified by:
collectExpressions
in interfaceJRElementDataset
- Overrides:
collectExpressions
in classJRBaseElementDataset
-
isDataPreSorted
public boolean isDataPreSorted()Description copied from interface:JRCrosstabDataset
Returns whether the crosstab data is pre-sorted according to the crosstab's groups.The crosstab calculation engine can optimize the calculations if the data is sorted by the row groups and column groups. For example, if there are two row groups R1 and R2 (subgroup of R1) and three column groups C1, C2 and C3 the data should be sorted by R1, R2, C1, C2, C3.
- Specified by:
isDataPreSorted
in interfaceJRCrosstabDataset
- Returns:
- whether the crosstab data is pre-sorted
-
setDataPreSorted
public void setDataPreSorted(boolean dataPreSorted) Sets the presorted flag for the dataset.- Parameters:
dataPreSorted
- whether the input data is presorted- See Also:
-