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
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 Connection
getConnection()
Obtains 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, injectServices, isUnwrappableAs, setConnectionProvider, stop, supportsAggressiveRelease, unwrap
-
-
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
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
-
-