本文整理匯總了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();
}
}
}
示例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();
}
}
}
示例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();
}
}
}
示例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;
}
示例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;
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例15: getFunction
import org.alfresco.repo.search.impl.querymodel.Function; //導入依賴的package包/類
public Function getFunction()
{
return function;
}