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

Field Summary
static int EQUAL
           
static int GREATER
           
static int GREATER_EQUAL
           
static int LESS
           
static int LESS_EQUAL
           
static int LIKE
           
static int NOT_EQUAL
           
 
Method Summary
 int getOperator()
          Gets the operator used to compare values.
 
Methods inherited from interface org.mmbase.storage.search.FieldConstraint
getField, isCaseSensitive
 
Methods inherited from interface org.mmbase.storage.search.Constraint
equals, getBasicSupportLevel, hashCode, isInverse
 

Field Detail

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
Method Detail

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