Class ConstraintBuilder
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.constraint.ConstraintBuilder
-
public class ConstraintBuilder extends Object
ConstraintBuilder
builds aConstraint
from a tree of QOM constraints.
-
-
Constructor Summary
Constructors Constructor Description ConstraintBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Constraint
create(ConstraintImpl constraint, Map<String,Value> bindVariableValues, SelectorImpl[] selectors, LuceneQueryFactory factory, ValueFactory vf)
Creates aConstraint
from a QOMconstraint
.
-
-
-
Method Detail
-
create
public static Constraint create(ConstraintImpl constraint, Map<String,Value> bindVariableValues, SelectorImpl[] selectors, LuceneQueryFactory factory, ValueFactory vf) throws RepositoryException
Creates aConstraint
from a QOMconstraint
.- 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.
-
-