Class PropertySupport

    • Constructor Summary

      Constructors 
      Constructor Description
      PropertySupport()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildJoins​(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 required
      void buildPredicateCommands​(java.util.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, 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
      void setCommandType​(DBQueryBuilderPredicatePartCommandType commandType)  
      void setFieldName​(java.lang.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<java.lang.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​(java.lang.String value)  
      void setValues​(java.lang.String[] values)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertySupport

        public PropertySupport()
    • Method Detail

      • setPair

        public void setPair​(org.alfresco.util.Pair<java.lang.Long,​org.alfresco.service.namespace.QName> pair)
        Parameters:
        pair - the pair to set
      • setValue

        public void setValue​(java.lang.String value)
        Parameters:
        value - the value to set
      • setValues

        public void setValues​(java.lang.String[] values)
        Parameters:
        values - the values to set
      • setJoinCommandType

        public void setJoinCommandType​(DBQueryBuilderJoinCommandType joinCommandType)
        Parameters:
        joinCommandType - the joinCommandType to set
      • setPropertyQName

        public void setPropertyQName​(org.alfresco.service.namespace.QName propertyQName)
        Parameters:
        propertyQName - the propertyQName to set
      • setFieldName

        public void setFieldName​(java.lang.String fieldName)
        Parameters:
        fieldName - the fieldName to set
      • setPropertyDataType

        public void setPropertyDataType​(org.alfresco.service.cmr.dictionary.DataTypeDefinition propertyDataType)
        Parameters:
        propertyDataType - the propertyDataType to set
      • 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: DBQueryBuilderComponent
        Use the dictionary to expand any terms, deal with multi-valued properties, etc Use the QNameDAO to look up any ids
        Specified by:
        prepare in interface DBQueryBuilderComponent
        Parameters:
        namespaceService - NamespaceService
        dictionaryService - DictionaryService
        qnameDAO - QNameDAO
        nodeDAO - NodeDAO
        tenantService - TenantService
        functionContext - FunctionEvaluationContext
      • setLuceneFunction

        public void setLuceneFunction​(org.alfresco.repo.search.adaptor.lucene.LuceneFunction luceneFunction)
        Parameters:
        luceneFunction - LuceneFunction
      • setLeftOuter

        public void setLeftOuter​(boolean leftOuter)
        Parameters:
        leftOuter - boolean