org.ofbiz.entity.jdbc
Class ConnectionFactory

java.lang.Object
  extended by org.ofbiz.entity.jdbc.ConnectionFactory

public class ConnectionFactory
extends Object

ConnectionFactory - central source for JDBC connections


Field Summary
static String module
           
 
Constructor Summary
ConnectionFactory()
           
 
Method Summary
static void closeAllManagedConnections()
           
static Connection getConnection(String helperName)
           
static Connection getConnection(String connectionUrl, Properties props)
           
static Connection getConnection(String driverName, String connectionUrl, Properties props, String userName, String password)
           
static Connection getConnection(String connectionUrl, String userName, String password)
           
static Connection getManagedConnection(String helperName, Element inlineJdbcElement)
           
static ConnectionFactoryInterface getManagedConnectionFactory()
           
static void loadDriver(String driverName)
           
static Connection tryGenericConnectionSources(String helperName, Element inlineJdbcElement)
          Deprecated. 
static void unloadDriver(String driverName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final String module
Constructor Detail

ConnectionFactory

public ConnectionFactory()
Method Detail

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.