Class DBConjunction
- java.lang.Object
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
-
- org.alfresco.repo.search.impl.querymodel.impl.BaseConjunction
-
- org.alfresco.repo.search.impl.querymodel.impl.db.DBConjunction
-
- All Implemented Interfaces:
org.alfresco.repo.search.impl.querymodel.Conjunction,org.alfresco.repo.search.impl.querymodel.Constraint,DBQueryBuilderComponent
public class DBConjunction extends org.alfresco.repo.search.impl.querymodel.impl.BaseConjunction implements DBQueryBuilderComponent
- Author:
- Andy
-
-
Constructor Summary
Constructors Constructor Description DBConjunction(java.util.List<org.alfresco.repo.search.impl.querymodel.Constraint> constraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildJoins(java.util.Map<org.alfresco.service.namespace.QName,DBQueryBuilderJoinCommand> singleJoins, java.util.List<DBQueryBuilderJoinCommand> multiJoins)Build the Set of required joins Assign join aliases and link them up to each component where requiredvoidbuildPredicateCommands(java.util.List<DBQueryBuilderPredicatePartCommand> predicatePartCommands)Add to the list of commands used to build the SQL predicatebooleanisSupported()Is this component supported in a DB query?voidprepare(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, org.alfresco.repo.tenant.TenantService tenantService, java.util.Set<java.lang.String> selectors, java.util.Map<java.lang.String,org.alfresco.repo.search.impl.querymodel.Argument> functionArgs, org.alfresco.repo.search.impl.querymodel.FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)Use the dictionary to expand any terms, deal with multi-valued properties, etc Use the QNameDAO to look up any ids-
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseConjunction
evaluate, getConstraints, toString
-
Methods inherited from class org.alfresco.repo.search.impl.querymodel.impl.BaseConstraint
getBoost, getOccur, setBoost, setOccur
-
-
-
-
Method Detail
-
isSupported
public boolean isSupported()
Description copied from interface:DBQueryBuilderComponentIs this component supported in a DB query?- Specified by:
isSupportedin interfaceDBQueryBuilderComponent- Returns:
- boolean
-
prepare
public void prepare(org.alfresco.service.namespace.NamespaceService namespaceService, org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, org.alfresco.repo.tenant.TenantService tenantService, java.util.Set<java.lang.String> selectors, java.util.Map<java.lang.String,org.alfresco.repo.search.impl.querymodel.Argument> functionArgs, org.alfresco.repo.search.impl.querymodel.FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)Description copied from interface:DBQueryBuilderComponentUse the dictionary to expand any terms, deal with multi-valued properties, etc Use the QNameDAO to look up any ids- Specified by:
preparein interfaceDBQueryBuilderComponent- Parameters:
namespaceService- NamespaceServicedictionaryService- DictionaryServiceqnameDAO- QNameDAOnodeDAO- NodeDAOtenantService- TenantServicefunctionContext- FunctionEvaluationContext
-
buildJoins
public void buildJoins(java.util.Map<org.alfresco.service.namespace.QName,DBQueryBuilderJoinCommand> singleJoins, java.util.List<DBQueryBuilderJoinCommand> multiJoins)
Description copied from interface:DBQueryBuilderComponentBuild the Set of required joins Assign join aliases and link them up to each component where required- Specified by:
buildJoinsin interfaceDBQueryBuilderComponent
-
buildPredicateCommands
public void buildPredicateCommands(java.util.List<DBQueryBuilderPredicatePartCommand> predicatePartCommands)
Description copied from interface:DBQueryBuilderComponentAdd to the list of commands used to build the SQL predicate- Specified by:
buildPredicateCommandsin interfaceDBQueryBuilderComponent
-
-