public class JRReportCompileData extends Object implements Serializable
An instantce consists of expression evaluators for the main report dataset and for sub datasets.
JasperReport.getCompileData()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_CROSSTAB_NOT_FOUND |
static String |
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_DATASET_NOT_FOUND |
Constructor and Description |
---|
JRReportCompileData()
Default constructor.
|
Modifier and Type | Method and 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.
|
public static final String EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_CROSSTAB_NOT_FOUND
public static final String EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_DATASET_NOT_FOUND
public void setMainDatasetCompileData(Serializable compileData)
compileData
- the main dataset compile datapublic void setDatasetCompileData(JRDataset dataset, Serializable compileData)
dataset
- the datasetcompileData
- the compile datapublic void setCrosstabCompileData(int crosstabId, Serializable compileData)
crosstabId
- the generated crosstab Id, which will be used to retreive the crosstab compile data at fill time.compileData
- the compile datapublic Serializable getMainDatasetCompileData()
public Serializable getDatasetCompileData(JRDataset dataset) throws JRException
dataset
- the datasetJRException
public Serializable getCrosstabCompileData(JRCrosstab crosstab) throws JRException
crosstab
- the crosstabJRException
public String getUnitName(JasperReport jasperReport, JRDataset dataset)
public String getUnitName(JasperReport jasperReport, JRCrosstab crosstab)
public Map<Integer,Serializable> getCrosstabsCompileData()
Copyright © 2017. All rights reserved.