public interface JRCompiler
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPILER_CLASS
Deprecated.
Replaced by
COMPILER_PREFIX. |
static String |
COMPILER_CLASSPATH
The classpath used by the report compiler.
|
static String |
COMPILER_KEEP_JAVA_FILE
Whether to keep the java file generated when the report is compiled.
|
static String |
COMPILER_PREFIX
Prefix for properties that map report compilers to expression languages.
|
static String |
COMPILER_TEMP_DIR
The temporary directory used by the report compiler.
|
| Modifier and Type | Method and Description |
|---|---|
JasperReport |
compileReport(JasperDesign jasperDesign)
Compiles a report design.
|
JREvaluator |
loadEvaluator(JasperReport jasperReport)
Loads the evaluator for a report's main dataset.
|
JREvaluator |
loadEvaluator(JasperReport jasperReport,
JRCrosstab crosstab)
Loads a expression evaluator class for a crosstab of a report.
|
JREvaluator |
loadEvaluator(JasperReport jasperReport,
JRDataset dataset)
Loads a expression evaluator class for a dataset of a report.
|
static final String COMPILER_CLASS
COMPILER_PREFIX.No default value.
static final String COMPILER_PREFIX
static final String COMPILER_KEEP_JAVA_FILE
Defaults to false.
static final String COMPILER_TEMP_DIR
Defaults to System.getProperty("user.dir").
static final String COMPILER_CLASSPATH
Defaults to System.getProperty("java.class.path").
JasperReport compileReport(JasperDesign jasperDesign) throws JRException
The compilation consists of verification of the design, generation of expression evaluators and construction of a serializable read-only version of the report.
A report compiler should usually extend JRAbstractCompiler.
jasperDesign - the report designJRExceptionJREvaluator loadEvaluator(JasperReport jasperReport) throws JRException
jasperReport - the reportJRExceptionJREvaluator loadEvaluator(JasperReport jasperReport, JRDataset dataset) throws JRException
jasperReport - the reportdataset - the datasetJRExceptionJREvaluator loadEvaluator(JasperReport jasperReport, JRCrosstab crosstab) throws JRException
jasperReport - the reportcrosstab - the crosstabJRExceptionCopyright © 2012. All Rights Reserved.