Class DBQueryEngine
java.lang.Object
org.alfresco.repo.search.impl.querymodel.impl.db.DBQueryEngine
- All Implemented Interfaces:
QueryEngine
- Author:
- Andy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DictionaryServiceprotected static final org.apache.commons.logging.Logprotected NamespaceServiceprotected EntityLookupCache<Long,Node, NodeRef> protected NodeServiceprotected PermissionServiceprotected QNameDAOprotected static final Stringprotected org.mybatis.spring.SqlSessionTemplate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NodePermissionAssessorcreateAssessor(Authority authority) executeQuery(Query query, QueryOptions options, FunctionEvaluationContext functionContext) intintbooleanprotected StringpickQueryTemplate(QueryOptions options, DBQuery dbQuery) voidsetAclCrudDAO(AclCrudDAO aclCrudDAO) voidsetDictionaryService(DictionaryService dictionaryService) voidsetMaxPagingBatchSize(int maxPagingBatchSize) voidsetMaxPermissionCheckEnabled(boolean maxPermissionCheckEnabled) voidsetMaxPermissionChecks(int maxPermissionChecks) voidsetMaxPermissionCheckTimeMillis(long maxPermissionCheckTimeMillis) voidsetMetadataIndexCheck2(OptionalPatchApplicationCheckBootstrapBean metadataIndexCheck2) voidsetMinPagingBatchSize(int minPagingBatchSize) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeDAO(NodeDAO nodeDAO) voidInjection of nodes cache for clean-up and warm up when requiredvoidsetNodeService(NodeService nodeService) voidsetPermissionService(PermissionService permissionService) voidsetQnameDAO(QNameDAO qnameDAO) final voidsetSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) voidsetTemplate(org.mybatis.spring.SqlSessionTemplate template) voidsetTenantService(TenantService tenantService) voidsetUsePagingQuery(boolean usePagingQuery)
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger -
SELECT_BY_DYNAMIC_QUERY
- See Also:
-
template
protected org.mybatis.spring.SqlSessionTemplate template -
qnameDAO
-
dictionaryService
-
namespaceService
-
nodeService
-
permissionService
-
nodesCache
-
-
Constructor Details
-
DBQueryEngine
public DBQueryEngine()
-
-
Method Details
-
setAclCrudDAO
-
setMaxPermissionChecks
public void setMaxPermissionChecks(int maxPermissionChecks) -
setMaxPermissionCheckTimeMillis
public void setMaxPermissionCheckTimeMillis(long maxPermissionCheckTimeMillis) -
setMaxPermissionCheckEnabled
public void setMaxPermissionCheckEnabled(boolean maxPermissionCheckEnabled) -
setTemplate
public void setTemplate(org.mybatis.spring.SqlSessionTemplate template) -
setPermissionService
-
isUsePagingQuery
public boolean isUsePagingQuery() -
setUsePagingQuery
public void setUsePagingQuery(boolean usePagingQuery) -
getMinPagingBatchSize
public int getMinPagingBatchSize() -
setMinPagingBatchSize
public void setMinPagingBatchSize(int minPagingBatchSize) -
getMaxPagingBatchSize
public int getMaxPagingBatchSize() -
setMaxPagingBatchSize
public void setMaxPagingBatchSize(int maxPagingBatchSize) -
setMetadataIndexCheck2
-
setTenantService
-
setSqlSessionTemplate
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) -
setQnameDAO
- Parameters:
qnameDAO- the qnameDAO to set
-
setDictionaryService
- Parameters:
dictionaryService- the dictionaryService to set
-
setNamespaceService
- Parameters:
namespaceService- the namespaceService to set
-
setNodeService
- Parameters:
nodeService- the nodeService to set
-
setNodeDAO
- Parameters:
nodeDAO- the nodeDAO to set
-
executeQuery
public QueryEngineResults executeQuery(Query query, QueryOptions options, FunctionEvaluationContext functionContext) - Specified by:
executeQueryin interfaceQueryEngine
-
pickQueryTemplate
-
createAssessor
-
getQueryModelFactory
- Specified by:
getQueryModelFactoryin interfaceQueryEngine
-
setNodesCache
Injection of nodes cache for clean-up and warm up when required- Parameters:
cache- The node cache to set
-