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​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
      • initVirtualizationContext

        protected void initVirtualizationContext​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
      • setVirtualPageSize

        protected void setVirtualPageSize​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
      • setConnectionParameterValue

        protected void setConnectionParameterValue​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues,
                                                   java.sql.Connection conn)
      • setDatasourceParameterValue

        protected void setDatasourceParameterValue​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues,
                                                   JRDataSource ds)
      • setParameters

        protected void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
                              throws JRException
        Throws:
        JRException
      • setBookmarkHelper

        protected void setBookmarkHelper()
      • setIgnorePagination

        public void setIgnorePagination​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
      • getOwnIgnorePagination

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

        protected abstract void ignorePaginationSet​(java.util.Map<java.lang.String,​java.lang.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 java.util.Map<java.lang.String,​java.lang.Object> getParameterValuesMap()
        Returns the map of parameter values.
        Returns:
        the map of parameter values
      • getParametersMap

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

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

        protected java.util.Locale getLocale()
        Returns the report locale.
        Returns:
        the report locale
      • getTimeZone

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

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

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

        public java.lang.Object getVariableValue​(java.lang.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 java.lang.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​(java.util.Map<java.lang.String,​java.lang.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()