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.LevelNested 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 ofstyle clause.voidsetLockTimeout(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, waitMethods 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:LockingSupportAccess to details about the locking capabilities of a Dialect.- Specified by:
getMetadatain interfaceLockingSupport
-
getWriteRowLockStrategy
Description copied from interface:LockingSupport.MetadataThe strategy for indicating which rows to lock as part of afor update ofstyle clause.- Specified by:
getWriteRowLockStrategyin interfaceLockingSupport.Metadata
-
getLockTimeoutType
Description copied from interface:LockingSupport.MetadataHow (if) this Dialect supports the given timeout value.- Specified by:
getLockTimeoutTypein interfaceLockingSupport.Metadata- See Also:
-
getOuterJoinLockingType
Description copied from interface:LockingSupport.MetadataThe type of support for outer joins with pessimistic locking.- Specified by:
getOuterJoinLockingTypein interfaceLockingSupport.Metadata
-
getConnectionLockTimeoutStrategy
Description copied from interface:LockingSupportAccess to the delegate which can be used for applying lock timeouts using the JDBC connection, generally via execution of a command/statement.- Specified by:
getConnectionLockTimeoutStrategyin interfaceLockingSupport
-
getSupportedLevel
Description copied from interface:ConnectionLockTimeoutStrategyWhat type, if any, of support this Dialect has for lock timeouts on the JDBC connection.- Specified by:
getSupportedLevelin interfaceConnectionLockTimeoutStrategy- See Also:
-
getLockTimeout
Description copied from interface:ConnectionLockTimeoutStrategyRead the lock timeout associated with the JDBC connection, if supported and there is one.- Specified by:
getLockTimeoutin interfaceConnectionLockTimeoutStrategy- See Also:
-
setLockTimeout
public void setLockTimeout(Timeout timeout, Connection connection, SessionFactoryImplementor factory) Description copied from interface:ConnectionLockTimeoutStrategySet the lock timeout associated with the JDBC connection (if supported), in milliseconds.- Specified by:
setLockTimeoutin interfaceConnectionLockTimeoutStrategy- See Also:
-