Class PropertySupport
java.lang.Object
org.alfresco.repo.search.impl.querymodel.impl.db.PropertySupport
- All Implemented Interfaces:
DBQueryBuilderComponent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildJoins(Map<QName, DBQueryBuilderJoinCommand> singleJoins, List<DBQueryBuilderJoinCommand> multiJoins) Build the Set of required joins Assign join aliases and link them up to each component where requiredvoidbuildPredicateCommands(List<DBQueryBuilderPredicatePartCommand> predicatePartCommands) Add to the list of commands used to build the SQL predicatebooleanIs this component supported in a DB query?voidprepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors, Map<String, Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble) Use the dictionary to expand any terms, deal with multi-valued properties, etc Use the QNameDAO to look up any idsvoidsetCommandType(DBQueryBuilderPredicatePartCommandType commandType) voidsetFieldName(String fieldName) voidsetJoinCommandType(DBQueryBuilderJoinCommandType joinCommandType) voidsetLeftOuter(boolean leftOuter) voidsetLuceneFunction(LuceneFunction luceneFunction) voidvoidsetPropertyDataType(DataTypeDefinition propertyDataType) voidsetPropertyQName(QName propertyQName) voidvoid
-
Constructor Details
-
PropertySupport
public PropertySupport()
-
-
Method Details
-
setPair
- Parameters:
pair- the pair to set
-
setValue
- Parameters:
value- the value to set
-
setValues
- Parameters:
values- the values to set
-
setJoinCommandType
- Parameters:
joinCommandType- the joinCommandType to set
-
setPropertyQName
- Parameters:
propertyQName- the propertyQName to set
-
setFieldName
- Parameters:
fieldName- the fieldName to set
-
setCommandType
- Parameters:
commandType- the commandType to set
-
setPropertyDataType
- Parameters:
propertyDataType- the propertyDataType to set
-
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(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors, Map<String, Argument> functionArgs, 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(Map<QName, DBQueryBuilderJoinCommand> singleJoins, 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
Description copied from interface:DBQueryBuilderComponentAdd to the list of commands used to build the SQL predicate- Specified by:
buildPredicateCommandsin interfaceDBQueryBuilderComponent
-
setLuceneFunction
- Parameters:
luceneFunction- LuceneFunction
-
setLeftOuter
public void setLeftOuter(boolean leftOuter) - Parameters:
leftOuter- boolean
-