public class SqlPagingQueryProviderFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean
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 |
|---|---|
Object |
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 |
setGroupClause(String groupClause) |
void |
setSelectClause(String selectClause) |
void |
setSortKey(String key) |
void |
setSortKeys(Map<String,Order> sortKeys) |
void |
setWhereClause(String whereClause) |
public void setGroupClause(String groupClause)
groupClause - SQL GROUP BY clause part of the SQL query stringpublic 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,Order> sortKeys)
sortKeys - the sortKeys to setpublic void setSortKey(String key)
public Object getObject() throws Exception
PagingQueryProvider instance using the provided properties
and appropriate for the given database type.getObject in interface org.springframework.beans.factory.FactoryBeanExceptionFactoryBean.getObject()public Class<PagingQueryProvider> getObjectType()
PagingQueryProvider.getObjectType in interface org.springframework.beans.factory.FactoryBeanFactoryBean.getObjectType()public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanFactoryBean.isSingleton()Copyright © 2013. All Rights Reserved.