Class SybasePagingQueryProvider
- java.lang.Object
- org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider
- org.springframework.batch.item.database.support.SqlWindowingPagingQueryProvider
- org.springframework.batch.item.database.support.SybasePagingQueryProvider
- All Implemented Interfaces:
PagingQueryProvider
public class SybasePagingQueryProvider extends SqlWindowingPagingQueryProvider
Sybase implementation of aPagingQueryProviderusing database specific features.- Since:
- 2.0
- Author:
- Thomas Risberg, Michael Minella
Constructor Summary
Constructors Constructor Description SybasePagingQueryProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgenerateFirstPageQuery(int pageSize)Method generating the query string to be used for retrieving the first page.java.lang.StringgenerateRemainingPagesQuery(int pageSize)Method generating the query string to be used for retrieving the pages following the first page.protected java.lang.ObjectgetSubQueryAlias()Methods inherited from class org.springframework.batch.item.database.support.SqlWindowingPagingQueryProvider
extractTableAlias, generateJumpToItemQuery, getOrderedQueryAlias, getOverClause, getOverSubstituteClauseEnd, getOverSubstituteClauseStart
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
Method Detail
generateFirstPageQuery
public java.lang.String generateFirstPageQuery(int pageSize)
Description copied from class:AbstractSqlPagingQueryProviderMethod generating the query string to be used for retrieving the first page. This method must be implemented in sub classes.- Specified by:
generateFirstPageQueryin interfacePagingQueryProvider- Overrides:
generateFirstPageQueryin classSqlWindowingPagingQueryProvider- Parameters:
pageSize- number of rows to read per page- Returns:
- query string
generateRemainingPagesQuery
public java.lang.String generateRemainingPagesQuery(int pageSize)
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 sub classes.- Specified by:
generateRemainingPagesQueryin interfacePagingQueryProvider- Overrides:
generateRemainingPagesQueryin classSqlWindowingPagingQueryProvider- Parameters:
pageSize- number of rows to read per page- Returns:
- query string
getSubQueryAlias
protected java.lang.Object getSubQueryAlias()
- Overrides:
getSubQueryAliasin classSqlWindowingPagingQueryProvider