public class PropertySupport extends java.lang.Object implements DBQueryBuilderComponent
| Constructor and Description |
|---|
PropertySupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildJoins(java.util.Map singleJoins,
java.util.List multiJoins)
Build the Set of required joins
Assign join aliases and link them up to each component where required
|
void |
buildPredicateCommands(java.util.List predicatePartCommands)
Add to the list of commands used to build the SQL predicate
|
boolean |
isSupported()
Is this component supported in a DB query?
|
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 selectors,
java.util.Map functionArgs,
org.alfresco.repo.search.impl.querymodel.FunctionEvaluationContext functionContext)
Use the dictionary to expand any terms, deal with multi-valued properties, etc
Use the QNameDAO to look up any ids
|
void |
setCommandType(DBQueryBuilderPredicatePartCommandType commandType) |
void |
setFieldName(java.lang.String fieldName) |
void |
setJoinCommandType(DBQueryBuilderJoinCommandType joinCommandType) |
void |
setLeftOuter(boolean leftOuter) |
void |
setLuceneFunction(org.alfresco.repo.search.impl.lucene.LuceneFunction luceneFunction) |
void |
setPair(org.alfresco.util.Pair pair) |
void |
setPropertyDataType(org.alfresco.service.cmr.dictionary.DataTypeDefinition propertyDataType) |
void |
setPropertyQName(org.alfresco.service.namespace.QName propertyQName) |
void |
setValue(java.lang.String value) |
void |
setValues(java.lang.String[] values) |
public void setPair(org.alfresco.util.Pair pair)
pair - the pair to setpublic void setValue(java.lang.String value)
term - the term to setpublic void setValues(java.lang.String[] values)
values - the values to setpublic void setJoinCommandType(DBQueryBuilderJoinCommandType joinCommandType)
joinCommandType - the joinCommandType to setpublic void setPropertyQName(org.alfresco.service.namespace.QName propertyQName)
propertyQName - the propertyQName to setpublic void setFieldName(java.lang.String fieldName)
fieldName - the fieldName to setpublic void setCommandType(DBQueryBuilderPredicatePartCommandType commandType)
commandType - the commandType to setpublic void setPropertyDataType(org.alfresco.service.cmr.dictionary.DataTypeDefinition propertyDataType)
propertyDataType - the propertyDataType to setpublic boolean isSupported()
DBQueryBuilderComponentisSupported in interface DBQueryBuilderComponentpublic 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 selectors,
java.util.Map functionArgs,
org.alfresco.repo.search.impl.querymodel.FunctionEvaluationContext functionContext)
DBQueryBuilderComponentprepare in interface DBQueryBuilderComponentpublic void buildJoins(java.util.Map singleJoins,
java.util.List multiJoins)
DBQueryBuilderComponentbuildJoins in interface DBQueryBuilderComponentpublic void buildPredicateCommands(java.util.List predicatePartCommands)
DBQueryBuilderComponentbuildPredicateCommands in interface DBQueryBuilderComponentpublic void setLuceneFunction(org.alfresco.repo.search.impl.lucene.LuceneFunction luceneFunction)
luceneFunction - public void setLeftOuter(boolean leftOuter)
leftOuter - Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.