org.alfresco.repo.search.impl.querymodel.impl.lucene
Class LuceneQueryModelFactory

java.lang.Object
  extended by org.alfresco.repo.search.impl.querymodel.impl.lucene.LuceneQueryModelFactory
All Implemented Interfaces:
QueryModelFactory

public class LuceneQueryModelFactory
extends java.lang.Object
implements QueryModelFactory


Constructor Summary
LuceneQueryModelFactory()
          Default lucene query model factory and functions
 
Method Summary
 Column createColumn(Function function, java.util.Map functionArguments, java.lang.String alias)
           
 Constraint createConjunction(java.util.List constraints)
           
 Constraint createDisjunction(java.util.List constraints)
           
 Constraint createFunctionalConstraint(Function function, java.util.Map functionArguments)
           
 FunctionArgument createFunctionArgument(java.lang.String name, Function function, java.util.Map functionArguments)
           
 Join createJoin(Source left, Source right, JoinType joinType, Constraint joinCondition)
           
 ListArgument createListArgument(java.lang.String name, java.util.ArrayList arguments)
           
 LiteralArgument createLiteralArgument(java.lang.String name, QName type, java.io.Serializable value)
           
 Ordering createOrdering(Column column, Order order)
           
 ParameterArgument createParameterArgument(java.lang.String name, java.lang.String parameterName)
           
 PropertyArgument createPropertyArgument(java.lang.String name, boolean queryable, boolean orderable, java.lang.String selector, java.lang.String propertyName)
           
 Query createQuery(java.util.List columns, Source source, Constraint constraint, java.util.List orderings)
           
 Selector createSelector(QName classQName, java.lang.String alias)
           
 SelectorArgument createSelectorArgument(java.lang.String name, java.lang.String selectorAlias)
           
 Function getFunction(java.lang.String functionName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneQueryModelFactory

public LuceneQueryModelFactory()
Default lucene query model factory and functions

Method Detail

createColumn

public Column createColumn(Function function,
                           java.util.Map functionArguments,
                           java.lang.String alias)
Specified by:
createColumn in interface QueryModelFactory

createConjunction

public Constraint createConjunction(java.util.List constraints)
Specified by:
createConjunction in interface QueryModelFactory

createDisjunction

public Constraint createDisjunction(java.util.List constraints)
Specified by:
createDisjunction in interface QueryModelFactory

createFunctionalConstraint

public Constraint createFunctionalConstraint(Function function,
                                             java.util.Map functionArguments)
Specified by:
createFunctionalConstraint in interface QueryModelFactory

createJoin

public Join createJoin(Source left,
                       Source right,
                       JoinType joinType,
                       Constraint joinCondition)
Specified by:
createJoin in interface QueryModelFactory

createLiteralArgument

public LiteralArgument createLiteralArgument(java.lang.String name,
                                             QName type,
                                             java.io.Serializable value)
Specified by:
createLiteralArgument in interface QueryModelFactory

createOrdering

public Ordering createOrdering(Column column,
                               Order order)
Specified by:
createOrdering in interface QueryModelFactory

createParameterArgument

public ParameterArgument createParameterArgument(java.lang.String name,
                                                 java.lang.String parameterName)
Specified by:
createParameterArgument in interface QueryModelFactory

createPropertyArgument

public PropertyArgument createPropertyArgument(java.lang.String name,
                                               boolean queryable,
                                               boolean orderable,
                                               java.lang.String selector,
                                               java.lang.String propertyName)
Specified by:
createPropertyArgument in interface QueryModelFactory

createQuery

public Query createQuery(java.util.List columns,
                         Source source,
                         Constraint constraint,
                         java.util.List orderings)
Specified by:
createQuery in interface QueryModelFactory

createSelector

public Selector createSelector(QName classQName,
                               java.lang.String alias)
Specified by:
createSelector in interface QueryModelFactory

getFunction

public Function getFunction(java.lang.String functionName)
Specified by:
getFunction in interface QueryModelFactory

createSelectorArgument

public SelectorArgument createSelectorArgument(java.lang.String name,
                                               java.lang.String selectorAlias)
Specified by:
createSelectorArgument in interface QueryModelFactory

createListArgument

public ListArgument createListArgument(java.lang.String name,
                                       java.util.ArrayList arguments)
Specified by:
createListArgument in interface QueryModelFactory

createFunctionArgument

public FunctionArgument createFunctionArgument(java.lang.String name,
                                               Function function,
                                               java.util.Map functionArguments)
Specified by:
createFunctionArgument in interface QueryModelFactory


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.