Record Class FollowOnLockingRequest.Pagination
java.lang.Object
java.lang.Record
org.hibernate.dialect.lock.spi.FollowOnLockingRequest.Pagination
- Enclosing class:
FollowOnLockingRequest
public static record FollowOnLockingRequest.Pagination(boolean limited, boolean offset)
extends Record
Effective pagination characteristics of the completed statement.
- Since:
- 8.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FollowOnLockingRequest.PaginationNo requested pagination. -
Constructor Summary
ConstructorsConstructorDescriptionPagination(boolean limited, boolean offset) Creates an instance of aPaginationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlimited()Returns the value of thelimitedrecord component.booleanoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
No requested pagination.
-
-
Constructor Details
-
Pagination
public Pagination(boolean limited, boolean offset) Creates an instance of aPaginationrecord class.- Parameters:
limited- the value for thelimitedrecord componentoffset- the value for theoffsetrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
limited
public boolean limited()Returns the value of thelimitedrecord component.- Returns:
- the value of the
limitedrecord component
-
offset
public boolean offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-