org.mmbase.storage.search
Interface FieldCompareConstraint
- All Superinterfaces:
- Constraint, FieldConstraint
- All Known Subinterfaces:
- CompareFieldsConstraint, FieldValueConstraint
- All Known Implementing Classes:
- BasicCompareFieldsConstraint, BasicFieldCompareConstraint, BasicFieldValueConstraint
- public interface FieldCompareConstraint
- extends FieldConstraint
A constraint that compares a stepfield value with another value.
This corresponds with comparison operators <, =, > and LIKE in SQL SELECT-syntax.
- Since:
- MMBase-1.7
- Version:
- $Id: FieldCompareConstraint.java,v 1.3 2003/03/10 11:50:45 pierre Exp $
- Author:
- Rob van Maris
|
Method Summary |
int |
getOperator()
Gets the operator used to compare values. |
LESS
public static final int LESS
- See Also:
- Constant Field Values
LESS_EQUAL
public static final int LESS_EQUAL
- See Also:
- Constant Field Values
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
NOT_EQUAL
public static final int NOT_EQUAL
- See Also:
- Constant Field Values
GREATER
public static final int GREATER
- See Also:
- Constant Field Values
GREATER_EQUAL
public static final int GREATER_EQUAL
- See Also:
- Constant Field Values
LIKE
public static final int LIKE
- See Also:
- Constant Field Values
getOperator
public int getOperator()
- Gets the operator used to compare values.
This must be one of the values declared here.
The value
LIKE is allowed only when the associated field
is of string type.
MMBase build 1.7.1.20041002