Package org.compiere.apps.form
Class Merge
java.lang.Object
org.compiere.apps.form.Merge
- Direct Known Subclasses:
WMerge
Form to Merge source/from record to target/to record
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static String
static String
protected static final CLogger
Loggerprotected String[]
protected String[]
protected StringBuffer
Error Logstatic String
protected int
Total Countprotected int
Window Noprotected static String[]
Tables to delete (not update) for C_BPartnerprotected static String[]
Tables to delete (not update) for AD_Orgprotected static String[]
Tables to delete (not update) for M_Productprotected static String[]
Tables to delete (not update) for AD_User -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Execute Merge.protected int
mergeTable
(String TableName, String ColumnName, int from_ID, int to_ID) Execute Merge for record in a Tablevoid
Post Merge Operationsprotected void
updateDeleteTable
(String columnName) Determine the list of tables to delete records by key columnName
-
Field Details
-
m_WindowNo
protected int m_WindowNoWindow No -
m_totalCount
protected int m_totalCountTotal Count -
m_errorLog
Error Log -
log
Logger -
AD_ORG_ID
-
C_BPARTNER_ID
-
AD_USER_ID
-
M_PRODUCT_ID
-
s_delete_Org
Tables to delete (not update) for AD_Org -
s_delete_User
Tables to delete (not update) for AD_User -
s_delete_BPartner
Tables to delete (not update) for C_BPartner -
s_delete_Product
Tables to delete (not update) for M_Product -
m_columnName
-
m_deleteTables
-
-
Constructor Details
-
Merge
public Merge()
-
-
Method Details
-
updateDeleteTable
Determine the list of tables to delete records by key columnName- Parameters:
columnName
-
-
merge
Execute Merge.- Parameters:
ColumnName
- ID column (M_Product_ID, AD_Org_ID, C_BPartner_ID or AD_User_ID)from_ID
- from idto_ID
- to id- Returns:
- true if merged
-
mergeTable
Execute Merge for record in a Table- Parameters:
TableName
- table nameColumnName
- key column namefrom_ID
- from idto_ID
- to id- Returns:
- -1 for error or number of records updated
-
postMerge
Post Merge Operations- Parameters:
ColumnName
- key column nameto_ID
- to id
-