Package org.compiere.apps.form
Class Merge
java.lang.Object
org.compiere.apps.form.Merge
- Direct Known Subclasses:
WMerge
-
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
Merge.protected int
mergeTable
(String TableName, String ColumnName, int from_ID, int to_ID) Merge Tablevoid
Post Mergeprotected void
updateDeleteTable
(String columnName) Determine the list of tables to delete records from 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 from columnName- Parameters:
columnName
-
-
merge
Merge.- Parameters:
ColumnName
- ID column (M_Product_ID, AD_Org_ID, C_BPartner_ID or AD_User_ID)from_ID
- fromto_ID
- to- Returns:
- true if merged
-
mergeTable
Merge Table- Parameters:
TableName
- tableColumnName
- columnfrom_ID
- fromto_ID
- to- Returns:
- -1 for error or number of changes
-
postMerge
Post Merge- Parameters:
ColumnName
- column nameto_ID
- ID
-