org.ofbiz.entity.jdbc
Class ConnectionFactory
java.lang.Object
org.ofbiz.entity.jdbc.ConnectionFactory
public class ConnectionFactory
- extends Object
ConnectionFactory - central source for JDBC connections
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final String module
ConnectionFactory
public ConnectionFactory()
getConnection
public static Connection getConnection(String driverName,
String connectionUrl,
Properties props,
String userName,
String password)
throws SQLException
- Throws:
SQLException
getConnection
public static Connection getConnection(String connectionUrl,
String userName,
String password)
throws SQLException
- Throws:
SQLException
getConnection
public static Connection getConnection(String connectionUrl,
Properties props)
throws SQLException
- Throws:
SQLException
getConnection
public static Connection getConnection(String helperName)
throws SQLException,
GenericEntityException
- Throws:
SQLException
GenericEntityException
tryGenericConnectionSources
@Deprecated
public static Connection tryGenericConnectionSources(String helperName,
Element inlineJdbcElement)
throws SQLException,
GenericEntityException
- Deprecated.
- Throws:
SQLException
GenericEntityException
getManagedConnectionFactory
public static ConnectionFactoryInterface getManagedConnectionFactory()
getManagedConnection
public static Connection getManagedConnection(String helperName,
Element inlineJdbcElement)
throws SQLException,
GenericEntityException
- Throws:
SQLException
GenericEntityException
closeAllManagedConnections
public static void closeAllManagedConnections()
loadDriver
public static void loadDriver(String driverName)
throws SQLException
- Throws:
SQLException
unloadDriver
public static void unloadDriver(String driverName)
throws SQLException
- Throws:
SQLException
Copyright © 2007 Open Source Strategies Inc. All Rights Reserved.