public class JasperReport extends JRBaseReport
Through compilation, along with various consistency checks and rearrangements of the report elements for more rapid performance in the application, the library creates an on-the-fly class file (or a script, depending on the type of the report compiler used) containing all the report expressions (such as report variables expressions, text field and image expressions, and group expressions). This class or script is used to evaluate report expressions during the report-filling process at runtime.
The main difference between a compiled report and a report design is that reports are already compiled and validated, so many characteristics are read only.
background, bottomMargin, columnCount, columnDirection, columnFooter, columnHeader, columnSpacing, columnWidth, datasets, defaultStyle, detailSection, formatFactoryClass, ignorePagination, importsSet, isFloatColumnFooter, isSummaryNewPage, isSummaryWithPageHeaderAndFooter, isTitleNewPage, language, lastPageFooter, leftMargin, mainDataset, name, noData, orientationValue, pageFooter, pageHeader, pageHeight, pageWidth, printOrderValue, PROPERTY_SECTION_TYPE, PROPERTY_WHEN_NO_DATA_TYPE, rightMargin, sectionType, styles, summary, templates, title, topMargin, whenNoDataTypeValue
LANGUAGE_GROOVY, LANGUAGE_JAVA
Constructor and Description |
---|
JasperReport(JRReport report,
java.lang.String compilerClass,
java.io.Serializable compileData,
JRBaseObjectFactory factory,
java.lang.String compileNameSuffix) |
JasperReport(JRReport report,
java.lang.String compilerClass,
java.io.Serializable compileData,
JRExpressionCollector expressionCollector,
java.lang.String compileNameSuffix)
Constructs a report by specifying the template report and compile information.
|
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
getCompileData()
Returns data resulted from the expression evaluators compilation.
|
java.lang.String |
getCompileNameSuffix()
Returns the suffix of the class/unit names generated at report compilation.
|
java.lang.String |
getCompilerClass()
Returns the name of the compiler class used to compile this report.
|
copyTemplates, getAllBands, getBackground, getBottomMargin, getColumnCount, getColumnDirection, getColumnFooter, getColumnHeader, getColumnSpacing, getColumnWidth, getDatasets, getDefaultStyle, getDetailSection, getEventSupport, getFields, getFormatFactoryClass, getGroups, getImports, getLanguage, getLastPageFooter, getLeftMargin, getMainDataset, getName, getNoData, getOrientationValue, getPageFooter, getPageHeader, getPageHeight, getPageWidth, getParameters, getParentProperties, getPrintOrderValue, getPropertiesMap, getProperty, getPropertyNames, getQuery, getResourceBundle, getRightMargin, getScriptletClass, getScriptlets, getSectionType, getSortFields, getStyles, getSummary, getTemplates, getTitle, getTopMargin, getUUID, getVariables, getWhenNoDataTypeValue, getWhenResourceMissingTypeValue, hasProperties, isFloatColumnFooter, isIgnorePagination, isSummaryNewPage, isSummaryWithPageHeaderAndFooter, isTitleNewPage, removeProperty, setProperty, setSectionType, setWhenNoDataType, setWhenResourceMissingType
public JasperReport(JRReport report, java.lang.String compilerClass, java.io.Serializable compileData, JRExpressionCollector expressionCollector, java.lang.String compileNameSuffix)
report
- the report templatecompilerClass
- the name of the class used to compile the reportcompileData
- the report/main dataset compile dataexpressionCollector
- instance used to collect expressions from the report designcompileNameSuffix
- unique string used to distinguish between distinct compilations of reports having the same name
The collector is used to fetch the generated expression IDs.
public JasperReport(JRReport report, java.lang.String compilerClass, java.io.Serializable compileData, JRBaseObjectFactory factory, java.lang.String compileNameSuffix)
public java.lang.String getCompilerClass()
The compiler is used to instantiate expression evaluators.
public java.io.Serializable getCompileData()
This data is used to create expression evaluators for report filling.
public java.lang.String getCompileNameSuffix()
This is used to distinguish between disctinct compilations of reports having the same name.
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com