Class PostgreSQLLockingSupport
java.lang.Object
org.hibernate.dialect.lock.internal.PostgreSQLLockingSupport
- All Implemented Interfaces:
ConnectionLockTimeoutStrategy
,LockingSupport
,LockingSupport.Metadata
public class PostgreSQLLockingSupport
extends Object
implements LockingSupport, LockingSupport.Metadata, ConnectionLockTimeoutStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
ConnectionLockTimeoutStrategy.Level
Nested classes/interfaces inherited from interface org.hibernate.dialect.lock.spi.LockingSupport
LockingSupport.Metadata
-
Field Summary
FieldsFields inherited from interface org.hibernate.dialect.lock.spi.ConnectionLockTimeoutStrategy
NONE
-
Constructor Summary
ConstructorsConstructorDescriptionPostgreSQLLockingSupport
(boolean supportsNoWait, boolean supportsSkipLocked) -
Method Summary
Modifier and TypeMethodDescriptionAccess to the delegate which can be used for applying lock timeouts using the JDBC connection, generally via execution of a command/statement.getLockTimeout
(Connection connection, SessionFactoryImplementor factory) Read the lock timeout associated with the JDBC connection, if supported and there is one.getLockTimeoutType
(Timeout timeout) How (if) this Dialect supports the given timeout value.Access to details about the locking capabilities of a Dialect.The type of support for outer joins with pessimistic locking.What type, if any, of support this Dialect has for lock timeouts on the JDBC connection.The strategy for indicating which rows to lock as part of afor update of
style clause.void
setLockTimeout
(Timeout timeout, Connection connection, SessionFactoryImplementor factory) Set the lock timeout associated with the JDBC connection (if supported), in milliseconds.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.dialect.lock.spi.LockingSupport.Metadata
getPessimisticLockStyle, getReadRowLockStrategy, supportsForUpdate, supportsNoWait, supportsSkipLocked, supportsWait
-
Field Details
-
LOCKING_SUPPORT
-
-
Constructor Details
-
PostgreSQLLockingSupport
public PostgreSQLLockingSupport() -
PostgreSQLLockingSupport
public PostgreSQLLockingSupport(boolean supportsNoWait, boolean supportsSkipLocked)
-
-
Method Details
-
getMetadata
Description copied from interface:LockingSupport
Access to details about the locking capabilities of a Dialect.- Specified by:
getMetadata
in interfaceLockingSupport
-
getWriteRowLockStrategy
Description copied from interface:LockingSupport.Metadata
The strategy for indicating which rows to lock as part of afor update of
style clause.- Specified by:
getWriteRowLockStrategy
in interfaceLockingSupport.Metadata
-
getLockTimeoutType
Description copied from interface:LockingSupport.Metadata
How (if) this Dialect supports the given timeout value.- Specified by:
getLockTimeoutType
in interfaceLockingSupport.Metadata
- See Also:
-
getOuterJoinLockingType
Description copied from interface:LockingSupport.Metadata
The type of support for outer joins with pessimistic locking.- Specified by:
getOuterJoinLockingType
in interfaceLockingSupport.Metadata
-
getConnectionLockTimeoutStrategy
Description copied from interface:LockingSupport
Access to the delegate which can be used for applying lock timeouts using the JDBC connection, generally via execution of a command/statement.- Specified by:
getConnectionLockTimeoutStrategy
in interfaceLockingSupport
-
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:
-