public class SqlPagingQueryProviderFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<PagingQueryProvider>
PagingQueryProvider interface. The database type will be
determined from the data source if not provided explicitly. Valid types are given by
the DatabaseType enum.| Constructor and Description |
|---|
SqlPagingQueryProviderFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
PagingQueryProvider |
getObject()
Get a
PagingQueryProvider instance using the provided properties and
appropriate for the given database type. |
Class<PagingQueryProvider> |
getObjectType()
Always returns
PagingQueryProvider. |
boolean |
isSingleton()
Always returns true.
|
void |
setDatabaseType(String databaseType) |
void |
setDataSource(DataSource dataSource) |
void |
setFromClause(String fromClause) |
void |
setSelectClause(String selectClause) |
void |
setSortKeys(Map<String,org.springframework.batch.item.database.Order> sortKeys) |
void |
setWhereClause(String whereClause) |
public void setDatabaseType(String databaseType)
databaseType - the databaseType to setpublic void setDataSource(DataSource dataSource)
dataSource - the dataSource to setpublic void setFromClause(String fromClause)
fromClause - the fromClause to setpublic void setWhereClause(String whereClause)
whereClause - the whereClause to setpublic void setSelectClause(String selectClause)
selectClause - the selectClause to setpublic void setSortKeys(Map<String,org.springframework.batch.item.database.Order> sortKeys)
sortKeys - the sortKeys to setpublic PagingQueryProvider getObject() throws Exception
PagingQueryProvider instance using the provided properties and
appropriate for the given database type.getObject in interface org.springframework.beans.factory.FactoryBean<PagingQueryProvider>ExceptionFactoryBean.getObject()public Class<PagingQueryProvider> getObjectType()
PagingQueryProvider.getObjectType in interface org.springframework.beans.factory.FactoryBean<PagingQueryProvider>FactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<PagingQueryProvider>FactoryBean.isSingleton()Copyright © 2019 Pivotal Software, Inc.. All rights reserved.