Class DerbyPagingQueryProvider
java.lang.Object
org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider
org.springframework.batch.item.database.support.SqlWindowingPagingQueryProvider
org.springframework.batch.item.database.support.DerbyPagingQueryProvider
- All Implemented Interfaces:
PagingQueryProvider
Derby implementation of a
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 applied- Since:
- 2.0
- Author:
- Thomas Risberg, David Thexton, Michael Minella
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.batch.item.database.support.SqlWindowingPagingQueryProvider
extractTableAlias, generateFirstPageQuery, generateRemainingPagesQuery, getSubQueryAlias
Methods inherited from class org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider
getFromClause, getGroupClause, getParameterCount, getSelectClause, getSortKeyPlaceHolder, getSortKeys, getSortKeysWithoutAliases, getWhereClause, isUsingNamedParameters, setFromClause, setGroupClause, setSelectClause, setSortKeys, setWhereClause
-
Constructor Details
-
DerbyPagingQueryProvider
public DerbyPagingQueryProvider()
-
-
Method Details
-
init
Description copied from class:AbstractSqlPagingQueryProvider
Check mandatory properties.- Specified by:
init
in interfacePagingQueryProvider
- Overrides:
init
in classAbstractSqlPagingQueryProvider
- Parameters:
dataSource
- DataSource to use for any initialization- Throws:
Exception
- for errors when initializing- See Also:
-
InitializingBean.afterPropertiesSet()
-
getOrderedQueryAlias
- Overrides:
getOrderedQueryAlias
in classSqlWindowingPagingQueryProvider
-
getOverClause
- Overrides:
getOverClause
in classSqlWindowingPagingQueryProvider
-
getOverSubstituteClauseStart
- Overrides:
getOverSubstituteClauseStart
in classSqlWindowingPagingQueryProvider
-
getOverSubstituteClauseEnd
- Overrides:
getOverSubstituteClauseEnd
in classSqlWindowingPagingQueryProvider
-