Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » connection » [javadoc | source]
org.hibernate.connection
public final class: ConnectionProviderFactory [javadoc | source]
java.lang.Object
   org.hibernate.connection.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.
Method from org.hibernate.connection.ConnectionProviderFactory Summary:
getConnectionProperties,   newConnectionProvider,   newConnectionProvider,   newConnectionProvider
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.connection.ConnectionProviderFactory Detail:
 public static Properties getConnectionProperties(Properties properties) 
    Transform JDBC connection properties. Passed in the form hibernate.connection.* to the format accepted by DriverManager by triming the leading "hibernate.connection".
 public static ConnectionProvider newConnectionProvider() throws HibernateException 
    Instantiate a ConnectionProvider using System properties.
 public static ConnectionProvider newConnectionProvider(Properties properties) throws HibernateException 
    Instantiate a ConnectionProvider using given properties. Method newConnectionProvider.
 public static ConnectionProvider newConnectionProvider(Properties properties,
    Map connectionProviderInjectionData) throws HibernateException 
    Create a connection provider based on the given information.