Class LimitOffsetLimitHandler

  • All Implemented Interfaces:
    LimitHandler

    public class LimitOffsetLimitHandler
    extends AbstractSimpleLimitHandler
    A LimitHandler for databases like PostgreSQL, H2, and HSQL that support the syntax LIMIT n OFFSET m. Note that this syntax does not allow specification of an offset without a limit.
    • Constructor Detail

      • LimitOffsetLimitHandler

        public LimitOffsetLimitHandler()
    • Method Detail

      • bindLimitParametersInReverseOrder

        public final boolean bindLimitParametersInReverseOrder()
        Description copied from class: AbstractLimitHandler
        Usually, the offset comes before the limit, but occasionally the offset is specified after the limit. Does this dialect require us to bind the parameters in reverse order?
        Overrides:
        bindLimitParametersInReverseOrder in class AbstractLimitHandler
        Returns:
        true if the correct order is limit then offset