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 java.lang.String |
getOrderedQueryAlias() |
protected java.lang.String |
getOverClause() |
protected java.lang.String |
getOverSubstituteClauseEnd() |
protected java.lang.String |
getOverSubstituteClauseStart() |
void |
init(javax.sql.DataSource dataSource)
Check mandatory properties.
|
extractTableAlias, generateFirstPageQuery, generateJumpToItemQuery, generateRemainingPagesQuery, getSubQueryAlias
getFromClause, getGroupClause, getParameterCount, getSelectClause, getSortKeyPlaceHolder, getSortKeys, getSortKeysWithoutAliases, getWhereClause, isUsingNamedParameters, setFromClause, setGroupClause, setSelectClause, setSortKeys, setWhereClause
public void init(javax.sql.DataSource dataSource) throws java.lang.Exception
AbstractSqlPagingQueryProvider
init
in interface PagingQueryProvider
init
in class AbstractSqlPagingQueryProvider
dataSource
- DataSource to use for any initializationjava.lang.Exception
- for errors when initializingInitializingBean.afterPropertiesSet()
protected java.lang.String getOrderedQueryAlias()
getOrderedQueryAlias
in class SqlWindowingPagingQueryProvider
protected java.lang.String getOverClause()
getOverClause
in class SqlWindowingPagingQueryProvider
protected java.lang.String getOverSubstituteClauseStart()
getOverSubstituteClauseStart
in class SqlWindowingPagingQueryProvider
protected java.lang.String getOverSubstituteClauseEnd()
getOverSubstituteClauseEnd
in class SqlWindowingPagingQueryProvider