Package javax.jcr.query.qom
Interface Or
-
- All Superinterfaces:
Constraint
public interface Or extends Constraint
Performs a logical disjunction of two other constraints.To satisfy the
Orconstraint, the node-tuple must either:- satisfy
constraint1but notconstraint2, or - satisfy
constraint2but notconstraint1, or - satisfy
both
constraint1andconstraint2.
- Since:
- JCR 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstraintgetConstraint1()Gets the first constraint.ConstraintgetConstraint2()Gets the second constraint.
-
-
-
Method Detail
-
getConstraint1
Constraint getConstraint1()
Gets the first constraint.- Returns:
- the constraint; non-null
-
getConstraint2
Constraint getConstraint2()
Gets the second constraint.- Returns:
- the constraint; non-null
-
-