public class PostgresPagingQueryProvider extends AbstractSqlPagingQueryProvider
PagingQueryProvider
using database specific features.
When using the groupClause, this implementation expects all select fields not used in aggregate functions to be included in the
groupClause (the provider does not add them for you).Constructor and Description |
---|
PostgresPagingQueryProvider() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generateFirstPageQuery(int pageSize)
Method generating the query string to be used for retrieving the first
page.
|
java.lang.String |
generateJumpToItemQuery(int itemIndex,
int pageSize)
Method generating the query string to be used for jumping to a specific
item position.
|
java.lang.String |
generateRemainingPagesQuery(int pageSize)
Method generating the query string to be used for retrieving the pages
following the first page.
|
getFromClause, getGroupClause, getParameterCount, getSelectClause, getSortKeyPlaceHolder, getSortKeys, getSortKeysWithoutAliases, getWhereClause, init, isUsingNamedParameters, setFromClause, setGroupClause, setSelectClause, setSortKeys, setWhereClause
public java.lang.String generateFirstPageQuery(int pageSize)
AbstractSqlPagingQueryProvider
generateFirstPageQuery
in interface PagingQueryProvider
generateFirstPageQuery
in class AbstractSqlPagingQueryProvider
pageSize
- number of rows to read per pagepublic java.lang.String generateRemainingPagesQuery(int pageSize)
AbstractSqlPagingQueryProvider
generateRemainingPagesQuery
in interface PagingQueryProvider
generateRemainingPagesQuery
in class AbstractSqlPagingQueryProvider
pageSize
- number of rows to read per pagepublic java.lang.String generateJumpToItemQuery(int itemIndex, int pageSize)
AbstractSqlPagingQueryProvider
generateJumpToItemQuery
in interface PagingQueryProvider
generateJumpToItemQuery
in class AbstractSqlPagingQueryProvider
itemIndex
- the index of the item to jump topageSize
- number of rows to read per page