Top Description Methods
org.hibernate.dialect.pagination

public Interface LimitHandler

Known Direct Implementers
org.hibernate.dialect.pagination.AbstractLimitHandler
Imports
java.sql.PreparedStatement, .SQLException, org.hibernate.query.spi.Limit, .QueryOptions

Contract defining dialect-specific limit and offset handling. Most implementations extend AbstractLimitHandler.
Author
Lukasz Antoniak

Method Summary

Modifier and TypeMethod and Description
public int
public int
public String
processSql(String sql, Limit limit)

public default String
processSql(String sql, Limit limit, QueryOptions queryOptions)

public void
public boolean

Returns:

True if this handler supports limit alone.
supportsLimit
()

Does this handler support limiting query results?

public boolean

Returns:

True if the handler supports an offset within the limit support.
supportsLimitOffset
()

Does this handler support combinations of limit and offset?

public boolean

Returns:

True if this handler supports offset alone.
supportsOffset
()

Does this handler support offsetting query results without also specifying a limit?

Method Detail

bindLimitParametersAtEndOfQueryback to summary
public int bindLimitParametersAtEndOfQuery(Limit limit, PreparedStatement statement, int index) throws SQLException
bindLimitParametersAtStartOfQueryback to summary
public int bindLimitParametersAtStartOfQuery(Limit limit, PreparedStatement statement, int index) throws SQLException
processSqlback to summary
public String processSql(String sql, Limit limit)
processSqlback to summary
public default String processSql(String sql, Limit limit, QueryOptions queryOptions)
setMaxRowsback to summary
public void setMaxRows(Limit limit, PreparedStatement statement) throws SQLException
supportsLimitback to summary
public boolean supportsLimit()

Does this handler support limiting query results?

Returns:boolean

True if this handler supports limit alone.

supportsLimitOffsetback to summary
public boolean supportsLimitOffset()

Does this handler support combinations of limit and offset?

Returns:boolean

True if the handler supports an offset within the limit support.

supportsOffsetback to summary
public boolean supportsOffset()

Does this handler support offsetting query results without also specifying a limit?

Returns:boolean

True if this handler supports offset alone.