Class NoopDbmsLimitHandler

  • All Implemented Interfaces:
    com.blazebit.persistence.spi.DbmsLimitHandler

    public class NoopDbmsLimitHandler
    extends Object
    implements com.blazebit.persistence.spi.DbmsLimitHandler
    Since:
    1.2.0
    Author:
    Christian Beikov
    • Constructor Detail

      • NoopDbmsLimitHandler

        public NoopDbmsLimitHandler()
    • Method Detail

      • supportsLimit

        public boolean supportsLimit()
        Specified by:
        supportsLimit in interface com.blazebit.persistence.spi.DbmsLimitHandler
      • supportsLimitOffset

        public boolean supportsLimitOffset()
        Specified by:
        supportsLimitOffset in interface com.blazebit.persistence.spi.DbmsLimitHandler
      • limitIncludesOffset

        public boolean limitIncludesOffset()
        Specified by:
        limitIncludesOffset in interface com.blazebit.persistence.spi.DbmsLimitHandler
      • applySql

        public String applySql​(String sql,
                               boolean isSubquery,
                               Integer limit,
                               Integer offset)
        Specified by:
        applySql in interface com.blazebit.persistence.spi.DbmsLimitHandler
      • applySql

        public void applySql​(StringBuilder sqlSb,
                             boolean isSubquery,
                             String limit,
                             String offset)
        Specified by:
        applySql in interface com.blazebit.persistence.spi.DbmsLimitHandler
      • applySqlInlined

        public String applySqlInlined​(String sql,
                                      boolean isSubquery,
                                      Integer limit,
                                      Integer offset)
        Specified by:
        applySqlInlined in interface com.blazebit.persistence.spi.DbmsLimitHandler
      • bindLimitParametersAtStartOfQuery

        public int bindLimitParametersAtStartOfQuery​(Integer limit,
                                                     Integer offset,
                                                     PreparedStatement statement,
                                                     int index)
                                              throws SQLException
        Specified by:
        bindLimitParametersAtStartOfQuery in interface com.blazebit.persistence.spi.DbmsLimitHandler
        Throws:
        SQLException
      • bindLimitParametersAtEndOfQuery

        public int bindLimitParametersAtEndOfQuery​(Integer limit,
                                                   Integer offset,
                                                   PreparedStatement statement,
                                                   int index)
                                            throws SQLException
        Specified by:
        bindLimitParametersAtEndOfQuery in interface com.blazebit.persistence.spi.DbmsLimitHandler
        Throws:
        SQLException