Class DataEngine


  • public class DataEngine
    extends Object
    Data Engine. Creates SQL and laods 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/
    • Constructor Detail

      • DataEngine

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

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

      • 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 pdc values and/or execute functions
        Parameters:
        expression -
        pdc -
        pd -
        Returns:
        String
      • main

        public static void main​(String[] args)
        Test
        Parameters:
        args - args