Package org.compiere.print
Class DataEngine
java.lang.Object
org.compiere.print.DataEngine
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 Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final String
Key Indicator in Report -
Constructor Summary
ConstructorDescriptionDataEngine
(Language language) ConstructorDataEngine
(Language language, String trxName) ConstructorDataEngine
(Language language, String trxName, int windowNo) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetPrintData
(Properties ctx, MPrintFormat format, MQuery query) Load DatagetPrintData
(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.int
static void
TestparseVariable
(String expression, PrintDataColumn pdc, PrintData pd) Parse expression, replaces @tag@ with pdc values and/or execute functionsvoid
setWindowNo
(int windowNo)
-
Field Details
-
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
Constructor- Parameters:
language
- Language of the data (for translation)
-
DataEngine
Constructor- Parameters:
language
-trxName
-
-
DataEngine
Constructor- Parameters:
language
- Language of the data (for translation)trxName
-windowNo
-
-
-
Method Details
-
getPrintData
Load Data- Parameters:
format
- print formatquery
- queryctx
- context- Returns:
- PrintData or null
-
getPrintData
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
Parse expression, replaces @tag@ with pdc values and/or execute functions- Parameters:
expression
-pdc
-pd
-- Returns:
- String
-
main
Test- Parameters:
args
- args
-
getWindowNo
public int getWindowNo() -
setWindowNo
public void setWindowNo(int windowNo)
-