org.springframework.batch.item.database.support
Class SybasePagingQueryProvider

java.lang.Object
  extended by org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider
      extended by org.springframework.batch.item.database.support.SqlWindowingPagingQueryProvider
          extended by org.springframework.batch.item.database.support.SybasePagingQueryProvider
All Implemented Interfaces:
PagingQueryProvider

public class SybasePagingQueryProvider
extends SqlWindowingPagingQueryProvider

Sybase implementation of a PagingQueryProvider using database specific features.

Since:
2.0
Author:
Thomas Risberg

Constructor Summary
SybasePagingQueryProvider()
           
 
Method Summary
 String generateFirstPageQuery(int pageSize)
          Method generating the query string to be used for retrieving the first page.
 String generateRemainingPagesQuery(int pageSize)
          Method generating the query string to be used for retrieving the pages following the first page.
protected  Object getSubQueryAlias()
           
 
Methods inherited from class org.springframework.batch.item.database.support.SqlWindowingPagingQueryProvider
extractTableAlias, generateJumpToItemQuery, getOverClause, getOverSubstituteClauseEnd, getOverSubstituteClauseStart
 
Methods inherited from class org.springframework.batch.item.database.support.AbstractSqlPagingQueryProvider
getFromClause, getParameterCount, getSelectClause, getSortKey, getSortKeyPlaceHolder, getSortKeyWithoutAlias, getWhereClause, init, isAscending, isUsingNamedParameters, setAscending, setFromClause, setSelectClause, setSortKey, setWhereClause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SybasePagingQueryProvider

public SybasePagingQueryProvider()
Method Detail

generateFirstPageQuery

public String generateFirstPageQuery(int pageSize)
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 interface PagingQueryProvider
Overrides:
generateFirstPageQuery in class SqlWindowingPagingQueryProvider
Parameters:
pageSize - number of rows to read per page
Returns:
query string

generateRemainingPagesQuery

public String generateRemainingPagesQuery(int pageSize)
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 interface PagingQueryProvider
Overrides:
generateRemainingPagesQuery in class SqlWindowingPagingQueryProvider
Parameters:
pageSize - number of rows to read per page
Returns:
query string

getSubQueryAlias

protected Object getSubQueryAlias()
Overrides:
getSubQueryAlias in class SqlWindowingPagingQueryProvider


Copyright © 2013 SpringSource. All Rights Reserved.