svn commit: r585790 - in /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection: DBCPConnectionFactory.java MinervaConnectionFactory.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r585790 - in /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection: DBCPConnectionFactory.java MinervaConnectionFactory.java

doogie-3
Author: doogie
Date: Wed Oct 17 19:22:03 2007
New Revision: 585790

URL: http://svn.apache.org/viewvc?rev=585790&view=rev
Log:
Switch connection classes to FastMap.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/DBCPConnectionFactory.java
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/MinervaConnectionFactory.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/DBCPConnectionFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/DBCPConnectionFactory.java?rev=585790&r1=585789&r2=585790&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/DBCPConnectionFactory.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/DBCPConnectionFactory.java Wed Oct 17 19:22:03 2007
@@ -16,17 +16,18 @@
 import java.sql.Connection;
 import java.sql.Driver;
 import java.sql.SQLException;
-import java.util.HashMap;
 import java.util.Map;
 import java.util.Properties;
 
+import javolution.util.FastMap;
+
 /**
  * DBCPConnectionFactory
  */
 public class DBCPConnectionFactory implements ConnectionFactoryInterface {
 
     public static final String module = DBCPConnectionFactory.class.getName();
-    protected static Map dsCache = new HashMap();
+    protected static Map dsCache = FastMap.newInstance();
 
     public Connection getConnection(String helperName, Element jotmJdbcElement) throws SQLException, GenericEntityException {
         ManagedDataSource mds = (ManagedDataSource) dsCache.get(helperName);

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/MinervaConnectionFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/MinervaConnectionFactory.java?rev=585790&r1=585789&r2=585790&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/MinervaConnectionFactory.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/connection/MinervaConnectionFactory.java Wed Oct 17 19:22:03 2007
@@ -20,11 +20,12 @@
 
 import java.sql.Connection;
 import java.sql.SQLException;
-import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.Set;
 
+import javolution.util.FastMap;
+
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.entity.GenericEntityException;
 import org.ofbiz.entity.transaction.TransactionFactory;
@@ -38,7 +39,7 @@
 public class MinervaConnectionFactory implements ConnectionFactoryInterface {
         
     public static final String module = MinervaConnectionFactory.class.getName();
-    protected static Map dsCache = new HashMap();
+    protected static Map dsCache = FastMap.newInstance();
 
     public Connection getConnection(String helperName, Element jotmJdbcElement) throws SQLException, GenericEntityException {
         XAPoolDataSource pds = (XAPoolDataSource) dsCache.get(helperName);