You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2014/08/23 09:18:39 UTC

svn commit: r1619977 - /ofbiz/branches/framework-api-cleanup/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java

Author: jacopoc
Date: Sat Aug 23 07:18:39 2014
New Revision: 1619977

URL: http://svn.apache.org/r1619977
Log:
Call the overloaded method instead of duplicating its content.

Modified:
    ofbiz/branches/framework-api-cleanup/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java

Modified: ofbiz/branches/framework-api-cleanup/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/framework-api-cleanup/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java?rev=1619977&r1=1619976&r2=1619977&view=diff
==============================================================================
--- ofbiz/branches/framework-api-cleanup/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java (original)
+++ ofbiz/branches/framework-api-cleanup/framework/entity/src/org/ofbiz/entity/jdbc/ConnectionFactory.java Sat Aug 23 07:18:39 2014
@@ -82,13 +82,7 @@ public class ConnectionFactory {
     }
 
     public static Connection getConnection(String helperName) throws SQLException, GenericEntityException {
-        // Debug.logVerbose("Getting a connection", module);
-
-        Connection con = TransactionFactoryLoader.getInstance().getConnection(new GenericHelperInfo(null, helperName));
-        if (con == null) {
-            Debug.logError("******* ERROR: No database connection found for helperName \"" + helperName + "\"", module);
-        }
-        return con;
+        return getConnection(new GenericHelperInfo(null, helperName));
     }
 
     public static Connection getConnection(GenericHelperInfo helperInfo) throws SQLException, GenericEntityException {