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,ConnectionProvider,Service,Configurable,ServiceRegistryAwareService,Stoppable,Wrapped
public class SQLServerSnapshotIsolationConnectionProvider extends ConnectionProviderDelegate
ThisConnectionProviderextends 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.ConnectiongetConnection()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 java.sql.Connection getConnection() throws java.sql.SQLExceptionDescription copied from interface:ConnectionProviderObtains a connection for Hibernate use according to the underlying strategy of this provider.- Specified by:
getConnectionin interfaceConnectionProvider- Overrides:
getConnectionin classConnectionProviderDelegate- Returns:
- The obtained JDBC connection
- Throws:
java.sql.SQLException- Indicates a problem opening a connection
-
-