public abstract class BaseReportFiller extends Object implements ReportFiller
| Modifier and Type | Field and Description |
|---|---|
protected BookmarkHelper |
bookmarkHelper |
protected JRCalculator |
calculator |
protected Map<String,JRFillDataset> |
datasetMap
Map of datasets (
JRFillDataset objects} indexed by name. |
protected DelayedFillActions |
delayedActions |
protected JRFillObjectFactory |
factory |
protected JRFillContext |
fillContext |
protected int |
fillerId |
protected Thread |
fillingThread |
protected FillListener |
fillListener |
protected FormatFactory |
formatFactory |
protected boolean |
ignorePagination |
protected JasperPrint |
jasperPrint |
protected JasperReport |
jasperReport
The report.
|
protected JasperReportsContext |
jasperReportsContext |
protected JRFillDataset |
mainDataset
Main report dataset.
|
protected FillerParent |
parent |
protected List<String> |
printTransferPropertyPrefixes |
protected JRPropertiesUtil |
propertiesUtil |
protected JRAbstractScriptlet |
scriptlet |
protected JRVirtualizationContext |
virtualizationContext |
| Constructor and Description |
|---|
BaseReportFiller(JasperReportsContext jasperReportsContext,
JasperReport jasperReport,
FillerParent parent) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBoundElement(JRFillElement element,
JRPrintElement printElement,
JREvaluationTime evaluationTime,
FillPageKey pageKey) |
void |
addFillListener(FillListener fillListener)
Adds a fill lister to be notified by events that occur during the fill.
|
protected void |
addLastPageBookmarks() |
protected void |
addVariableCalculationReq(String variableName,
CalculationEnum calculation)
Adds a variable calculation request.
|
void |
cancelFill()
Cancells the fill process.
|
protected void |
checkInterrupted() |
protected void |
createBoundElementMaps(JREvaluationTime evaluationTime) |
Object |
evaluateExpression(JRExpression expression,
byte evaluation)
Evaluates an expression
|
JasperPrint |
fill(Map<String,Object> parameterValues,
Connection conn) |
JasperPrint |
fill(Map<String,Object> parameterValues,
JRDataSource ds) |
protected JRFillExpressionEvaluator |
getExpressionEvaluator() |
JRFillContext |
getFillContext() |
protected FormatFactory |
getFormatFactory()
Returns the report format factory.
|
JasperPrint |
getJasperPrint() |
JasperReport |
getJasperReport()
Returns the report.
|
JasperReportsContext |
getJasperReportsContext() |
protected Locale |
getLocale()
Returns the report locale.
|
JRFillDataset |
getMainDataset() |
protected Boolean |
getOwnIgnorePagination(Map<String,Object> parameterValues,
boolean onlySetAttribute) |
protected Map<String,JRFillParameter> |
getParametersMap()
Returns the report parameters indexed by name.
|
Object |
getParameterValue(String parameterName)
Returns the value of a parameter.
|
Map<String,Object> |
getParameterValuesMap()
Returns the map of parameter values.
|
JRPropertiesUtil |
getPropertiesUtil() |
protected TimeZone |
getTimeZone()
Returns the report time zone.
|
JRFillVariable |
getVariable(String variableName)
Returns a report variable.
|
Object |
getVariableValue(String variableName)
Returns the value of a variable.
|
protected abstract void |
ignorePaginationSet() |
protected void |
initDatasets() |
protected abstract JRFillObjectFactory |
initFillFactory() |
protected void |
initVirtualizationContext(Map<String,Object> parameterValues) |
protected boolean |
isDeliberatelyInterrupted() |
boolean |
isIgnorePagination() |
protected boolean |
isInterrupted() |
protected boolean |
isMasterReport() |
protected boolean |
isSubreport() |
protected abstract void |
jasperReportSet() |
protected void |
resolveBoundElements(JREvaluationTime evaluationTime,
byte evaluation) |
protected void |
resolveMasterBoundElements() |
protected void |
setConnectionParameterValue(Map<String,Object> parameterValues,
Connection conn) |
protected void |
setDatasourceParameterValue(Map<String,Object> parameterValues,
JRDataSource ds) |
protected void |
setFormatFactory(Map<String,Object> parameterValues) |
protected void |
setIgnorePagination(Map<String,Object> parameterValues) |
protected void |
setInterrupted(boolean isInterrupted) |
protected void |
setJasperReportsContext(JasperReportsContext jasperReportsContext) |
protected void |
setParameters(Map<String,Object> parameterValues) |
protected void |
setParametersToContext(Map<String,Object> parameterValues) |
protected void |
setVirtualPageSize(Map<String,Object> parameterValues) |
void |
updateBookmark(JRPrintElement element) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfill, isPageFinalprotected JasperReportsContext jasperReportsContext
protected JRPropertiesUtil propertiesUtil
protected JRFillContext fillContext
protected FillerParent parent
protected final int fillerId
protected JasperReport jasperReport
protected JRCalculator calculator
protected final JRFillObjectFactory factory
protected JRFillDataset mainDataset
protected Map<String,JRFillDataset> datasetMap
JRFillDataset objects} indexed by name.protected DelayedFillActions delayedActions
protected JRAbstractScriptlet scriptlet
protected FormatFactory formatFactory
protected boolean ignorePagination
protected BookmarkHelper bookmarkHelper
protected JRVirtualizationContext virtualizationContext
protected JasperPrint jasperPrint
protected Thread fillingThread
protected FillListener fillListener
public BaseReportFiller(JasperReportsContext jasperReportsContext, JasperReport jasperReport, FillerParent parent) throws JRException
JRExceptionprotected abstract void jasperReportSet()
protected abstract JRFillObjectFactory initFillFactory()
protected final void initDatasets()
throws JRException
JRExceptionprotected final void createBoundElementMaps(JREvaluationTime evaluationTime)
public void addFillListener(FillListener fillListener)
addFillListener in interface ReportFillerfillListener - the listener to addpublic JasperReportsContext getJasperReportsContext()
public JRPropertiesUtil getPropertiesUtil()
public JasperReport getJasperReport()
public JasperPrint getJasperPrint()
protected void setJasperReportsContext(JasperReportsContext jasperReportsContext)
protected final void setParametersToContext(Map<String,Object> parameterValues)
protected void initVirtualizationContext(Map<String,Object> parameterValues)
public JasperPrint fill(Map<String,Object> parameterValues, Connection conn) throws JRException
fill in interface ReportFillerJRExceptionprotected void setConnectionParameterValue(Map<String,Object> parameterValues, Connection conn)
public JasperPrint fill(Map<String,Object> parameterValues, JRDataSource ds) throws JRException
fill in interface ReportFillerJRExceptionprotected void setDatasourceParameterValue(Map<String,Object> parameterValues, JRDataSource ds)
protected void setParameters(Map<String,Object> parameterValues) throws JRException
JRExceptionprotected Boolean getOwnIgnorePagination(Map<String,Object> parameterValues, boolean onlySetAttribute)
protected abstract void ignorePaginationSet()
public boolean isIgnorePagination()
protected boolean isInterrupted()
protected boolean isDeliberatelyInterrupted()
protected void setInterrupted(boolean isInterrupted)
protected void checkInterrupted()
public JRFillContext getFillContext()
getFillContext in interface ReportFillerpublic JRFillDataset getMainDataset()
public Map<String,Object> getParameterValuesMap()
protected Map<String,JRFillParameter> getParametersMap()
public Object getParameterValue(String parameterName)
parameterName - the parameter nameprotected Locale getLocale()
protected TimeZone getTimeZone()
protected void addVariableCalculationReq(String variableName, CalculationEnum calculation)
variableName - the variable namecalculation - the calculation typepublic JRFillVariable getVariable(String variableName)
variableName - the variable namepublic Object getVariableValue(String variableName)
variableName - the variable nameJRRuntimeException - when the variable does not existprotected JRFillExpressionEvaluator getExpressionEvaluator()
protected boolean isSubreport()
protected boolean isMasterReport()
public Object evaluateExpression(JRExpression expression, byte evaluation) throws JRException
expression - the expressionevaluation - the evaluation typeJRExceptionprotected FormatFactory getFormatFactory()
protected void addLastPageBookmarks()
public void updateBookmark(JRPrintElement element)
public void cancelFill()
throws JRException
cancelFill in interface ReportFillerJRExceptionprotected void addBoundElement(JRFillElement element, JRPrintElement printElement, JREvaluationTime evaluationTime, FillPageKey pageKey)
protected void resolveBoundElements(JREvaluationTime evaluationTime, byte evaluation) throws JRException
JRExceptionprotected void resolveMasterBoundElements()
throws JRException
JRExceptionCopyright © 2017. All rights reserved.