Class DelegatingConnectionProvider
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.connection.DelegatingConnectionProvider
- 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 DelegatingConnectionProvider
extends Object
implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.ServiceRegistryAwareService
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingConnectionProvider
(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider delegate, ConnectionTracker connectionTracker) -
Method Summary
Modifier and TypeMethodDescriptionvoid
closeConnection
(Connection conn) void
void
injectServices
(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) boolean
isUnwrappableAs
(Class unwrapType) void
restart()
void
void
stop()
boolean
<T> T
-
Constructor Details
-
DelegatingConnectionProvider
public DelegatingConnectionProvider(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider delegate, ConnectionTracker connectionTracker)
-
-
Method Details
-
getConnection
- Specified by:
getConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
SQLException
-
closeConnection
- Specified by:
closeConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
SQLException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()- Specified by:
supportsAggressiveRelease
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
isUnwrappableAs
- Specified by:
isUnwrappableAs
in interfaceorg.hibernate.service.spi.Wrapped
-
unwrap
- Specified by:
unwrap
in interfaceorg.hibernate.service.spi.Wrapped
-
stop
public void stop()- Specified by:
stop
in interfaceorg.hibernate.service.spi.Stoppable
-
configure
- Specified by:
configure
in interfaceorg.hibernate.service.spi.Configurable
-
injectServices
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) - Specified by:
injectServices
in interfaceorg.hibernate.service.spi.ServiceRegistryAwareService
-
restart
public void restart() -
shutdown
-