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
public class DerbyPagingQueryProvider extends SqlWindowingPagingQueryProvider
Derby implementation of aPagingQueryProviderusing 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
Constructors Constructor Description DerbyPagingQueryProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetOrderedQueryAlias()protected java.lang.StringgetOverClause()protected java.lang.StringgetOverSubstituteClauseEnd()protected java.lang.StringgetOverSubstituteClauseStart()voidinit(javax.sql.DataSource dataSource)Check mandatory properties.Methods inherited from class org.springframework.batch.item.database.support.SqlWindowingPagingQueryProvider
extractTableAlias, generateFirstPageQuery, generateJumpToItemQuery, 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
Method Detail
init
public void init(javax.sql.DataSource dataSource) throws java.lang.ExceptionDescription copied from class:AbstractSqlPagingQueryProviderCheck mandatory properties.- Specified by:
initin interfacePagingQueryProvider- Overrides:
initin classAbstractSqlPagingQueryProvider- Parameters:
dataSource- DataSource to use for any initialization- Throws:
java.lang.Exception- for errors when initializing- See Also:
InitializingBean.afterPropertiesSet()
getOrderedQueryAlias
protected java.lang.String getOrderedQueryAlias()
- Overrides:
getOrderedQueryAliasin classSqlWindowingPagingQueryProvider
getOverClause
protected java.lang.String getOverClause()
- Overrides:
getOverClausein classSqlWindowingPagingQueryProvider
getOverSubstituteClauseStart
protected java.lang.String getOverSubstituteClauseStart()
- Overrides:
getOverSubstituteClauseStartin classSqlWindowingPagingQueryProvider
getOverSubstituteClauseEnd
protected java.lang.String getOverSubstituteClauseEnd()
- Overrides:
getOverSubstituteClauseEndin classSqlWindowingPagingQueryProvider