Class RowsLimitHandler

  • All Implemented Interfaces:
    org.hibernate.dialect.pagination.LimitHandler
    Direct Known Subclasses:
    TimesTenLimitHandler

    public class RowsLimitHandler
    extends org.hibernate.dialect.pagination.AbstractSimpleLimitHandler
    A LimitHandler that works in Interbase and Firebird, using the syntax ROWS n and ROWS m TO n. Note that this syntax does not allow specification of an offset without a limit.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static RowsLimitHandler INSTANCE  
      • Fields inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler

        NO_LIMIT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int convertToFirstRowValue​(int zeroBasedFirstResult)  
      protected Pattern getForUpdatePattern()  
      protected String limitClause​(boolean hasFirstRow)  
      protected String offsetOnlyClause()  
      boolean supportsOffset()  
      boolean useMaxForLimit()  
      • Methods inherited from class org.hibernate.dialect.pagination.AbstractSimpleLimitHandler

        insert, processSql, supportsLimit, supportsVariableLimit
      • Methods inherited from class org.hibernate.dialect.pagination.AbstractLimitHandler

        bindLimitParameters, bindLimitParametersAtEndOfQuery, bindLimitParametersAtStartOfQuery, bindLimitParametersFirst, bindLimitParametersInReverseOrder, forceLimitUsage, getFirstRow, getMaxOrLimit, hasFirstRow, hasMaxRows, insertAfterDistinct, insertAfterSelect, insertAtEnd, insertBeforeForUpdate, setMaxRows, supportsLimitOffset
      • Methods inherited from interface org.hibernate.dialect.pagination.LimitHandler

        processSql
    • Constructor Detail

      • RowsLimitHandler

        public RowsLimitHandler()
    • Method Detail

      • limitClause

        protected String limitClause​(boolean hasFirstRow)
        Specified by:
        limitClause in class org.hibernate.dialect.pagination.AbstractSimpleLimitHandler
      • offsetOnlyClause

        protected String offsetOnlyClause()
        Overrides:
        offsetOnlyClause in class org.hibernate.dialect.pagination.AbstractSimpleLimitHandler
      • useMaxForLimit

        public final boolean useMaxForLimit()
        Overrides:
        useMaxForLimit in class org.hibernate.dialect.pagination.AbstractLimitHandler
      • convertToFirstRowValue

        public int convertToFirstRowValue​(int zeroBasedFirstResult)
        Overrides:
        convertToFirstRowValue in class org.hibernate.dialect.pagination.AbstractLimitHandler
      • getForUpdatePattern

        protected Pattern getForUpdatePattern()
        Overrides:
        getForUpdatePattern in class org.hibernate.dialect.pagination.AbstractLimitHandler
      • supportsOffset

        public boolean supportsOffset()
        Specified by:
        supportsOffset in interface org.hibernate.dialect.pagination.LimitHandler
        Overrides:
        supportsOffset in class org.hibernate.dialect.pagination.AbstractSimpleLimitHandler