Class DerbyPagingQueryProvider
java.lang.Object
org.springframework.batch.infrastructure.item.database.support.AbstractSqlPagingQueryProvider
org.springframework.batch.infrastructure.item.database.support.DerbyPagingQueryProvider
- All Implemented Interfaces:
PagingQueryProvider
Derby implementation of a
PagingQueryProvider using database specific features.- Since:
- 2.0
- Author:
- Thomas Risberg, David Thexton, Michael Minella, Henning Pƶttker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateFirstPageQuery(int pageSize) Method generating the query string to be used for retrieving the first page.generateRemainingPagesQuery(int pageSize) Method generating the query string to be used for retrieving the pages following the first page.Methods inherited from class AbstractSqlPagingQueryProvider
getFromClause, getGroupClause, getParameterCount, getSelectClause, getSortKeyPlaceHolder, getSortKeys, getSortKeysWithoutAliases, getWhereClause, init, isUsingNamedParameters, setFromClause, setGroupClause, setSelectClause, setSortKeys, setWhereClause
-
Constructor Details
-
DerbyPagingQueryProvider
public DerbyPagingQueryProvider()
-
-
Method Details
-
generateFirstPageQuery
Description copied from class:AbstractSqlPagingQueryProviderMethod generating the query string to be used for retrieving the first page. This method must be implemented in subclasses.- Specified by:
generateFirstPageQueryin interfacePagingQueryProvider- Specified by:
generateFirstPageQueryin classAbstractSqlPagingQueryProvider- Parameters:
pageSize- number of rows to read per page- Returns:
- query string
-
generateRemainingPagesQuery
Description copied from class:AbstractSqlPagingQueryProviderMethod generating the query string to be used for retrieving the pages following the first page. This method must be implemented in subclasses.- Specified by:
generateRemainingPagesQueryin interfacePagingQueryProvider- Specified by:
generateRemainingPagesQueryin classAbstractSqlPagingQueryProvider- Parameters:
pageSize- number of rows to read per page- Returns:
- query string
-