|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.connection.ConnectionProviderFactory
public final class ConnectionProviderFactory
Instantiates a connection provider given either System properties or a java.util.Properties instance. The ConnectionProviderFactory first attempts to find a name of a ConnectionProvider subclass in the property hibernate.connection.provider_class. If missing, heuristics are used to choose either DriverManagerConnectionProvider, DatasourceConnectionProvider, C3P0ConnectionProvider or DBCPConnectionProvider.
ConnectionProvider
Method Summary | |
---|---|
static Properties |
getConnectionProperties(Properties properties)
Transform JDBC connection properties. |
static ConnectionProvider |
newConnectionProvider()
Instantiate a ConnectionProvider using System properties. |
static ConnectionProvider |
newConnectionProvider(Properties properties)
Instantiate a ConnectionProvider using given properties. |
static ConnectionProvider |
newConnectionProvider(Properties properties,
Map connectionProviderInjectionData)
Create a connection provider based on the given information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ConnectionProvider newConnectionProvider() throws HibernateException
HibernateException
public static ConnectionProvider newConnectionProvider(Properties properties) throws HibernateException
properties
- hibernate SessionFactory properties
HibernateException
public static ConnectionProvider newConnectionProvider(Properties properties, Map connectionProviderInjectionData) throws HibernateException
properties
- Properties being used to build the SessionFactory
.connectionProviderInjectionData
- Something to be injected in the connection provided
HibernateException
public static Properties getConnectionProperties(Properties properties)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |