org.apache.jackrabbit.core.query.lucene.constraint
Class ConstraintBuilder

java.lang.Object
  extended by org.apache.jackrabbit.core.query.lucene.constraint.ConstraintBuilder

public class ConstraintBuilder
extends Object

ConstraintBuilder builds a Constraint from a tree of QOM constraints.


Constructor Summary
ConstraintBuilder()
           
 
Method Summary
static Constraint create(org.apache.jackrabbit.spi.commons.query.qom.ConstraintImpl constraint, Map<String,Value> bindVariableValues, org.apache.jackrabbit.spi.commons.query.qom.SelectorImpl[] selectors, LuceneQueryFactory factory, ValueFactory vf)
          Creates a Constraint from a QOM constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintBuilder

public ConstraintBuilder()
Method Detail

create

public static Constraint create(org.apache.jackrabbit.spi.commons.query.qom.ConstraintImpl constraint,
                                Map<String,Value> bindVariableValues,
                                org.apache.jackrabbit.spi.commons.query.qom.SelectorImpl[] selectors,
                                LuceneQueryFactory factory,
                                ValueFactory vf)
                         throws RepositoryException
Creates a Constraint from a QOM constraint.

Parameters:
constraint - the QOM constraint.
bindVariableValues - the map of bind variables and their respective value.
selectors - the selectors of the current query.
factory - the lucene query factory.
vf - the value factory of the current session.
Returns:
a Constraint.
Throws:
RepositoryException - if an error occurs while building the constraint.


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.