Class DataEngine

java.lang.Object
org.compiere.print.DataEngine

public class DataEngine extends Object
Data Engine.
Creates SQL and loads data into PrintData (including totals/etc).
Version:
$Id: DataEngine.java,v 1.3 2006/07/30 00:53:02 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1761891 ] Included print format with report view attached issue
  • BF [ 1807368 ] DataEngine does not close DB connection
  • BF [ 2549128 ] Report View Column not working at all
  • BF [ 2865545 ] Error if not all parts of multikey are lookups https://sourceforge.net/p/adempiere/bugs/2120/, Teo Sarca, teo.sarca@gmail.com
  • BF [ 2876268 ] DataEngine: error on text long fields https://sourceforge.net/p/adempiere/bugs/2169/, victor.perez@e-evolution.com
  • FR [ 2011569 ] Implementing new Summary flag in Report View https://sourceforge.net/p/adempiere/feature-requests/478/, Paul Bowden (phib)
  • BF 2908435 Virtual columns with lookup reference types can't be printed https://sourceforge.net/p/adempiere/bugs/2246/
    • Field Details

      • KEY

        public static final String KEY
        Key Indicator in Report
        See Also:
      • DEFAULT_REPORT_LOAD_TIMEOUT_IN_SECONDS

        public static final int DEFAULT_REPORT_LOAD_TIMEOUT_IN_SECONDS
        See Also:
      • DEFAULT_GLOBAL_MAX_REPORT_RECORDS

        public static final int DEFAULT_GLOBAL_MAX_REPORT_RECORDS
        See Also:
    • Constructor Details

      • DataEngine

        public DataEngine(Language language)
        Constructor
        Parameters:
        language - Language of the data (for translation)
      • DataEngine

        public DataEngine(Language language, String trxName)
        Constructor
        Parameters:
        language -
        trxName -
      • DataEngine

        public DataEngine(Language language, String trxName, int windowNo)
        Constructor
        Parameters:
        language - Language of the data (for translation)
        trxName -
        windowNo -
    • Method Details

      • getPrintData

        public PrintData getPrintData(Properties ctx, MPrintFormat format, MQuery query)
        Load Data
        Parameters:
        format - print format
        query - query
        ctx - context
        Returns:
        PrintData or null
      • getPrintData

        public PrintData getPrintData(Properties ctx, MPrintFormat format, MQuery query, boolean summary)
        Load Data
        Parameters:
        format - print format
        query - query
        ctx - context
        summary -
        Returns:
        PrintData or null
      • getTableReference

        public static org.compiere.print.TableReference getTableReference(int AD_Reference_Value_ID)
        Get TableName and ColumnName for Reference Tables.
        Parameters:
        AD_Reference_Value_ID - reference value
        Returns:
        0=TableName, 1=KeyColumn, 2=DisplayColumn
      • parseVariable

        public String parseVariable(String expression, PrintDataColumn pdc, PrintData pd)
        Parse expression, replaces @tag@ with column value (COL/) or pdc value (ACCUMULATE/ or LINE)
        Parameters:
        expression -
        pdc -
        pd -
        Returns:
        String
      • getWindowNo

        public int getWindowNo()
        Get window no
        Returns:
        window no
      • setWindowNo

        public void setWindowNo(int windowNo)
        Set window no
        Parameters:
        windowNo -