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 the rows keyword; 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
  • Constructor Details

    • OffsetFetch

      public OffsetFetch(boolean renderOffsetRowsKeyword)
      Creates an instance of a OffsetFetch record class.
      Parameters:
      renderOffsetRowsKeyword - the value for the renderOffsetRowsKeyword record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • renderOffsetRowsKeyword

      public boolean renderOffsetRowsKeyword()
      Returns the value of the renderOffsetRowsKeyword record component.
      Returns:
      the value of the renderOffsetRowsKeyword record component