public abstract class AbstractCannedQueryFactory extends java.lang.Object implements CannedQueryFactory, 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 |
getCannedQuery(java.lang.Object parameterBean,
int skipResults,
int pageSize,
java.lang.String queryExecutionId)
Retrieve an instance of a
CannedQuery based on limited parameters. |
protected java.lang.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(java.lang.String name)
Set the name with which to
register |
void |
setRegistry(NamedObjectRegistry registry)
Set the registry with which to register
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCannedQuerypublic void setBeanName(java.lang.String name)
registersetBeanName in interface org.springframework.beans.factory.BeanNameAwarename - the name of the beanpublic void setRegistry(NamedObjectRegistry registry)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionprotected java.lang.String getQueryExecutionId(CannedQueryParameters parameters)
parameters - the query parameterspublic CannedQuery getCannedQuery(java.lang.Object parameterBean, int skipResults, int pageSize, java.lang.String queryExecutionId)
CannedQuery based on limited parameters.getCannedQuery in interface CannedQueryFactoryparameterBean - 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 - 2010 Alfresco Software, Inc. All Rights Reserved.