當前位置: 首頁>>代碼示例>>Java>>正文


Java Function類代碼示例

本文整理匯總了Java中org.alfresco.repo.search.impl.querymodel.Function的典型用法代碼示例。如果您正苦於以下問題:Java Function類的具體用法?Java Function怎麽用?Java Function使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Function類屬於org.alfresco.repo.search.impl.querymodel包,在下文中一共展示了Function類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: prepare

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
@Override
public void prepare(NamespaceService namespaceService, DictionaryService dictionaryService, QNameDAO qnameDAO, NodeDAO nodeDAO, TenantService tenantService, Set<String> selectors, Map<String, Argument> functionArgs,  FunctionEvaluationContext functionContext, boolean supportBooleanFloatAndDouble)
{
    Function function = getFunction();
    if(function != null)
    {
        if(function instanceof DBQueryBuilderComponent)
        {
            DBQueryBuilderComponent dbQueryBuilderComponent = (DBQueryBuilderComponent)function;
            dbQueryBuilderComponent.prepare(namespaceService, dictionaryService, qnameDAO, nodeDAO, tenantService, selectors,  getFunctionArguments(), functionContext, supportBooleanFloatAndDouble);
        }
        else
        {
            throw new UnsupportedOperationException();
        }
    }
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:18,代碼來源:DBFunctionalConstraint.java

示例2: buildJoins

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
@Override
public void buildJoins(Map<QName, DBQueryBuilderJoinCommand> singleJoins, List<DBQueryBuilderJoinCommand> multiJoins)
{
    Function function = getFunction();
    if(function != null)
    {
        if(function instanceof DBQueryBuilderComponent)
        {
            DBQueryBuilderComponent dbQueryBuilderComponent = (DBQueryBuilderComponent)function;
            dbQueryBuilderComponent.buildJoins(singleJoins, multiJoins);
        }
        else
        {
            throw new UnsupportedOperationException();
        }
    }
    
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:19,代碼來源:DBFunctionalConstraint.java

示例3: buildPredicateCommands

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
@Override
public void buildPredicateCommands(List<DBQueryBuilderPredicatePartCommand> predicatePartCommands)
{
    Function function = getFunction();
    if(function != null)
    {
        if(function instanceof DBQueryBuilderComponent)
        {
            DBQueryBuilderComponent dbQueryBuilderComponent = (DBQueryBuilderComponent)function;
            dbQueryBuilderComponent.buildPredicateCommands(predicatePartCommands);
        }
        else
        {
            throw new UnsupportedOperationException();
        }
    }
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:18,代碼來源:DBFunctionalConstraint.java

示例4: addComponent

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
public Q addComponent(Set<String> selectors, Map<String, Argument> functionArgs, LuceneQueryBuilderContext<Q, S, E> luceneContext, FunctionEvaluationContext functionContext) throws E
{
    Function function = getFunction();
    if(function != null)
    {
        if(function instanceof LuceneQueryBuilderComponent)
        {
            @SuppressWarnings("unchecked")
            LuceneQueryBuilderComponent<Q, S, E> luceneQueryBuilderComponent = (LuceneQueryBuilderComponent<Q, S, E>)function;
            return luceneQueryBuilderComponent.addComponent(selectors, getFunctionArguments(), luceneContext, functionContext);            
        }
        else
        {
            throw new UnsupportedOperationException();
        }
    }
    return null;
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:19,代碼來源:LuceneFunctionalConstraint.java

示例5: getFunction

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
public Function getFunction(String functionName)
{
    Function function = functions.get(functionName);
    if (function != null)
    {
        return function;
    }
    else
    {
        // scan
        for (String key : functions.keySet())
        {
            if (key.equalsIgnoreCase(functionName))
            {
                return functions.get(key);
            }
        }
       return null;
    }
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:21,代碼來源:LuceneQueryModelFactory.java

示例6: buildPhrase

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
static private Constraint buildPhrase(CommonTree testNode, QueryModelFactory factory,
        FunctionEvaluationContext functionEvaluationContext, Selector selector, Map<String, Column> columnMap)
{
    String functionName = FTSPhrase.NAME;
    Function function = factory.getFunction(functionName);
    Map<String, Argument> functionArguments = new LinkedHashMap<String, Argument>();
    LiteralArgument larg = factory.createLiteralArgument(FTSPhrase.ARG_PHRASE, DataTypeDefinition.TEXT, getText(testNode.getChild(0)));
    functionArguments.put(larg.getName(), larg);
    larg = factory.createLiteralArgument(FTSPhrase.ARG_TOKENISATION_MODE, DataTypeDefinition.ANY, AnalysisMode.DEFAULT);
    functionArguments.put(larg.getName(), larg);
    return factory.createFunctionalConstraint(function, functionArguments);
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:13,代碼來源:CMISFTSQueryParser.java

示例7: buildTerm

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
static private Constraint buildTerm(CommonTree testNode, QueryModelFactory factory, FunctionEvaluationContext functionEvaluationContext,
        Selector selector, Map<String, Column> columnMap)
{
    String functionName = FTSTerm.NAME;
    Function function = factory.getFunction(functionName);
    Map<String, Argument> functionArguments = new LinkedHashMap<String, Argument>();
    LiteralArgument larg = factory.createLiteralArgument(FTSTerm.ARG_TERM, DataTypeDefinition.TEXT, getText(testNode.getChild(0)));
    functionArguments.put(larg.getName(), larg);
    larg = factory.createLiteralArgument(FTSTerm.ARG_TOKENISATION_MODE, DataTypeDefinition.ANY, AnalysisMode.DEFAULT);
    functionArguments.put(larg.getName(), larg);
    return factory.createFunctionalConstraint(function, functionArguments);
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:13,代碼來源:CMISFTSQueryParser.java

示例8: DBFunctionalConstraint

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
/**
 * @param function Function
 */
public DBFunctionalConstraint(Function function, Map<String, Argument> arguments)
{
    super(function, arguments);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:8,代碼來源:DBFunctionalConstraint.java

示例9: DBFunctionArgument

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
/**
 * @param name String
 * @param function Function
 */
public DBFunctionArgument(String name, Function function, Map<String, Argument> arguments)
{
    super(name, function, arguments);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:9,代碼來源:DBFunctionArgument.java

示例10: DBColumn

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
/**
 * @param function Function
 * @param alias String
 */
public DBColumn(Function function, Map<String, Argument> functionArguments, String alias)
{
    super(function, functionArguments, alias);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:9,代碼來源:DBColumn.java

示例11: createFunctionalConstraint

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
@Override
public Constraint createFunctionalConstraint(Function function, Map<String, Argument> functionArguments)
{
    return new DBFunctionalConstraint(function, functionArguments);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:6,代碼來源:DBQueryModelFactory.java

示例12: createColumn

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
@Override
public Column createColumn(Function function, Map<String, Argument> functionArguments, String alias)
{
   return new DBColumn(function, functionArguments, alias);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:6,代碼來源:DBQueryModelFactory.java

示例13: createFunctionArgument

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
@Override
public FunctionArgument createFunctionArgument(String name, Function function, Map<String, Argument> functionArguments)
{
    return new DBFunctionArgument(name, function, functionArguments);
}
 
開發者ID:Alfresco,項目名稱:alfresco-repository,代碼行數:6,代碼來源:DBQueryModelFactory.java

示例14: BaseColumn

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
public BaseColumn(Function function, Map<String, Argument> functionArguments, String alias)
{
    this.function = function;
    this.functionArguments = functionArguments;
    this.alias = alias;
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:7,代碼來源:BaseColumn.java

示例15: getFunction

import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
public Function getFunction()
{
    return function;
}
 
開發者ID:Alfresco,項目名稱:alfresco-data-model,代碼行數:5,代碼來源:BaseColumn.java


注:本文中的org.alfresco.repo.search.impl.querymodel.Function類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。