public class DerbyPagingQueryProvider extends SqlWindowingPagingQueryProvider
PagingQueryProvider
using standard SQL:2003 windowing functions.
These features are supported starting with Apache Derby version 10.4.1.3.
As the OVER() function does not support the ORDER BY clause a sub query is instead used to order the results
before the ROW_NUM restriction is appliedConstructor and Description |
---|
DerbyPagingQueryProvider() |
Modifier and Type | Method and Description |
---|---|
protected String |
getOrderedQueryAlias() |
protected String |
getOverClause() |
protected String |
getOverSubstituteClauseEnd() |
protected String |
getOverSubstituteClauseStart() |
void |
init(DataSource dataSource)
Check mandatory properties.
|
extractTableAlias, generateFirstPageQuery, generateJumpToItemQuery, generateRemainingPagesQuery, getSubQueryAlias
getFromClause, getGroupClause, getParameterCount, getSelectClause, getSortKeyPlaceHolder, getSortKeys, getWhereClause, isUsingNamedParameters, setFromClause, setGroupClause, setSelectClause, setSortKeys, setWhereClause
public void init(DataSource dataSource) throws Exception
AbstractSqlPagingQueryProvider
init
in interface PagingQueryProvider
init
in class AbstractSqlPagingQueryProvider
dataSource
- DataSource to use for any initializationException
InitializingBean.afterPropertiesSet()
protected String getOrderedQueryAlias()
getOrderedQueryAlias
in class SqlWindowingPagingQueryProvider
protected String getOverClause()
getOverClause
in class SqlWindowingPagingQueryProvider
protected String getOverSubstituteClauseStart()
getOverSubstituteClauseStart
in class SqlWindowingPagingQueryProvider
protected String getOverSubstituteClauseEnd()
getOverSubstituteClauseEnd
in class SqlWindowingPagingQueryProvider
Copyright © 2014 Pivotal. All rights reserved.