Class DBQueryEngine
- java.lang.Object
-
- org.alfresco.repo.search.impl.querymodel.impl.db.DBQueryEngine
-
- All Implemented Interfaces:
QueryEngine
@NotThreadSafe public class DBQueryEngine extends Object implements QueryEngine
- Author:
- Andy
-
-
Field Summary
Fields Modifier and Type Field Description protected DictionaryServicedictionaryServiceprotected static org.apache.commons.logging.Logloggerprotected NamespaceServicenamespaceServiceprotected EntityLookupCache<Long,Node,NodeRef>nodesCacheprotected NodeServicenodeServiceprotected PermissionServicepermissionServiceprotected QNameDAOqnameDAOprotected static StringSELECT_BY_DYNAMIC_QUERYprotected org.mybatis.spring.SqlSessionTemplatetemplate
-
Constructor Summary
Constructors Constructor Description DBQueryEngine()
-
Method Summary
-
-
-
Field Detail
-
logger
protected static final org.apache.commons.logging.Log logger
-
SELECT_BY_DYNAMIC_QUERY
protected static final String SELECT_BY_DYNAMIC_QUERY
- See Also:
- Constant Field Values
-
template
protected org.mybatis.spring.SqlSessionTemplate template
-
qnameDAO
protected QNameDAO qnameDAO
-
dictionaryService
protected DictionaryService dictionaryService
-
namespaceService
protected NamespaceService namespaceService
-
nodeService
protected NodeService nodeService
-
permissionService
protected PermissionService permissionService
-
nodesCache
protected EntityLookupCache<Long,Node,NodeRef> nodesCache
-
-
Method Detail
-
setAclCrudDAO
public void setAclCrudDAO(AclCrudDAO aclCrudDAO)
-
setMaxPermissionChecks
public void setMaxPermissionChecks(int maxPermissionChecks)
-
setMaxPermissionCheckTimeMillis
public void setMaxPermissionCheckTimeMillis(long maxPermissionCheckTimeMillis)
-
setTemplate
public void setTemplate(org.mybatis.spring.SqlSessionTemplate template)
-
setPermissionService
public void setPermissionService(PermissionService permissionService)
-
setMetadataIndexCheck2
public void setMetadataIndexCheck2(OptionalPatchApplicationCheckBootstrapBean metadataIndexCheck2)
-
setTenantService
public void setTenantService(TenantService tenantService)
-
setSqlSessionTemplate
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
-
setQnameDAO
public void setQnameDAO(QNameDAO qnameDAO)
- Parameters:
qnameDAO- the qnameDAO to set
-
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
- Parameters:
dictionaryService- the dictionaryService to set
-
setNamespaceService
public void setNamespaceService(NamespaceService namespaceService)
- Parameters:
namespaceService- the namespaceService to set
-
setNodeService
public void setNodeService(NodeService nodeService)
- Parameters:
nodeService- the nodeService to set
-
setNodeDAO
public void setNodeDAO(NodeDAO nodeDAO)
- Parameters:
nodeDAO- the nodeDAO to set
-
executeQuery
public QueryEngineResults executeQuery(Query query, QueryOptions options, FunctionEvaluationContext functionContext)
- Specified by:
executeQueryin interfaceQueryEngine
-
pickQueryTemplate
protected String pickQueryTemplate(QueryOptions options, DBQuery dbQuery)
-
createAssessor
protected NodePermissionAssessor createAssessor(Authority authority)
-
getQueryModelFactory
public QueryModelFactory getQueryModelFactory()
- Specified by:
getQueryModelFactoryin interfaceQueryEngine
-
setNodesCache
public void setNodesCache(SimpleCache<Serializable,Serializable> cache)
Injection of nodes cache for clean-up and warm up when required- Parameters:
cache- The node cache to set
-
-