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 |
setAscending(boolean ascending) |
void |
setDatabaseType(String databaseType) |
void |
setDataSource(DataSource dataSource) |
void |
setFromClause(String fromClause) |
void |
setSelectClause(String selectClause) |
void |
setSortKey(String sortKey) |
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 setSortKey(String sortKey)
sortKey
- the sortKey to setpublic void setAscending(boolean ascending)
ascending
- 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.FactoryBean
Exception
FactoryBean.getObject()
public Class<PagingQueryProvider> getObjectType()
PagingQueryProvider
.getObjectType
in interface org.springframework.beans.factory.FactoryBean
FactoryBean.getObjectType()
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
FactoryBean.isSingleton()
Copyright © 2013 SpringSource. All rights reserved.