|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PagingQueryProvider
Interface defining the functionality to be provided for generating paging queries for use with Paging Item Readers.
Method Summary | |
---|---|
String |
generateFirstPageQuery(int pageSize)
Generate the query that will provide the first page, limited by the page size. |
String |
generateJumpToItemQuery(int itemIndex,
int pageSize)
Generate the query that will provide the jump to item query. |
String |
generateRemainingPagesQuery(int pageSize)
Generate the query that will provide the first page, limited by the page size. |
int |
getParameterCount()
The number of parameters that are declared in the query |
String |
getSortKey()
The sort key (unique single column name). |
String |
getSortKeyWithoutAlias()
The sort key (unique single column name) without alias. |
void |
init(DataSource dataSource)
Initialize the query provider using the provided DataSource if necessary. |
boolean |
isUsingNamedParameters()
Indicate whether the generated queries use named parameter syntax. |
Method Detail |
---|
void init(DataSource dataSource) throws Exception
DataSource
if necessary.
dataSource
- DataSource to use for any initialization
Exception
String generateFirstPageQuery(int pageSize)
pageSize
- number of rows to read for each page
String generateRemainingPagesQuery(int pageSize)
pageSize
- number of rows to read for each page
String generateJumpToItemQuery(int itemIndex, int pageSize)
itemIndex
- the index for the next item to be readpageSize
- number of rows to read for each page
int getParameterCount()
boolean isUsingNamedParameters()
String getSortKey()
String getSortKeyWithoutAlias()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |