Package org.compiere.apps.form
Class Merge
- java.lang.Object
-
- org.compiere.apps.form.Merge
-
-
Field Summary
Fields Modifier and Type Field Description static String
AD_ORG_ID
static String
AD_USER_ID
static String
C_BPARTNER_ID
static CLogger
log
LoggerString[]
m_columnName
String[]
m_deleteTables
StringBuffer
m_errorLog
Error Logstatic String
M_PRODUCT_ID
int
m_totalCount
Total Countint
m_WindowNo
Window Nostatic String[]
s_delete_BPartner
Tables to delete (not update) for C_BPartnerstatic String[]
s_delete_Org
Tables to delete (not update) for AD_Orgstatic String[]
s_delete_Product
Tables to delete (not update) for M_Productstatic String[]
s_delete_User
Tables to delete (not update) for AD_User
-
Constructor Summary
Constructors Constructor Description Merge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
merge(String ColumnName, int from_ID, int to_ID)
Merge.int
mergeTable(String TableName, String ColumnName, int from_ID, int to_ID)
Merge Tablevoid
postMerge(String ColumnName, int to_ID)
Post Mergevoid
updateDeleteTable(String columnName)
-
-
-
Field Detail
-
m_WindowNo
public int m_WindowNo
Window No
-
m_totalCount
public int m_totalCount
Total Count
-
m_errorLog
public StringBuffer m_errorLog
Error Log
-
log
public static final CLogger log
Logger
-
AD_ORG_ID
public static String AD_ORG_ID
-
C_BPARTNER_ID
public static String C_BPARTNER_ID
-
AD_USER_ID
public static String AD_USER_ID
-
M_PRODUCT_ID
public static String M_PRODUCT_ID
-
s_delete_Org
public static String[] s_delete_Org
Tables to delete (not update) for AD_Org
-
s_delete_User
public static String[] s_delete_User
Tables to delete (not update) for AD_User
-
s_delete_BPartner
public static String[] s_delete_BPartner
Tables to delete (not update) for C_BPartner
-
s_delete_Product
public static String[] s_delete_Product
Tables to delete (not update) for M_Product
-
m_columnName
public String[] m_columnName
-
m_deleteTables
public String[] m_deleteTables
-
-
Method Detail
-
updateDeleteTable
public void updateDeleteTable(String columnName)
-
merge
public boolean merge(String ColumnName, int from_ID, int to_ID)
Merge.- Parameters:
ColumnName
- columnfrom_ID
- fromto_ID
- to- Returns:
- true if merged
-
mergeTable
public int mergeTable(String TableName, String ColumnName, int from_ID, int to_ID)
Merge Table- Parameters:
TableName
- tableColumnName
- columnfrom_ID
- fromto_ID
- to- Returns:
- -1 for error or number of changes
-
postMerge
public void postMerge(String ColumnName, int to_ID)
Post Merge- Parameters:
ColumnName
- column nameto_ID
- ID
-
-