public class TypeSupport extends Object implements DBQueryBuilderComponent
| Constructor and Description |
|---|
TypeSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildJoins(Map<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(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 ids
|
void |
setCommandType(DBQueryBuilderPredicatePartCommandType commandType) |
void |
setJoinType(JoinType joinType) |
void |
setQnameIds(List<Long> qnameIds) |
public void setCommandType(DBQueryBuilderPredicatePartCommandType commandType)
commandType - the commandType to setpublic boolean isSupported()
DBQueryBuilderComponentisSupported in interface DBQueryBuilderComponentpublic void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors, Map<String,Argument> functionArgs, FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
DBQueryBuilderComponentprepare in interface DBQueryBuilderComponentnamespaceService - NamespaceServicedictionaryService - DictionaryServiceqnameDAO - QNameDAOnodeDAO - NodeDAOtenantService - TenantServicefunctionContext - FunctionEvaluationContextpublic void buildJoins(Map<QName,DBQueryBuilderJoinCommand> singleJoins, List<DBQueryBuilderJoinCommand> multiJoins)
DBQueryBuilderComponentbuildJoins in interface DBQueryBuilderComponentpublic void buildPredicateCommands(List<DBQueryBuilderPredicatePartCommand> predicatePartCommands)
DBQueryBuilderComponentbuildPredicateCommands in interface DBQueryBuilderComponentpublic void setJoinType(JoinType joinType)
Copyright © 2005–2021 Alfresco Software. All rights reserved.