Record Class PaginationRenderingPlan.OffsetFetch
java.lang.Object
java.lang.Record
org.hibernate.dialect.sql.ast.spi.PaginationRenderingPlan.OffsetFetch
- Record Components:
renderOffsetRowsKeyword- whether an existing offset expression is followed by therowskeyword; this flag does not synthesize an offset
- All Implemented Interfaces:
PaginationRenderingPlan
- Enclosing interface:
PaginationRenderingPlan
public static record PaginationRenderingPlan.OffsetFetch(boolean renderOffsetRowsKeyword)
extends Record
implements PaginationRenderingPlan
ANSI offset/fetch syntax rendered at the end of the query part.
For offset 5 and fetch 10, the usual shape is:
select ... order by ... offset 5 rows fetch first 10 rows only
- Since:
- 8.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PaginationRenderingPlan
PaginationRenderingPlan.CombinedLimit, PaginationRenderingPlan.FetchPlusOffset, PaginationRenderingPlan.First, PaginationRenderingPlan.FirstSkip, PaginationRenderingPlan.LimitOffset, PaginationRenderingPlan.None, PaginationRenderingPlan.OffsetFetch, PaginationRenderingPlan.RowsTo, PaginationRenderingPlan.SkipFirst, PaginationRenderingPlan.Top, PaginationRenderingPlan.TopStartAt, PaginationRenderingPlan.Window -
Constructor Summary
ConstructorsConstructorDescriptionOffsetFetch(boolean renderOffsetRowsKeyword) Creates an instance of aOffsetFetchrecord 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.booleanReturns the value of therenderOffsetRowsKeywordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OffsetFetch
public OffsetFetch(boolean renderOffsetRowsKeyword) Creates an instance of aOffsetFetchrecord class.- Parameters:
renderOffsetRowsKeyword- the value for therenderOffsetRowsKeywordrecord 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. -
renderOffsetRowsKeyword
public boolean renderOffsetRowsKeyword()Returns the value of therenderOffsetRowsKeywordrecord component.- Returns:
- the value of the
renderOffsetRowsKeywordrecord component
-