Record Class FollowOnLockingRequest

java.lang.Object
java.lang.Record
org.hibernate.dialect.lock.spi.FollowOnLockingRequest
Record Components:
sql - the completed SQL considered for execution
statementShape - known structural characteristics of the SQL statement
pagination - effective pagination characteristics
lockKind - requested pessimistic lock kind
timeout - effective lock timeout
scope - requested pessimistic lock scope
rawSqlRewriteOutcome - outcome of any already-rendered SQL rewrite

@SPI public record FollowOnLockingRequest(String sql, FollowOnLockingRequest.StatementShape statementShape, FollowOnLockingRequest.Pagination pagination, PessimisticLockKind lockKind, Timeout timeout, PessimisticLockScope scope, LockingSqlRewriteResult.Outcome rawSqlRewriteOutcome) extends Record

The immutable facts used to decide whether a completed SQL statement requires follow-on locking.

Hibernate creates this request after SQL rendering and any raw-SQL locking attempt. A FollowOnLockingPolicy should make its decision only from these stable facts and must not retain the request.

Since:
8.0