Author: jacopoc
Date: Sat Aug 23 07:18:39 2014
New Revision: 1619977
URL:
http://svn.apache.org/r1619977Log:
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 {