diff --git a/lib/artifacts.xml b/lib/artifacts.xml
new file mode 100644
index 0000000000..e71089ceb5
--- /dev/null
+++ b/lib/artifacts.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/lib/content.xml b/lib/content.xml
new file mode 100644
index 0000000000..e78a905931
--- /dev/null
+++ b/lib/content.xml
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Bundle-SymbolicName: com.springsource.javax.mail
Bundle-Version: 1.4.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Bundle-SymbolicName: com.springsource.javax.activation
Bundle-Version: 1.1.1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Bundle-SymbolicName: org.apache.poi
Bundle-Version: 3.7.0
+
+
+
+
+
+
diff --git a/lib/generatep2.txt b/lib/generatep2.txt
new file mode 100644
index 0000000000..f830726d41
--- /dev/null
+++ b/lib/generatep2.txt
@@ -0,0 +1,2 @@
+eclipse -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file://lib -artifactRepository file://lib -source lib -publishArtifact
+
diff --git a/org.adempiere.base.process/src/org/compiere/process/CacheReset.java b/org.adempiere.base.process/src/org/compiere/process/CacheReset.java
index 71d5f1c1c4..9a6fb2cbcf 100644
--- a/org.adempiere.base.process/src/org/compiere/process/CacheReset.java
+++ b/org.adempiere.base.process/src/org/compiere/process/CacheReset.java
@@ -16,6 +16,7 @@
*****************************************************************************/
package org.compiere.process;
+import org.compiere.util.CacheMgt;
import org.compiere.util.Env;
/**
@@ -43,6 +44,7 @@ public class CacheReset extends SvrProcess implements ClientProcess
{
log.info("");
Env.reset(false); // not final
+ CacheMgt.get().reset();
return "Cache Reset";
} // doIt
diff --git a/org.adempiere.base.process/src/org/compiere/process/HashPasswords.java b/org.adempiere.base.process/src/org/compiere/process/HashPasswords.java
index 1ecdced41c..ff195f88dc 100644
--- a/org.adempiere.base.process/src/org/compiere/process/HashPasswords.java
+++ b/org.adempiere.base.process/src/org/compiere/process/HashPasswords.java
@@ -23,6 +23,7 @@ import org.compiere.model.MSysConfig;
import org.compiere.model.MTable;
import org.compiere.model.MUser;
import org.compiere.model.SystemIDs;
+import org.compiere.util.CacheMgt;
/**
* Hash existing passwords
@@ -54,7 +55,7 @@ public class HashPasswords extends SvrProcess
MSysConfig conf = new MSysConfig(getCtx(), SystemIDs.SYSCONFIG_USER_HASH_PASSWORD, null);
conf.setValue("Y");
conf.saveEx();
- MSysConfig.resetCache();
+ CacheMgt.get().reset(MSysConfig.Table_Name);
int count = 0;
try {
diff --git a/org.adempiere.base/META-INF/MANIFEST.MF b/org.adempiere.base/META-INF/MANIFEST.MF
index 3a71ae21d1..e21a2ebef5 100644
--- a/org.adempiere.base/META-INF/MANIFEST.MF
+++ b/org.adempiere.base/META-INF/MANIFEST.MF
@@ -184,6 +184,7 @@ Export-Package: bsh,
org.compiere.util,
org.compiere.wf,
org.eevolution.model,
+ org.idempiere.distributed,
org.jfree,
org.jfree.base,
org.jfree.base.config,
diff --git a/org.adempiere.base/src/org/adempiere/base/Core.java b/org.adempiere.base/src/org/adempiere/base/Core.java
index b666371e8a..306c17980a 100644
--- a/org.adempiere.base/src/org/adempiere/base/Core.java
+++ b/org.adempiere.base/src/org/adempiere/base/Core.java
@@ -81,7 +81,16 @@ public class Core {
* @return ProcessCall instance or null if serviceId not found
*/
public static ProcessCall getProcess(String serviceId) {
- return Service.locator().locate(ProcessCall.class, "org.adempiere.base.Process", serviceId, null).getService();
+ ProcessCall process = null;
+ List factories = Service.locator().list(IProcessFactory.class).getServices();
+ if (factories != null && !factories.isEmpty()) {
+ for(IProcessFactory factory : factories) {
+ process = factory.newProcessInstance(serviceId);
+ if (process != null)
+ return process;
+ }
+ }
+ return Service.locator().locate(ProcessCall.class, "org.adempiere.base.Process", serviceId, null).getService();
}
/**
diff --git a/org.adempiere.base/src/org/adempiere/base/DefaultModelFactory.java b/org.adempiere.base/src/org/adempiere/base/DefaultModelFactory.java
index c4c9a9fb05..cf53ee176c 100644
--- a/org.adempiere.base/src/org/adempiere/base/DefaultModelFactory.java
+++ b/org.adempiere.base/src/org/adempiere/base/DefaultModelFactory.java
@@ -37,7 +37,7 @@ import org.compiere.util.Util;
*/
public class DefaultModelFactory implements IModelFactory {
- private static CCache> s_classCache = new CCache>("PO_Class", 20);
+ private static CCache> s_classCache = new CCache>(null, "PO_Class", 20, false);
private final static CLogger s_log = CLogger.getCLogger(DefaultModelFactory.class);
/** Packages for Model Classes */
diff --git a/org.adempiere.base/src/org/adempiere/base/IProcessFactory.java b/org.adempiere.base/src/org/adempiere/base/IProcessFactory.java
new file mode 100644
index 0000000000..3f71656a96
--- /dev/null
+++ b/org.adempiere.base/src/org/adempiere/base/IProcessFactory.java
@@ -0,0 +1,32 @@
+/******************************************************************************
+ * Copyright (C) 2012 Heng Sin Low *
+ * Copyright (C) 2012 Trek Global *
+ * This program is free software; you can redistribute it and/or modify it *
+ * under the terms version 2 of the GNU General Public License as published *
+ * by the Free Software Foundation. This program is distributed in the hope *
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ * See the GNU General Public License for more details. *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program; if not, write to the Free Software Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ *****************************************************************************/
+package org.adempiere.base;
+
+import org.compiere.process.ProcessCall;
+
+/**
+ *
+ * @author hengsin
+ *
+ */
+public interface IProcessFactory {
+
+ /**
+ * Create new process instance
+ * @param className
+ * @return new process instance
+ */
+ public ProcessCall newProcessInstance(String className);
+
+}
diff --git a/org.adempiere.base/src/org/compiere/Adempiere.java b/org.adempiere.base/src/org/compiere/Adempiere.java
index b30722ce88..73ad45a85a 100644
--- a/org.adempiere.base/src/org/compiere/Adempiere.java
+++ b/org.adempiere.base/src/org/compiere/Adempiere.java
@@ -686,7 +686,7 @@ public final class Adempiere
m_listenerList.add(ServerStateChangeListener.class, l);
}
- private static void fireServerStateChanged(ServerStateChangeEvent e)
+ private static synchronized void fireServerStateChanged(ServerStateChangeEvent e)
{
ServerStateChangeListener[] listeners = m_listenerList.getListeners(ServerStateChangeListener.class);
for (int i = 0; i < listeners.length; i++)
diff --git a/org.adempiere.base/src/org/compiere/model/MAcctSchema.java b/org.adempiere.base/src/org/compiere/model/MAcctSchema.java
index 0540f42415..9af7b4bf1a 100644
--- a/org.adempiere.base/src/org/compiere/model/MAcctSchema.java
+++ b/org.adempiere.base/src/org/compiere/model/MAcctSchema.java
@@ -136,9 +136,9 @@ public class MAcctSchema extends X_C_AcctSchema
} // getClientAcctSchema
/** Cache of Client AcctSchema Arrays **/
- private static CCache s_schema = new CCache("AD_ClientInfo", 3); // 3 clients
+ private static CCache s_schema = new CCache(I_AD_ClientInfo.Table_Name, 3); // 3 clients
/** Cache of AcctSchemas **/
- private static CCache s_cache = new CCache("C_AcctSchema", 3); // 3 accounting schemas
+ private static CCache s_cache = new CCache(Table_Name, 3); // 3 accounting schemas
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MAcctSchemaElement.java b/org.adempiere.base/src/org/compiere/model/MAcctSchemaElement.java
index 9c55b8f8f0..b9fd67fbb5 100644
--- a/org.adempiere.base/src/org/compiere/model/MAcctSchemaElement.java
+++ b/org.adempiere.base/src/org/compiere/model/MAcctSchemaElement.java
@@ -172,7 +172,7 @@ public final class MAcctSchemaElement extends X_C_AcctSchema_Element
private static CLogger s_log = CLogger.getCLogger (MAcctSchemaElement.class);
/** Cache */
- private static CCache s_cache = new CCache("C_AcctSchema_Element", 10);
+ private static CCache s_cache = new CCache(Table_Name, 10);
/*************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java b/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java
index 3c261470d0..5fea63cfad 100644
--- a/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java
+++ b/org.adempiere.base/src/org/compiere/model/MAlertProcessor.java
@@ -82,7 +82,7 @@ public class MAlertProcessor extends X_AD_AlertProcessor
} // MAlertProcessor
/** Cache: AD_AlertProcessor -> Alerts array */
- private static CCache s_cacheAlerts = new CCache("AD_Alert_ForProcessor", 10);
+ private static CCache s_cacheAlerts = new CCache(I_AD_Alert.Table_Name, "AD_Alert_ForProcessor", 10, false);
/**
* Get Server ID
diff --git a/org.adempiere.base/src/org/compiere/model/MAssetAcct.java b/org.adempiere.base/src/org/compiere/model/MAssetAcct.java
index f5e23a3947..0b9b69848d 100644
--- a/org.adempiere.base/src/org/compiere/model/MAssetAcct.java
+++ b/org.adempiere.base/src/org/compiere/model/MAssetAcct.java
@@ -43,7 +43,7 @@ public class MAssetAcct extends X_A_Asset_Acct
/** Static Cache: A_Asset_Acct_ID -> MAssetAcct */
private static CCache s_cache = new CCache(Table_Name, 5);
/** Static Cache: Asset,PostingType,DateAcct -> MAssetAcct */
- private static CCache s_cacheAsset = new CCache(Table_Name+"_Asset", 5);
+ private static CCache s_cacheAsset = new CCache(Table_Name, Table_Name+"_Asset", 5, false);
/**
* Get Asset Accounting (from cache)
diff --git a/org.adempiere.base/src/org/compiere/model/MAssetClass.java b/org.adempiere.base/src/org/compiere/model/MAssetClass.java
index 5efa563129..cf113e0fc9 100644
--- a/org.adempiere.base/src/org/compiere/model/MAssetClass.java
+++ b/org.adempiere.base/src/org/compiere/model/MAssetClass.java
@@ -37,7 +37,7 @@ public class MAssetClass extends X_A_Asset_Class
} // MAssetClass
/** */
- private static CCache s_cache = new CCache("A_Asset_Class", 20);
+ private static CCache s_cache = new CCache(Table_Name, 20);
/** Get Asset Class from cache
* @param ctx context
diff --git a/org.adempiere.base/src/org/compiere/model/MAttributeSet.java b/org.adempiere.base/src/org/compiere/model/MAttributeSet.java
index 9deb0bef5e..be02f0ae70 100644
--- a/org.adempiere.base/src/org/compiere/model/MAttributeSet.java
+++ b/org.adempiere.base/src/org/compiere/model/MAttributeSet.java
@@ -64,7 +64,7 @@ public class MAttributeSet extends X_M_AttributeSet
/** Cache */
private static CCache s_cache
- = new CCache ("M_AttributeSet", 20);
+ = new CCache (Table_Name, 20);
/**
diff --git a/org.adempiere.base/src/org/compiere/model/MBOM.java b/org.adempiere.base/src/org/compiere/model/MBOM.java
index ca4ed82fda..79580638f5 100644
--- a/org.adempiere.base/src/org/compiere/model/MBOM.java
+++ b/org.adempiere.base/src/org/compiere/model/MBOM.java
@@ -81,7 +81,7 @@ public class MBOM extends X_M_BOM
/** Cache */
private static CCache s_cache
- = new CCache("M_BOM", 20);
+ = new CCache(Table_Name, 20);
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MBOM.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MBPGroup.java b/org.adempiere.base/src/org/compiere/model/MBPGroup.java
index c2f1e68556..918e58794c 100644
--- a/org.adempiere.base/src/org/compiere/model/MBPGroup.java
+++ b/org.adempiere.base/src/org/compiere/model/MBPGroup.java
@@ -158,10 +158,10 @@ public class MBPGroup extends X_C_BP_Group
/** Cache */
private static CCache s_cache
- = new CCache("BP_Group", 10);
+ = new CCache(Table_Name, 10);
/** Default Cache */
private static CCache s_cacheDefault
- = new CCache("BP_Group", 5);
+ = new CCache(Table_Name, MBPGroup.class.getName()+".Default", 5);
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MBPGroup.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MBank.java b/org.adempiere.base/src/org/compiere/model/MBank.java
index a01b066634..e3b8c9afc7 100644
--- a/org.adempiere.base/src/org/compiere/model/MBank.java
+++ b/org.adempiere.base/src/org/compiere/model/MBank.java
@@ -55,7 +55,7 @@ public class MBank extends X_C_Bank
/** Cache */
private static CCache s_cache =
- new CCache ("C_Bank", 3);
+ new CCache (Table_Name, 3);
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MBankAccount.java b/org.adempiere.base/src/org/compiere/model/MBankAccount.java
index 752b5c9c97..65fae5382d 100644
--- a/org.adempiere.base/src/org/compiere/model/MBankAccount.java
+++ b/org.adempiere.base/src/org/compiere/model/MBankAccount.java
@@ -56,7 +56,7 @@ public class MBankAccount extends X_C_BankAccount
/** Cache */
private static CCache s_cache
- = new CCache("C_BankAccount", 5);
+ = new CCache(Table_Name, 5);
/**
* Bank Account Model
diff --git a/org.adempiere.base/src/org/compiere/model/MCalendar.java b/org.adempiere.base/src/org/compiere/model/MCalendar.java
index c862e49d7c..f471f05e31 100644
--- a/org.adempiere.base/src/org/compiere/model/MCalendar.java
+++ b/org.adempiere.base/src/org/compiere/model/MCalendar.java
@@ -80,7 +80,7 @@ public class MCalendar extends X_C_Calendar
/** Cache */
private static CCache s_cache
- = new CCache("C_Calendar", 20);
+ = new CCache(Table_Name, 20);
/*************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MCashBook.java b/org.adempiere.base/src/org/compiere/model/MCashBook.java
index ee630012ae..51d62a6568 100644
--- a/org.adempiere.base/src/org/compiere/model/MCashBook.java
+++ b/org.adempiere.base/src/org/compiere/model/MCashBook.java
@@ -102,7 +102,7 @@ public class MCashBook extends X_C_CashBook
/** Cache */
private static CCache s_cache
- = new CCache("", 20);
+ = new CCache(Table_Name, 20);
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (MCashBook.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MCharge.java b/org.adempiere.base/src/org/compiere/model/MCharge.java
index 838a60839d..13ec4cb005 100644
--- a/org.adempiere.base/src/org/compiere/model/MCharge.java
+++ b/org.adempiere.base/src/org/compiere/model/MCharge.java
@@ -99,7 +99,7 @@ public class MCharge extends X_C_Charge
/** Cache */
private static CCache s_cache
- = new CCache ("C_Charge", 10);
+ = new CCache (Table_Name, 10);
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (MCharge.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MChatType.java b/org.adempiere.base/src/org/compiere/model/MChatType.java
index dd3e61df04..1dac912ea0 100644
--- a/org.adempiere.base/src/org/compiere/model/MChatType.java
+++ b/org.adempiere.base/src/org/compiere/model/MChatType.java
@@ -54,7 +54,7 @@ public class MChatType extends X_CM_ChatType
/** Cache */
private static CCache s_cache
- = new CCache ("CM_ChatType", 20);
+ = new CCache (Table_Name, 20);
/**
* Standard Constructor
diff --git a/org.adempiere.base/src/org/compiere/model/MCity.java b/org.adempiere.base/src/org/compiere/model/MCity.java
index 667cfc78bc..f9260e60f0 100644
--- a/org.adempiere.base/src/org/compiere/model/MCity.java
+++ b/org.adempiere.base/src/org/compiere/model/MCity.java
@@ -59,7 +59,7 @@ public final class MCity extends X_C_City
} // get
/** City Cache */
- private static CCache s_Cities = new CCache("C_City", 20);;
+ private static CCache s_Cities = new CCache(Table_Name, 20);;
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (MCity.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MClient.java b/org.adempiere.base/src/org/compiere/model/MClient.java
index 7ede0f8b9f..7c15657a75 100644
--- a/org.adempiere.base/src/org/compiere/model/MClient.java
+++ b/org.adempiere.base/src/org/compiere/model/MClient.java
@@ -107,7 +107,7 @@ public class MClient extends X_AD_Client
@SuppressWarnings("unused")
private static CLogger s_log = CLogger.getCLogger (MClient.class);
/** Cache */
- private static CCache s_cache = new CCache("AD_Client", 3);
+ private static CCache s_cache = new CCache(Table_Name, 3);
/**************************************************************************
@@ -632,8 +632,9 @@ public class MClient extends X_AD_Client
}
}
catch (Exception ex)
- {
- log.severe(getName() + " - " + ex.getLocalizedMessage());
+ {
+ ex.printStackTrace();
+ log.log(Level.SEVERE, getName() + " - " + ex.getLocalizedMessage(), ex);
return false;
}
} // sendEMail
diff --git a/org.adempiere.base/src/org/compiere/model/MClientInfo.java b/org.adempiere.base/src/org/compiere/model/MClientInfo.java
index 99f4cece79..6e2833b758 100644
--- a/org.adempiere.base/src/org/compiere/model/MClientInfo.java
+++ b/org.adempiere.base/src/org/compiere/model/MClientInfo.java
@@ -111,7 +111,7 @@ public class MClientInfo extends X_AD_ClientInfo
} // get
/** Cache */
- private static CCache s_cache = new CCache("AD_ClientInfo", 2);
+ private static CCache s_cache = new CCache(Table_Name, 2);
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MClientInfo.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MClientShare.java b/org.adempiere.base/src/org/compiere/model/MClientShare.java
index 9334670bfb..19d69d73a7 100644
--- a/org.adempiere.base/src/org/compiere/model/MClientShare.java
+++ b/org.adempiere.base/src/org/compiere/model/MClientShare.java
@@ -122,7 +122,7 @@ public class MClientShare extends X_AD_ClientShare
/** Shared Info */
private static CCache s_shares
- = new CCache("AD_ClientShare", 10, 120); // 2h
+ = new CCache(Table_Name, 10, 120); // 2h
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MClientShare.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MColorSchema.java b/org.adempiere.base/src/org/compiere/model/MColorSchema.java
index 12ce4b5301..e69810a679 100644
--- a/org.adempiere.base/src/org/compiere/model/MColorSchema.java
+++ b/org.adempiere.base/src/org/compiere/model/MColorSchema.java
@@ -100,7 +100,7 @@ public class MColorSchema extends X_PA_ColorSchema
/** Cache */
private static CCache s_cache
- = new CCache ("PA_ColorSchema", 20);
+ = new CCache (Table_Name, 20);
/**
* Standard Constructor
diff --git a/org.adempiere.base/src/org/compiere/model/MColumn.java b/org.adempiere.base/src/org/compiere/model/MColumn.java
index 19faf0736d..5f3e764fcf 100644
--- a/org.adempiere.base/src/org/compiere/model/MColumn.java
+++ b/org.adempiere.base/src/org/compiere/model/MColumn.java
@@ -77,7 +77,7 @@ public class MColumn extends X_AD_Column
} // getColumnName
/** Cache */
- private static CCache s_cache = new CCache("AD_Column", 20);
+ private static CCache s_cache = new CCache(Table_Name, 20);
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (MColumn.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MConversionType.java b/org.adempiere.base/src/org/compiere/model/MConversionType.java
index 82c25c8c51..93b9bc42f2 100644
--- a/org.adempiere.base/src/org/compiere/model/MConversionType.java
+++ b/org.adempiere.base/src/org/compiere/model/MConversionType.java
@@ -71,7 +71,7 @@ public class MConversionType extends X_C_ConversionType
} // getDefault
/** Cache Client-ID */
- private static CCache s_cache = new CCache("C_ConversionType", 4);
+ private static CCache s_cache = new CCache(Table_Name, 4);
/**************************************************************************
* Standard Constructor
diff --git a/org.adempiere.base/src/org/compiere/model/MCostElement.java b/org.adempiere.base/src/org/compiere/model/MCostElement.java
index 29b4158fb2..9b319fb855 100644
--- a/org.adempiere.base/src/org/compiere/model/MCostElement.java
+++ b/org.adempiere.base/src/org/compiere/model/MCostElement.java
@@ -210,7 +210,7 @@ public class MCostElement extends X_M_CostElement
}
/** Cache */
- private static CCache s_cache = new CCache("M_CostElement", 20);
+ private static CCache s_cache = new CCache(Table_Name, 20);
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MCostElement.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MCountry.java b/org.adempiere.base/src/org/compiere/model/MCountry.java
index 781ed5bdd4..f1a4674149 100644
--- a/org.adempiere.base/src/org/compiere/model/MCountry.java
+++ b/org.adempiere.base/src/org/compiere/model/MCountry.java
@@ -112,7 +112,7 @@ public final class MCountry extends X_C_Country
MLanguage lang = MLanguage.get(ctx, client.getAD_Language());
MCountry usa = null;
//
- s_countries = new CCache("C_Country", 250);
+ s_countries = new CCache(Table_Name, 250);
String sql = "SELECT * FROM C_Country WHERE IsActive='Y'";
try
{
diff --git a/org.adempiere.base/src/org/compiere/model/MCurrency.java b/org.adempiere.base/src/org/compiere/model/MCurrency.java
index c15e923241..12f9da1bb4 100644
--- a/org.adempiere.base/src/org/compiere/model/MCurrency.java
+++ b/org.adempiere.base/src/org/compiere/model/MCurrency.java
@@ -87,9 +87,9 @@ public class MCurrency extends X_C_Currency
/** Store System Currencies **/
- private static CCache s_currencies = new CCache("C_Currency", 50);
+ private static CCache s_currencies = new CCache(Table_Name, 50);
/** Cache System Currencies by using ISO code as key **/
- private static CCache s_currenciesISO = new CCache("C_CurrencyISO", 50);
+ private static CCache s_currenciesISO = new CCache(Table_Name, "C_CurrencyISO", 50);
/**
* Get Currency using ISO code
diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciation.java b/org.adempiere.base/src/org/compiere/model/MDepreciation.java
index 67a585a2fa..21f1524153 100644
--- a/org.adempiere.base/src/org/compiere/model/MDepreciation.java
+++ b/org.adempiere.base/src/org/compiere/model/MDepreciation.java
@@ -43,7 +43,7 @@ public class MDepreciation extends X_A_Depreciation
s_cache = new CCache(Table_Name, 5);
/** Cache for type */
private static CCache
- s_cache_forType = new CCache(Table_Name+"_DepreciationType", 5);
+ s_cache_forType = new CCache(Table_Name, Table_Name+"_DepreciationType", 5);
/** Static logger */
private static Logger s_log = CLogger.getCLogger(MDepreciation.class);
/** The accuracy of calculation on depreciation */
diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java b/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java
index e05c82ebfc..3a626db2f0 100644
--- a/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java
+++ b/org.adempiere.base/src/org/compiere/model/MDepreciationConvention.java
@@ -37,7 +37,7 @@ public class MDepreciationConvention extends X_A_Depreciation_Convention
} // MDepreciationConvention
/** Cache */
- private static CCache s_cache = new CCache("A_Depreciation_Convention", 5);
+ private static CCache s_cache = new CCache(Table_Name, 5);
//~ /** Static logger */
//~ private static Logger s_log = CLogger.getCLogger(MDepreciationConvention.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciationMethod.java b/org.adempiere.base/src/org/compiere/model/MDepreciationMethod.java
index c1fc145cf0..625c9d4fdd 100644
--- a/org.adempiere.base/src/org/compiere/model/MDepreciationMethod.java
+++ b/org.adempiere.base/src/org/compiere/model/MDepreciationMethod.java
@@ -40,7 +40,7 @@ public class MDepreciationMethod extends X_A_Depreciation_Method
s_cache = new CCache(Table_Name, 5);
/** Cache for type */
private static CCache
- s_cache_forType = new CCache(Table_Name+"_DepreciationType", 5);
+ s_cache_forType = new CCache(Table_Name, Table_Name+"_DepreciationType", 5);
/**
*
diff --git a/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java b/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java
index de63f5d164..c20ca9d586 100644
--- a/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java
+++ b/org.adempiere.base/src/org/compiere/model/MDepreciationWorkfile.java
@@ -336,7 +336,7 @@ public class MDepreciationWorkfile extends X_A_Depreciation_Workfile
}
/** Static cache: Asset/PostingType -> Workfile */
private static CCache
- s_cacheAsset = new CCache(Table_Name+"_Asset", 10);
+ s_cacheAsset = new CCache(Table_Name, Table_Name+"_Asset", 10);
/** Returns the date of the last action
*/
diff --git a/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java b/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java
index 2260fa7bcd..bb0916b2d2 100644
--- a/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java
+++ b/org.adempiere.base/src/org/compiere/model/MDiscountSchema.java
@@ -62,7 +62,7 @@ public class MDiscountSchema extends X_M_DiscountSchema
/** Cache */
private static CCache s_cache
- = new CCache("M_DiscountSchema", 20);
+ = new CCache(Table_Name, 20);
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MDistribution.java b/org.adempiere.base/src/org/compiere/model/MDistribution.java
index f479394dd2..7dfe5c0644 100644
--- a/org.adempiere.base/src/org/compiere/model/MDistribution.java
+++ b/org.adempiere.base/src/org/compiere/model/MDistribution.java
@@ -172,7 +172,7 @@ public class MDistribution extends X_GL_Distribution
private static CLogger s_log = CLogger.getCLogger (MDistribution.class);
/** Distributions by Account */
private static CCache s_accounts
- = new CCache("GL_Distribution", 100);
+ = new CCache(Table_Name, 100);
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MDocTypeCounter.java b/org.adempiere.base/src/org/compiere/model/MDocTypeCounter.java
index 623760cdc2..f22ac3ce18 100644
--- a/org.adempiere.base/src/org/compiere/model/MDocTypeCounter.java
+++ b/org.adempiere.base/src/org/compiere/model/MDocTypeCounter.java
@@ -200,9 +200,9 @@ public class MDocTypeCounter extends X_C_DocTypeCounter
/** Object Cache */
- private static CCache s_cache = new CCache("C_DocTypeCounter", 20);
+ private static CCache s_cache = new CCache(Table_Name, 20);
/** Counter Relationship Cache */
- private static CCache s_counter = new CCache("C_DocTypeCounter", 20);
+ private static CCache s_counter = new CCache(Table_Name, "C_DocTypeCounter_Relation", 20);
/** Static Logger */
private static CLogger s_log = CLogger.getCLogger (MDocTypeCounter.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MGLCategory.java b/org.adempiere.base/src/org/compiere/model/MGLCategory.java
index d0838b4bc2..66b5df5697 100644
--- a/org.adempiere.base/src/org/compiere/model/MGLCategory.java
+++ b/org.adempiere.base/src/org/compiere/model/MGLCategory.java
@@ -133,7 +133,7 @@ public class MGLCategory extends X_GL_Category
private static CLogger s_log = CLogger.getCLogger (MGLCategory.class);
/** Cache */
private static CCache s_cache
- = new CCache ("GL_Category", 5);
+ = new CCache (Table_Name, 5);
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MGroup.java b/org.adempiere.base/src/org/compiere/model/MGroup.java
index fe6c3a3b71..c2f602a7b1 100644
--- a/org.adempiere.base/src/org/compiere/model/MGroup.java
+++ b/org.adempiere.base/src/org/compiere/model/MGroup.java
@@ -53,7 +53,7 @@ public class MGroup extends X_R_Group
} // get
/** Cache */
- private static CCache s_cache = new CCache("R_Group", 20);
+ private static CCache s_cache = new CCache(Table_Name, 20);
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MHierarchy.java b/org.adempiere.base/src/org/compiere/model/MHierarchy.java
index d1267a9165..dd1120eb6f 100644
--- a/org.adempiere.base/src/org/compiere/model/MHierarchy.java
+++ b/org.adempiere.base/src/org/compiere/model/MHierarchy.java
@@ -54,7 +54,7 @@ public class MHierarchy extends X_PA_Hierarchy
/** Cache */
private static CCache s_cache
- = new CCache ("PA_Hierarchy_ID", 20);
+ = new CCache (Table_Name, 20);
/**
* Default Constructor
diff --git a/org.adempiere.base/src/org/compiere/model/MImage.java b/org.adempiere.base/src/org/compiere/model/MImage.java
index f88f14cc2b..ae72577fb7 100644
--- a/org.adempiere.base/src/org/compiere/model/MImage.java
+++ b/org.adempiere.base/src/org/compiere/model/MImage.java
@@ -71,7 +71,7 @@ public class MImage extends X_AD_Image
} // get
/** Cache */
- private static CCache s_cache = new CCache("AD_Image", 20);
+ private static CCache s_cache = new CCache(Table_Name, 20);
/**
* Constructor
diff --git a/org.adempiere.base/src/org/compiere/model/MInterestArea.java b/org.adempiere.base/src/org/compiere/model/MInterestArea.java
index 91752689ad..99a343c859 100644
--- a/org.adempiere.base/src/org/compiere/model/MInterestArea.java
+++ b/org.adempiere.base/src/org/compiere/model/MInterestArea.java
@@ -107,7 +107,7 @@ public class MInterestArea extends X_R_InterestArea
/** Cache */
private static CCache s_cache =
- new CCache("R_InterestArea", 5);
+ new CCache(Table_Name, 5);
/** Logger */
private static CLogger s_log = CLogger.getCLogger (MInterestArea.class);
diff --git a/org.adempiere.base/src/org/compiere/model/MInventory.java b/org.adempiere.base/src/org/compiere/model/MInventory.java
index fe9df801fc..19ef3c197d 100644
--- a/org.adempiere.base/src/org/compiere/model/MInventory.java
+++ b/org.adempiere.base/src/org/compiere/model/MInventory.java
@@ -70,7 +70,7 @@ public class MInventory extends X_M_Inventory implements DocAction
} // get
/** Cache */
- private static CCache s_cache = new CCache("M_Inventory", 5, 5);
+ private static CCache s_cache = new CCache(Table_Name, 5, 5);
/**
diff --git a/org.adempiere.base/src/org/compiere/model/MInvoice.java b/org.adempiere.base/src/org/compiere/model/MInvoice.java
index f3cc5bcbea..501b8234b2 100644
--- a/org.adempiere.base/src/org/compiere/model/MInvoice.java
+++ b/org.adempiere.base/src/org/compiere/model/MInvoice.java
@@ -250,7 +250,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
} // get
/** Cache */
- private static CCache s_cache = new CCache("C_Invoice", 20, 2); // 2 minutes
+ private static CCache s_cache = new CCache(Table_Name, 20, 2); // 2 minutes
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MInvoiceSchedule.java b/org.adempiere.base/src/org/compiere/model/MInvoiceSchedule.java
index f1a96109a8..3f7705500a 100644
--- a/org.adempiere.base/src/org/compiere/model/MInvoiceSchedule.java
+++ b/org.adempiere.base/src/org/compiere/model/MInvoiceSchedule.java
@@ -59,7 +59,7 @@ public class MInvoiceSchedule extends X_C_InvoiceSchedule
} // get
/** Cache */
- private static CCache s_cache = new CCache("C_InvoiceSchedule", 5);
+ private static CCache s_cache = new CCache(Table_Name, 5);
/**************************************************************************
diff --git a/org.adempiere.base/src/org/compiere/model/MLocation.java b/org.adempiere.base/src/org/compiere/model/MLocation.java
index 549d711e6e..a03457b4c4 100644
--- a/org.adempiere.base/src/org/compiere/model/MLocation.java
+++ b/org.adempiere.base/src/org/compiere/model/MLocation.java
@@ -120,7 +120,7 @@ public class MLocation extends X_C_Location implements Comparator