public abstract class AbstractCannedQueryFactory<R> extends Object implements CannedQueryFactory<R>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware
CannedQueryFactory
implementations.Constructor and Description |
---|
AbstractCannedQueryFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Registers the instance
|
CannedQuery<R> |
getCannedQuery(Object parameterBean,
int skipResults,
int pageSize,
String queryExecutionId)
Retrieve an instance of a
CannedQuery based on limited parameters. |
protected String |
getQueryExecutionId(CannedQueryParameters parameters)
Helper method to construct a unique query execution ID based on the
instance of the factory and the parameters provided.
|
void |
setBeanName(String name)
Set the name with which to
register |
void |
setRegistry(NamedObjectRegistry<CannedQueryFactory> registry)
Set the registry with which to register
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCannedQuery
public void setBeanName(String name)
register
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
name
- the name of the beanpublic void setRegistry(NamedObjectRegistry<CannedQueryFactory> registry)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected String getQueryExecutionId(CannedQueryParameters parameters)
parameters
- the query parameterspublic CannedQuery<R> getCannedQuery(Object parameterBean, int skipResults, int pageSize, String queryExecutionId)
CannedQuery
based on limited parameters.getCannedQuery
in interface CannedQueryFactory<R>
parameterBean
- the values that the query will be based on or null
if not relevant to the queryskipResults
- results to skip before pagepageSize
- the size of page - ie. max items (if skipResults = 0)queryExecutionId
- ID of a previously-executed query to be used during follow-up
page requests - null if not availableCopyright © 2005–2015 Alfresco Software. All rights reserved.