Class HanaPagingQueryProvider
java.lang.Object
org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider
org.springframework.batch.item.database.support.HanaPagingQueryProvider
- All Implemented Interfaces:
PagingQueryProvider
SAP HANA implementation of a
PagingQueryProvider
using database specific features.- Since:
- 5.0
- Author:
- Jonathan Bregler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateFirstPageQuery
(int pageSize) Method generating the query string to be used for retrieving the first page.generateJumpToItemQuery
(int itemIndex, int pageSize) Method generating the query string to be used for jumping to a specific item position.generateRemainingPagesQuery
(int pageSize) Method generating the query string to be used for retrieving the pages following the first page.Methods inherited from class org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider
getFromClause, getGroupClause, getParameterCount, getSelectClause, getSortKeyPlaceHolder, getSortKeys, getSortKeysWithoutAliases, getWhereClause, init, isUsingNamedParameters, setFromClause, setGroupClause, setSelectClause, setSortKeys, setWhereClause
-
Constructor Details
-
HanaPagingQueryProvider
public HanaPagingQueryProvider()
-
-
Method Details
-
generateFirstPageQuery
Description copied from class:AbstractSqlPagingQueryProvider
Method generating the query string to be used for retrieving the first page. This method must be implemented in sub classes.- Specified by:
generateFirstPageQuery
in interfacePagingQueryProvider
- Specified by:
generateFirstPageQuery
in classAbstractSqlPagingQueryProvider
- Parameters:
pageSize
- number of rows to read per page- Returns:
- query string
-
generateRemainingPagesQuery
Description copied from class:AbstractSqlPagingQueryProvider
Method generating the query string to be used for retrieving the pages following the first page. This method must be implemented in sub classes.- Specified by:
generateRemainingPagesQuery
in interfacePagingQueryProvider
- Specified by:
generateRemainingPagesQuery
in classAbstractSqlPagingQueryProvider
- Parameters:
pageSize
- number of rows to read per page- Returns:
- query string
-
generateJumpToItemQuery
Description copied from class:AbstractSqlPagingQueryProvider
Method generating the query string to be used for jumping to a specific item position. This method must be implemented in sub classes.- Specified by:
generateJumpToItemQuery
in interfacePagingQueryProvider
- Specified by:
generateJumpToItemQuery
in classAbstractSqlPagingQueryProvider
- Parameters:
itemIndex
- the index of the item to jump topageSize
- number of rows to read per page- Returns:
- query string
-