org.mmbase.storage.search
Interface FieldCompareConstraint

All Superinterfaces:
Constraint, FieldConstraint
All Known Subinterfaces:
CompareFieldsConstraint, FieldValueConstraint, FieldValueDateConstraint
All Known Implementing Classes:
BasicCompareFieldsConstraint, BasicFieldCompareConstraint, BasicFieldValueConstraint, BasicFieldValueDateConstraint

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.4 2005/04/25 14:56:57 pierre Exp $
Author:
Rob van Maris

Field Summary
static int EQUAL
          Operator 'equal'
static int GREATER
          Operator 'greater than'
static int GREATER_EQUAL
          Operator 'greater than or equal'
static int LESS
          Operator 'less than'
static int LESS_EQUAL
          Operator 'less than or equal'
static int LIKE
          Operator 'like'
static int NOT_EQUAL
          Operator 'not equal'
static String[] OPERATOR_DESCRIPTIONS
          Operator descriptions corresponding to the operator values: LESS, LESS_EQUAL, EQUAL, NOT_EQUAL, GREATER, GREATER_EQUAL, and LIKE
 
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
Operator 'less than'

See Also:
Constant Field Values

LESS_EQUAL

public static final int LESS_EQUAL
Operator 'less than or equal'

See Also:
Constant Field Values

EQUAL

public static final int EQUAL
Operator 'equal'

See Also:
Constant Field Values

NOT_EQUAL

public static final int NOT_EQUAL
Operator 'not equal'

See Also:
Constant Field Values

GREATER

public static final int GREATER
Operator 'greater than'

See Also:
Constant Field Values

GREATER_EQUAL

public static final int GREATER_EQUAL
Operator 'greater than or equal'

See Also:
Constant Field Values

LIKE

public static final int LIKE
Operator 'like'

See Also:
Constant Field Values

OPERATOR_DESCRIPTIONS

public static final String[] OPERATOR_DESCRIPTIONS
Operator descriptions corresponding to the operator values: LESS, LESS_EQUAL, EQUAL, NOT_EQUAL, GREATER, GREATER_EQUAL, and LIKE

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.8.1.20060716