01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.storage.search;
11:
12: /**
13: * A constraint that restricts the value of a stepfield to be in a specified
14: * range of values (numerical or string).
15: * <p>
16: * This corresponds to the use of "between ... and ..." in SQL SELECT-syntax.
17: *
18: * @author Rob van Maris
19: * @version $Id: FieldValueBetweenConstraint.java,v 1.6 2004/12/23 17:31:05 pierre Exp $
20: * @since MMBase-1.7
21: */
22: public interface FieldValueBetweenConstraint extends FieldConstraint {
23:
24: /**
25: * Gets the value of the lower limit of the range specified for this
26: * constraint.
27: */
28: Object getLowerLimit();
29:
30: /**
31: * Gets the value of the upper limit of the range specified for this
32: * constraint.
33: */
34: Object getUpperLimit();
35:
36: /**
37: * Returns a string representation of this FieldValueBetweenConstraint.
38: * The string representation has the form
39: * "FieldValueBetweenConstraint(inverse:<:inverse>, field:<field>,
40: * casesensitive:<casesensitive>,
41: * lower:<lowerLimit>, upper:<upperLimit>)"
42: * where
43: * <ul>
44: * <li><em><inverse></em>is the value returned by
45: * {@link #isInverse isInverse()}
46: * <li><em><field></em> is the field alias returned by
47: * <code>FieldConstraint#getField().getAlias()</code>
48: * <li><em><casesensitive></em> is the value returned by
49: * {@link FieldConstraint#isCaseSensitive isCaseSensitive()}
50: * <li><em><lowerLimit></em> is the values returned by
51: * {@link #getLowerLimit getValues()}
52: * <li><em><upperLimit></em> is the values returned by
53: * {@link #getUpperLimit getValues()}
54: * </ul>
55: *
56: * @return A string representation of this FieldValueInConstraint.
57: */
58: public String toString();
59:
60: }
|