Package org.hibernate.testing.jdbc
Class SQLServerSnapshotIsolationConnectionProvider
java.lang.Object
org.hibernate.testing.jdbc.ConnectionProviderDelegate
org.hibernate.testing.jdbc.SQLServerSnapshotIsolationConnectionProvider
- All Implemented Interfaces:
Serializable
,ConnectionProvider
,Service
,Configurable
,ServiceRegistryAwareService
,Stoppable
,Wrapped
This
ConnectionProvider
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtains a connection for Hibernate use according to the underlying strategy of this provider.Methods inherited from class org.hibernate.testing.jdbc.ConnectionProviderDelegate
closeConnection, configure, getConnectionProvider, getDatabaseConnectionInfo, injectServices, isUnwrappableAs, setConnectionProvider, stop, supportsAggressiveRelease, unwrap
-
Constructor Details
-
SQLServerSnapshotIsolationConnectionProvider
public SQLServerSnapshotIsolationConnectionProvider()
-
-
Method Details
-
getConnection
Description copied from interface:ConnectionProvider
Obtains a connection for Hibernate use according to the underlying strategy of this provider.- Specified by:
getConnection
in interfaceConnectionProvider
- Overrides:
getConnection
in classConnectionProviderDelegate
- Returns:
- The obtained JDBC connection
- Throws:
SQLException
- Indicates a problem opening a connection
-