Class JRReportCompileData
- java.lang.Object
-
- net.sf.jasperreports.engine.design.JRReportCompileData
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TableReportCompileData
public class JRReportCompileData extends Object implements Serializable
Structure used to hold a report's expression evaluator compile data.An instantce consists of expression evaluators for the main report dataset and for sub datasets.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
JasperReport.getCompileData()
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_CROSSTAB_NOT_FOUND
static String
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_DATASET_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description JRReportCompileData()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Serializable
getCrosstabCompileData(JRCrosstab crosstab)
Returns the compile data for a crosstab.Map<Integer,Serializable>
getCrosstabsCompileData()
Serializable
getDatasetCompileData(JRDataset dataset)
Returns the compile data for a dataset.Serializable
getMainDatasetCompileData()
Returns the compile data for the main dataset.String
getUnitName(JasperReport jasperReport, JRCrosstab crosstab)
String
getUnitName(JasperReport jasperReport, JRDataset dataset)
void
setCrosstabCompileData(int crosstabId, Serializable compileData)
Sets the compile data for a crosstab.void
setDatasetCompileData(JRDataset dataset, Serializable compileData)
Sets the compile data for a dataset.void
setMainDatasetCompileData(Serializable compileData)
Sets the main dataset compile data.
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_CROSSTAB_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_CROSSTAB_NOT_FOUND
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_DATASET_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_DATASET_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMainDatasetCompileData
public void setMainDatasetCompileData(Serializable compileData)
Sets the main dataset compile data.- Parameters:
compileData
- the main dataset compile data
-
setDatasetCompileData
public void setDatasetCompileData(JRDataset dataset, Serializable compileData)
Sets the compile data for a dataset.- Parameters:
dataset
- the datasetcompileData
- the compile data
-
setCrosstabCompileData
public void setCrosstabCompileData(int crosstabId, Serializable compileData)
Sets the compile data for a crosstab.- Parameters:
crosstabId
- the generated crosstab Id, which will be used to retreive the crosstab compile data at fill time.compileData
- the compile data
-
getMainDatasetCompileData
public Serializable getMainDatasetCompileData()
Returns the compile data for the main dataset.- Returns:
- the compile data for the main dataset
-
getDatasetCompileData
public Serializable getDatasetCompileData(JRDataset dataset) throws JRException
Returns the compile data for a dataset.- Parameters:
dataset
- the dataset- Returns:
- the compile data
- Throws:
JRException
-
getCrosstabCompileData
public Serializable getCrosstabCompileData(JRCrosstab crosstab) throws JRException
Returns the compile data for a crosstab.- Parameters:
crosstab
- the crosstab- Returns:
- the compile data
- Throws:
JRException
-
getUnitName
public String getUnitName(JasperReport jasperReport, JRDataset dataset)
-
getUnitName
public String getUnitName(JasperReport jasperReport, JRCrosstab crosstab)
-
getCrosstabsCompileData
public Map<Integer,Serializable> getCrosstabsCompileData()
-
-