Package org.hibernate.testing.jdbc
Class SQLServerSnapshotIsolationConnectionProvider
- java.lang.Object
-
- org.hibernate.testing.jdbc.ConnectionProviderDelegate
-
- org.hibernate.testing.jdbc.SQLServerSnapshotIsolationConnectionProvider
-
- 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
public class SQLServerSnapshotIsolationConnectionProvider extends ConnectionProviderDelegate
ThisConnectionProvider
extends any other ConnectionProvider that would be used by default taken the current configuration properties, and it just sets the READ_COMMITTED_SNAPSHOT isolation level for SQL Server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SQLServerSnapshotIsolationConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.Connection
getConnection()
-
Methods inherited from class org.hibernate.testing.jdbc.ConnectionProviderDelegate
closeConnection, configure, getConnectionProvider, injectServices, isUnwrappableAs, setConnectionProvider, stop, supportsAggressiveRelease, unwrap
-
-
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection() throws java.sql.SQLException
- Specified by:
getConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Overrides:
getConnection
in classConnectionProviderDelegate
- Throws:
java.sql.SQLException
-
-