Package org.hibernate.proxool.internal
Class ProxoolConnectionProvider
java.lang.Object
org.hibernate.proxool.internal.ProxoolConnectionProvider
- All Implemented Interfaces:
Serializable,org.hibernate.engine.jdbc.connections.spi.ConnectionProvider,org.hibernate.service.Service,org.hibernate.service.spi.Configurable,org.hibernate.service.spi.ServiceRegistryAwareService,org.hibernate.service.spi.Stoppable,org.hibernate.service.spi.Wrapped
public class ProxoolConnectionProvider
extends Object
implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.ServiceRegistryAwareService
A connection provider that uses a Proxool connection pool. Hibernate will use this by
default if the
hibernate.proxool.* properties are set.- See Also:
-
ConnectionProvider- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.voidcloseConnection(Connection connection) voidorg.hibernate.engine.jdbc.connections.spi.DatabaseConnectionInfogetDatabaseConnectionInfo(org.hibernate.dialect.Dialect dialect) voidinjectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) booleanisUnwrappableAs(Class<?> unwrapType) voidstop()boolean<T> T
-
Constructor Details
-
ProxoolConnectionProvider
public ProxoolConnectionProvider()
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider- Throws:
SQLException
-
isUnwrappableAs
- Specified by:
isUnwrappableAsin interfaceorg.hibernate.service.spi.Wrapped
-
unwrap
- Specified by:
unwrapin interfaceorg.hibernate.service.spi.Wrapped
-
closeConnection
- Specified by:
closeConnectionin interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider- Throws:
SQLException
-
injectServices
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) - Specified by:
injectServicesin interfaceorg.hibernate.service.spi.ServiceRegistryAwareService
-
configure
- Specified by:
configurein interfaceorg.hibernate.service.spi.Configurable
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()- Specified by:
supportsAggressiveReleasein interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
stop
public void stop()- Specified by:
stopin interfaceorg.hibernate.service.spi.Stoppable
-
getDatabaseConnectionInfo
public org.hibernate.engine.jdbc.connections.spi.DatabaseConnectionInfo getDatabaseConnectionInfo(org.hibernate.dialect.Dialect dialect) - Specified by:
getDatabaseConnectionInfoin interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
close
Deprecated.Usestop()insteadRelease all resources held by this provider.- Throws:
org.hibernate.HibernateException- Indicates a problem closing the underlying pool or releasing resources
-
stop()instead