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

public Class SQL2008StandardLimitHandler

extends AbstractLimitHandler
Class Inheritance
Imports
org.hibernate.engine.spi.RowSelection

LIMIT clause handler compatible with ISO and ANSI SQL:2008 standard.
Author
zhouyanming ([email protected])

Field Summary

Modifier and TypeField and Description
public static final SQL2008StandardLimitHandler

Constructor Summary

AccessConstructor and Description
private
SQL2008StandardLimitHandler()

Constructs a SQL2008StandardLimitHandler

Method Summary

Modifier and TypeMethod and Description
public String
processSql(String
the SQL query to process.
sql
,
RowSelection
the selection criteria for rows.
selection
)

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

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

Return processed SQL query.
public boolean
supportsLimit()

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

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

Does this handler support some form of limiting query results via a SQL clause?
Inherited from org.hibernate.dialect.pagination.AbstractLimitHandler:
bindLimitParametersbindLimitParametersAtEndOfQuerybindLimitParametersAtStartOfQuerybindLimitParametersFirstbindLimitParametersInReverseOrderconvertToFirstRowValueforceLimitUsagegetMaxOrLimitsetMaxRowssupportsLimitOffsetsupportsVariableLimituseMaxForLimit

Field Detail

INSTANCEback to summary
public static final SQL2008StandardLimitHandler INSTANCE

Constructor Detail

SQL2008StandardLimitHandlerback to summary
private SQL2008StandardLimitHandler()

Constructs a SQL2008StandardLimitHandler

Method Detail

processSqlback to summary
public String processSql(String sql, RowSelection selection)

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

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

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

Return processed SQL query.

Parameters
sql:String

the SQL query to process.

selection:RowSelection

the selection criteria for rows.

Returns:String

Query statement with LIMIT clause applied.

Annotations
@Override
supportsLimitback to summary
public 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 some form of limiting query results via a SQL clause?

Returns:boolean

True if this handler supports some form of LIMIT.

Annotations
@Override