public class JRReportCompileData
extends java.lang.Object
implements java.io.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 java.lang.String |
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_CROSSTAB_NOT_FOUND |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_DATASET_NOT_FOUND |
Constructor and Description |
---|
JRReportCompileData()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
getCrosstabCompileData(JRCrosstab crosstab)
Returns the compile data for a crosstab.
|
java.util.Map<java.lang.Integer,java.io.Serializable> |
getCrosstabsCompileData() |
java.io.Serializable |
getDatasetCompileData(JRDataset dataset)
Returns the compile data for a dataset.
|
java.io.Serializable |
getMainDatasetCompileData()
Returns the compile data for the main dataset.
|
java.lang.String |
getUnitName(JasperReport jasperReport,
JRCrosstab crosstab) |
java.lang.String |
getUnitName(JasperReport jasperReport,
JRDataset dataset) |
void |
setCrosstabCompileData(int crosstabId,
java.io.Serializable compileData)
Sets the compile data for a crosstab.
|
void |
setDatasetCompileData(JRDataset dataset,
java.io.Serializable compileData)
Sets the compile data for a dataset.
|
void |
setMainDatasetCompileData(java.io.Serializable compileData)
Sets the main dataset compile data.
|
public static final java.lang.String EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_CROSSTAB_NOT_FOUND
public static final java.lang.String EXCEPTION_MESSAGE_KEY_COMPILE_DATA_FOR_DATASET_NOT_FOUND
public void setMainDatasetCompileData(java.io.Serializable compileData)
compileData
- the main dataset compile datapublic void setDatasetCompileData(JRDataset dataset, java.io.Serializable compileData)
dataset
- the datasetcompileData
- the compile datapublic void setCrosstabCompileData(int crosstabId, java.io.Serializable compileData)
crosstabId
- the generated crosstab Id, which will be used to retreive the crosstab compile data at fill time.compileData
- the compile datapublic java.io.Serializable getMainDatasetCompileData()
public java.io.Serializable getDatasetCompileData(JRDataset dataset) throws JRException
dataset
- the datasetJRException
public java.io.Serializable getCrosstabCompileData(JRCrosstab crosstab) throws JRException
crosstab
- the crosstabJRException
public java.lang.String getUnitName(JasperReport jasperReport, JRDataset dataset)
public java.lang.String getUnitName(JasperReport jasperReport, JRCrosstab crosstab)
public java.util.Map<java.lang.Integer,java.io.Serializable> getCrosstabsCompileData()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com