Package org.compiere.print
Class DataEngine
- java.lang.Object
-
- org.compiere.print.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 Summary
Constructors Constructor Description DataEngine(Language language)
ConstructorDataEngine(Language language, String trxName)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrintData
getPrintData(Properties ctx, MPrintFormat format, MQuery query)
Load DataPrintData
getPrintData(Properties ctx, MPrintFormat format, MQuery query, boolean summary)
Load Datastatic org.compiere.print.TableReference
getTableReference(int AD_Reference_Value_ID)
Get TableName and ColumnName for Reference Tables.static void
main(String[] args)
TestString
parseVariable(String expression, PrintDataColumn pdc, PrintData pd)
Parse expression, replaces @tag@ with pdc values and/or execute functions
-
-
-
Field Detail
-
KEY
public static final String KEY
Key Indicator in Report- See Also:
- Constant Field Values
-
-
Method Detail
-
getPrintData
public PrintData getPrintData(Properties ctx, MPrintFormat format, MQuery query)
Load Data- Parameters:
format
- print formatquery
- queryctx
- context- Returns:
- PrintData or null
-
getPrintData
public PrintData getPrintData(Properties ctx, MPrintFormat format, MQuery query, boolean summary)
Load Data- Parameters:
format
- print formatquery
- queryctx
- contextsummary
-- 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
-
-