Interface LockingSupport


@Incubating(since="7.1", group="dialect-locking") @SPI({USE,IMPLEMENT,SUPPLY}) public interface LockingSupport

Cohesive Dialect profile for pessimistic-locking capabilities and operations.

A provider supplies one profile from Dialect.getLockingSupport() or a supported family-specific supply point such as AbstractSybaseDialect.getLockingSupport(). Its metadata and strategies must describe the same behavior: for example, a TABLE_HINT style must provide a table-hint renderer, and an already-rendered SQL rewriter must return UNSUPPORTED when the available structure cannot place those hints safely.

Hibernate may retain and reuse the profile and its returned components for the lifetime of the Dialect. Implementations should therefore be immutable or thread-safe and must not retain request-specific state. Per-translation target collection belongs to LockingClauseStrategy, not this profile.

Since:
8.0
See Also: