Class Hibernate56LimitHandler

java.lang.Object
com.blazebit.persistence.integration.hibernate.Hibernate56LimitHandler
All Implemented Interfaces:
org.hibernate.dialect.pagination.LimitHandler

public class Hibernate56LimitHandler extends Object implements org.hibernate.dialect.pagination.LimitHandler
Since:
1.2.0
Author:
Christian Beikov
  • Constructor Details

    • Hibernate56LimitHandler

      public Hibernate56LimitHandler(org.hibernate.dialect.Dialect dialect, DbmsDialect dbmsDialect)
  • Method Details

    • supportsLimit

      public boolean supportsLimit()
      Specified by:
      supportsLimit in interface org.hibernate.dialect.pagination.LimitHandler
    • supportsLimitOffset

      public boolean supportsLimitOffset()
      Specified by:
      supportsLimitOffset in interface org.hibernate.dialect.pagination.LimitHandler
    • processSql

      public String processSql(String sql, org.hibernate.engine.spi.RowSelection selection)
      Specified by:
      processSql in interface org.hibernate.dialect.pagination.LimitHandler
    • bindLimitParametersAtStartOfQuery

      public int bindLimitParametersAtStartOfQuery(org.hibernate.engine.spi.RowSelection selection, PreparedStatement statement, int index) throws SQLException
      Specified by:
      bindLimitParametersAtStartOfQuery in interface org.hibernate.dialect.pagination.LimitHandler
      Throws:
      SQLException
    • bindLimitParametersAtEndOfQuery

      public int bindLimitParametersAtEndOfQuery(org.hibernate.engine.spi.RowSelection selection, PreparedStatement statement, int index) throws SQLException
      Specified by:
      bindLimitParametersAtEndOfQuery in interface org.hibernate.dialect.pagination.LimitHandler
      Throws:
      SQLException
    • setMaxRows

      public void setMaxRows(org.hibernate.engine.spi.RowSelection selection, PreparedStatement statement) throws SQLException
      Specified by:
      setMaxRows in interface org.hibernate.dialect.pagination.LimitHandler
      Throws:
      SQLException