01: /*
02: * Copyright 2006 Day Management AG, Switzerland. All rights reserved.
03: */
04: package javax.jcr.query.qom;
05:
06: /**
07: * Performs a logical conjunction of two other constraints.
08: * <p/>
09: * To satisfy the <code>And</code> constraint, a node-tuple must satisfy both
10: * {@link #getConstraint1 constraint1} and {@link #getConstraint2 constraint2}.
11: *
12: * @since JCR 2.0
13: */
14: public interface And extends Constraint {
15: /**
16: * Gets the first constraint.
17: *
18: * @return the constraint; non-null
19: */
20: public Constraint getConstraint1();
21:
22: /**
23: * Gets the second constraint.
24: *
25: * @return the constraint; non-null
26: */
27: public Constraint getConstraint2();
28: }
29:
30: // EOF
|