Top Description Fields Constructors Methods
org.hibernate.dialect.pagination

public abstract Class AbstractNoOffsetLimitHandler

extends AbstractLimitHandler
Class Inheritance
Known Direct Subclasses
org.hibernate.dialect.pagination.FetchLimitHandler, org.hibernate.dialect.pagination.TopLimitHandler
Imports
org.hibernate.query.spi.Limit

Superclass for LimitHandlers that don't support offsets at all.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final boolean
Inherited from org.hibernate.dialect.pagination.AbstractLimitHandler:
NO_LIMIT

Constructor Summary

AccessConstructor and Description
public
AbstractNoOffsetLimitHandler(boolean variableLimit)

Method Summary

Modifier and TypeMethod and Description
public abstract boolean
bindLimitParametersFirst()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParametersFirst.

Does the offset/limit clause come at the start of the SELECT statement, or at the end of the query?
protected abstract String
insert(String limitClause, String sql)

protected abstract String
limitClause()

The SQL fragment to insert, with a ?

public String
public final boolean
public final boolean
public final boolean
supportsVariableLimit()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.supportsVariableLimit.

Does this handler support bind variables (JDBC prepared statement parameters) for its limit/offset?
Inherited from org.hibernate.dialect.pagination.AbstractLimitHandler:
bindLimitParametersbindLimitParametersAtEndOfQuerybindLimitParametersAtStartOfQuerybindLimitParametersInReverseOrderconvertToFirstRowValueforceLimitUsagegetFirstRowgetForUpdatePatterngetMaxOrLimithasFirstRowhasMaxRowsinsertAfterDistinctinsertAfterSelectinsertAtEndinsertBeforeForUpdatesetMaxRowssupportsOffsetuseMaxForLimit

Field Detail

variableLimitback to summary
private final boolean variableLimit

Constructor Detail

AbstractNoOffsetLimitHandlerback to summary
public AbstractNoOffsetLimitHandler(boolean variableLimit)

Method Detail

bindLimitParametersFirstback to summary
public abstract boolean bindLimitParametersFirst()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParametersFirst.

Doc from org.hibernate.dialect.pagination.AbstractLimitHandler.bindLimitParametersFirst.

Does the offset/limit clause come at the start of the SELECT statement, or at the end of the query?

Returns:boolean

true if limit parameters come before other parameters

Annotations
@Override
insertback to summary
protected abstract String insert(String limitClause, String sql)
limitClauseback to summary
protected abstract String limitClause()

The SQL fragment to insert, with a ? placeholder for the actual numerical limit.

processSqlback to summary
public String processSql(String sql, Limit limit)

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.processSql.

Implements org.hibernate.dialect.pagination.LimitHandler.processSql.

Annotations
@Override
supportsLimitback to summary
public final boolean supportsLimit()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.supportsLimit.

Implements org.hibernate.dialect.pagination.LimitHandler.supportsLimit.

Doc from org.hibernate.dialect.pagination.LimitHandler.supportsLimit.

Does this handler support limiting query results?

Returns:boolean

True if this handler supports limit alone.

Annotations
@Override
supportsLimitOffsetback to summary
public final boolean supportsLimitOffset()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.supportsLimitOffset.

Implements org.hibernate.dialect.pagination.LimitHandler.supportsLimitOffset.

Doc from org.hibernate.dialect.pagination.LimitHandler.supportsLimitOffset.

Does this handler support combinations of limit and offset?

Returns:boolean

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

Annotations
@Override
supportsVariableLimitback to summary
public final boolean supportsVariableLimit()

Overrides org.hibernate.dialect.pagination.AbstractLimitHandler.supportsVariableLimit.

Doc from org.hibernate.dialect.pagination.AbstractLimitHandler.supportsVariableLimit.

Does this handler support bind variables (JDBC prepared statement parameters) for its limit/offset?

Returns:boolean

true if bind variables can be used

Annotations
@Override