Class TransactSQLLockingSupport.SQLServerImpl
java.lang.Object
org.hibernate.dialect.lock.internal.TransactSQLLockingSupport.SQLServerImpl
- All Implemented Interfaces:
ConnectionLockTimeoutStrategy
- Enclosing class:
TransactSQLLockingSupport
public static class TransactSQLLockingSupport.SQLServerImpl
extends Object
implements ConnectionLockTimeoutStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
ConnectionLockTimeoutStrategy.Level
-
Field Summary
FieldsFields inherited from interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLockTimeout
(Connection connection, SessionFactoryImplementor factory) Read the lock timeout associated with the JDBC connection, if supported and there is one.What type, if any, of support this Dialect has for lock timeouts on the JDBC connection.void
setLockTimeout
(Timeout timeout, Connection connection, SessionFactoryImplementor factory) Set the lock timeout associated with the JDBC connection (if supported), in milliseconds.
-
Field Details
-
IMPL
-
-
Constructor Details
-
SQLServerImpl
public SQLServerImpl()
-
-
Method Details
-
getSupportedLevel
Description copied from interface:ConnectionLockTimeoutStrategy
What type, if any, of support this Dialect has for lock timeouts on the JDBC connection.- Specified by:
getSupportedLevel
in interfaceConnectionLockTimeoutStrategy
- See Also:
-
getLockTimeout
Description copied from interface:ConnectionLockTimeoutStrategy
Read the lock timeout associated with the JDBC connection, if supported and there is one.- Specified by:
getLockTimeout
in interfaceConnectionLockTimeoutStrategy
- See Also:
-
setLockTimeout
public void setLockTimeout(Timeout timeout, Connection connection, SessionFactoryImplementor factory) Description copied from interface:ConnectionLockTimeoutStrategy
Set the lock timeout associated with the JDBC connection (if supported), in milliseconds.- Specified by:
setLockTimeout
in interfaceConnectionLockTimeoutStrategy
- See Also:
-