Class ConstraintBuilder
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.constraint.ConstraintBuilder
-
public class ConstraintBuilder extends Object
ConstraintBuilderbuilds aConstraintfrom 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 Constraintcreate(ConstraintImpl constraint, Map<String,Value> bindVariableValues, SelectorImpl[] selectors, LuceneQueryFactory factory, ValueFactory vf)Creates aConstraintfrom a QOMconstraint.
-
-
-
Method Detail
-
create
public static Constraint create(ConstraintImpl constraint, Map<String,Value> bindVariableValues, SelectorImpl[] selectors, LuceneQueryFactory factory, ValueFactory vf) throws RepositoryException
Creates aConstraintfrom 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.
-
-