Package su.onno.query
Record Class Keyset.Plan
java.lang.Object
java.lang.Record
su.onno.query.Keyset.Plan
- Record Components:
orderBy- theORDER BYbody (no leading keyword), always a total orderpredicate- the seek clause to AND onto the WHERE (leading" AND (..)"), or""for the first pagebindsValue- whetherKeyset.VALUE_BINDappears inpredicateand must be bound;Keyset.ID_BINDis bound whenever a cursor is present
- Enclosing class:
Keyset
public static record Keyset.Plan(String orderBy, String predicate, boolean bindsValue)
extends Record
The rendered
ORDER BY body and seek predicate for one page.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebindsValuerecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.orderBy()Returns the value of theorderByrecord component.Returns the value of thepredicaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Plan
Creates an instance of aPlanrecord class.- Parameters:
orderBy- the value for theorderByrecord componentpredicate- the value for thepredicaterecord componentbindsValue- the value for thebindsValuerecord component
-
-
Method Details
-
hasCursor
public boolean hasCursor() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
orderBy
Returns the value of theorderByrecord component.- Returns:
- the value of the
orderByrecord component
-
predicate
Returns the value of thepredicaterecord component.- Returns:
- the value of the
predicaterecord component
-
bindsValue
public boolean bindsValue()Returns the value of thebindsValuerecord component.- Returns:
- the value of the
bindsValuerecord component
-