Package org.hibernate.dialect.pagination
Support for
Dialect
-specific pagination strategies.- See Also:
LimitHandler
-
Interface Summary Interface Description LimitHandler Contract defining dialect-specific limit and offset handling. -
Class Summary Class Description AbstractLimitHandler Default implementation ofLimitHandler
interface.AbstractNoOffsetLimitHandler Superclass forLimitHandler
s that don't support offsets at all.AbstractSimpleLimitHandler Superclass for simpleLimitHandler
s that don't support specifying an offset without a limit.DB2LimitHandler ALimitHandler
for DB2 11.1 which supports the ANSI SQL standard syntaxFETCH FIRST m ROWS ONLY
andOFFSET n ROWS FETCH NEXT m ROWS ONLY
, with the only wrinkle being that this clause comes after theFOR UPDATE
and other similar clauses.DerbyLimitHandler ALimitHandler
for Apache Derby, which fully supports the ANSI SQL standard syntaxFETCH FIRST m ROWS ONLY
andOFFSET n ROWS FETCH NEXT m ROWS ONLY
.FetchLimitHandler ALimitHandler
for databases which support the ANSI SQL standard syntaxFETCH FIRST m ROWS ONLY
but notOFFSET n ROWS
.LegacyDB2LimitHandler ALimitHandler
for DB2.LegacyHSQLLimitHandler ALimitHandler
for HSQL prior to 2.0.LegacyOracleLimitHandler ALimitHandler
for Oracle prior to 12c, which usesROWNUM
.LimitLimitHandler Limit handler for MySQL and CUBRID which support the syntaxLIMIT n
andLIMIT m, n
.LimitOffsetLimitHandler ALimitHandler
for databases like PostgreSQL, H2, and HSQL that support the syntaxLIMIT n OFFSET m
.NoopLimitHandler Handler not supporting query LIMIT clause.OffsetFetchLimitHandler ALimitHandler
for databases which support the ANSI SQL standard syntaxFETCH FIRST m ROWS ONLY
andOFFSET n ROWS FETCH NEXT m ROWS ONLY
.Oracle12LimitHandler ALimitHandler
for databases which support the ANSI SQL standard syntaxFETCH FIRST m ROWS ONLY
andOFFSET n ROWS FETCH NEXT m ROWS ONLY
.SQLServer2005LimitHandler SQLServer2012LimitHandler ALimitHandler
compatible with SQL Server 2012 which introduced support for the ANSI SQL standard syntaxOFFSET m ROWS FETCH NEXT n ROWS ONLY
, though this syntax is considered part of theORDER BY
clause, and with the wrinkle that bothORDER BY
and theOFFSET
clause are required.TopLimitHandler ALimitHandler
for Transact SQL and similar databases which support the syntaxSELECT TOP n
.