public class PropertySupport extends Object implements DBQueryBuilderComponent
Constructor and Description |
---|
PropertySupport() |
Modifier and Type | Method and Description |
---|---|
void |
buildJoins(Map<org.alfresco.service.namespace.QName,DBQueryBuilderJoinCommand> singleJoins,
List<DBQueryBuilderJoinCommand> multiJoins)
Build the Set of required joins
Assign join aliases and link them up to each component where required
|
void |
buildPredicateCommands(List<DBQueryBuilderPredicatePartCommand> 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,
Set<String> selectors,
Map<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
|
void |
setCommandType(DBQueryBuilderPredicatePartCommandType commandType) |
void |
setFieldName(String fieldName) |
void |
setJoinCommandType(DBQueryBuilderJoinCommandType joinCommandType) |
void |
setLeftOuter(boolean leftOuter) |
void |
setLuceneFunction(org.alfresco.repo.search.adaptor.lucene.LuceneFunction luceneFunction) |
void |
setPair(org.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> pair) |
void |
setPropertyDataType(org.alfresco.service.cmr.dictionary.DataTypeDefinition propertyDataType) |
void |
setPropertyQName(org.alfresco.service.namespace.QName propertyQName) |
void |
setValue(String value) |
void |
setValues(String[] values) |
public void setPair(org.alfresco.util.Pair<Long,org.alfresco.service.namespace.QName> pair)
pair
- the pair to setpublic void setValue(String value)
value
- the value to setpublic void setValues(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(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()
DBQueryBuilderComponent
isSupported
in interface DBQueryBuilderComponent
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, Set<String> selectors, Map<String,org.alfresco.repo.search.impl.querymodel.Argument> functionArgs, org.alfresco.repo.search.impl.querymodel.FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
DBQueryBuilderComponent
prepare
in interface DBQueryBuilderComponent
namespaceService
- NamespaceServicedictionaryService
- DictionaryServiceqnameDAO
- QNameDAOnodeDAO
- NodeDAOtenantService
- TenantServicefunctionContext
- FunctionEvaluationContextpublic void buildJoins(Map<org.alfresco.service.namespace.QName,DBQueryBuilderJoinCommand> singleJoins, List<DBQueryBuilderJoinCommand> multiJoins)
DBQueryBuilderComponent
buildJoins
in interface DBQueryBuilderComponent
public void buildPredicateCommands(List<DBQueryBuilderPredicatePartCommand> predicatePartCommands)
DBQueryBuilderComponent
buildPredicateCommands
in interface DBQueryBuilderComponent
public void setLuceneFunction(org.alfresco.repo.search.adaptor.lucene.LuceneFunction luceneFunction)
luceneFunction
- LuceneFunctionpublic void setLeftOuter(boolean leftOuter)
leftOuter
- booleanCopyright © 2005–2017 Alfresco Software. All rights reserved.