Class BaseReportFiller

    • Method Detail

      • jasperReportSet

        protected abstract void jasperReportSet()
      • createBoundElementMaps

        protected final void createBoundElementMaps​(JREvaluationTime evaluationTime)
      • addFillListener

        public void addFillListener​(FillListener fillListener)
        Adds a fill lister to be notified by events that occur during the fill.
        Specified by:
        addFillListener in interface ReportFiller
        Parameters:
        fillListener - the listener to add
      • getJasperReport

        public JasperReport getJasperReport()
        Returns the report.
        Returns:
        the report
      • setJasperReportsContext

        protected void setJasperReportsContext​(JasperReportsContext jasperReportsContext)
      • setParametersToContext

        protected final void setParametersToContext​(Map<String,​Object> parameterValues)
      • initVirtualizationContext

        protected void initVirtualizationContext​(Map<String,​Object> parameterValues)
      • setVirtualPageSize

        protected void setVirtualPageSize​(Map<String,​Object> parameterValues)
      • setConnectionParameterValue

        protected void setConnectionParameterValue​(Map<String,​Object> parameterValues,
                                                   Connection conn)
      • setDatasourceParameterValue

        protected void setDatasourceParameterValue​(Map<String,​Object> parameterValues,
                                                   JRDataSource ds)
      • setBookmarkHelper

        protected void setBookmarkHelper()
      • setIgnorePagination

        public void setIgnorePagination​(Map<String,​Object> parameterValues)
      • getOwnIgnorePagination

        protected Boolean getOwnIgnorePagination​(Map<String,​Object> parameterValues,
                                                 boolean onlySetAttribute)
      • ignorePaginationSet

        protected abstract void ignorePaginationSet​(Map<String,​Object> parameterValues)
      • isIgnorePagination

        public boolean isIgnorePagination()
      • isInterrupted

        protected boolean isInterrupted()
      • isDeliberatelyInterrupted

        protected boolean isDeliberatelyInterrupted()
      • setInterrupted

        protected void setInterrupted​(boolean isInterrupted)
      • checkInterrupted

        protected void checkInterrupted()
      • getParameterValuesMap

        public Map<String,​Object> getParameterValuesMap()
        Returns the map of parameter values.
        Returns:
        the map of parameter values
      • getParametersMap

        protected Map<String,​JRFillParameter> getParametersMap()
        Returns the report parameters indexed by name.
        Returns:
        the report parameters map
      • getParameterValue

        public Object getParameterValue​(String parameterName)
        Returns the value of a parameter.
        Parameters:
        parameterName - the parameter name
        Returns:
        the parameter value
      • getLocale

        public Locale getLocale()
        Returns the report locale.
        Returns:
        the report locale
      • getTimeZone

        protected TimeZone getTimeZone()
        Returns the report time zone.
        Returns:
        the report time zone
      • addVariableCalculationReq

        protected void addVariableCalculationReq​(String variableName,
                                                 CalculationEnum calculation)
        Adds a variable calculation request.
        Parameters:
        variableName - the variable name
        calculation - the calculation type
      • getVariable

        public JRFillVariable getVariable​(String variableName)
        Returns a report variable.
        Parameters:
        variableName - the variable name
        Returns:
        the variable
      • getVariableValue

        public Object getVariableValue​(String variableName)
        Returns the value of a variable.
        Parameters:
        variableName - the variable name
        Returns:
        the variable value
        Throws:
        JRRuntimeException - when the variable does not exist
      • isSubreport

        protected boolean isSubreport()
      • isMasterReport

        public boolean isMasterReport()
      • evaluateExpression

        public Object evaluateExpression​(JRExpression expression,
                                         byte evaluation)
                                  throws JRException
        Evaluates an expression
        Parameters:
        expression - the expression
        evaluation - the evaluation type
        Returns:
        the evaluation result
        Throws:
        JRException
      • setFormatFactory

        protected final void setFormatFactory​(Map<String,​Object> parameterValues)
      • getFormatFactory

        protected FormatFactory getFormatFactory()
        Returns the report format factory.
        Returns:
        the report format factory
      • addLastPageBookmarks

        protected void addLastPageBookmarks()
      • updateBookmark

        public void updateBookmark​(JRPrintElement element)
      • detectPart

        protected void detectPart()
      • clearFillingThread

        protected void clearFillingThread()
      • resolveMasterBoundElements

        protected void resolveMasterBoundElements()
                                           throws JRException
        Throws:
        JRException
      • recordUsedPageWidth

        public void recordUsedPageWidth​(int width)
      • getUsedPageWidth

        public int getUsedPageWidth()