Package org.hibernate.testing.jdbc
Class ConnectionProviderDelegate
- java.lang.Object
-
- org.hibernate.testing.jdbc.ConnectionProviderDelegate
-
- All Implemented Interfaces:
java.io.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
- Direct Known Subclasses:
SQLServerSnapshotIsolationConnectionProvider
public class ConnectionProviderDelegate extends java.lang.Object implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.ServiceRegistryAwareService, org.hibernate.service.spi.Stoppable
ThisConnectionProvider
extends any other ConnectionProvider that would be used by default taken the current configuration properties.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionProviderDelegate()
ConnectionProviderDelegate(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection(java.sql.Connection conn)
void
configure(java.util.Map configurationValues)
java.sql.Connection
getConnection()
org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
getConnectionProvider()
void
injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
boolean
isUnwrappableAs(java.lang.Class unwrapType)
void
setConnectionProvider(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider)
void
stop()
boolean
supportsAggressiveRelease()
<T> T
unwrap(java.lang.Class<T> unwrapType)
-
-
-
Method Detail
-
getConnectionProvider
public org.hibernate.engine.jdbc.connections.spi.ConnectionProvider getConnectionProvider()
-
setConnectionProvider
public void setConnectionProvider(org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider)
-
injectServices
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
- Specified by:
injectServices
in interfaceorg.hibernate.service.spi.ServiceRegistryAwareService
-
configure
public void configure(java.util.Map configurationValues)
- Specified by:
configure
in interfaceorg.hibernate.service.spi.Configurable
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Specified by:
getConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
java.sql.SQLException
-
closeConnection
public void closeConnection(java.sql.Connection conn) throws java.sql.SQLException
- Specified by:
closeConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
java.sql.SQLException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveRelease
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
isUnwrappableAs
public boolean isUnwrappableAs(java.lang.Class unwrapType)
- Specified by:
isUnwrappableAs
in interfaceorg.hibernate.service.spi.Wrapped
-
unwrap
public <T> T unwrap(java.lang.Class<T> unwrapType)
- Specified by:
unwrap
in interfaceorg.hibernate.service.spi.Wrapped
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.hibernate.service.spi.Stoppable
-
-