org.mmbase.storage.search
Interface FieldCompareConstraint

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

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 41186 2010-02-26 17:54:31Z michiel $
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
static int REGEXP
           
 
Method Summary
 int getOperator()
          Gets the operator used to compare values.
 
Methods inherited from interface org.mmbase.storage.search.FieldConstraint
getField, isCaseSensitive, matches
 
Methods inherited from interface org.mmbase.storage.search.Constraint
equals, getBasicSupportLevel, hashCode, isInverse, setUnmodifiable
 

Field Detail

LESS

static final int LESS
Operator 'less than'

See Also:
Constant Field Values

LESS_EQUAL

static final int LESS_EQUAL
Operator 'less than or equal'

See Also:
Constant Field Values

EQUAL

static final int EQUAL
Operator 'equal'

See Also:
Constant Field Values

NOT_EQUAL

static final int NOT_EQUAL
Operator 'not equal'

See Also:
Constant Field Values

GREATER

static final int GREATER
Operator 'greater than'

See Also:
Constant Field Values

GREATER_EQUAL

static final int GREATER_EQUAL
Operator 'greater than or equal'

See Also:
Constant Field Values

LIKE

static final int LIKE
Operator 'like'

See Also:
Constant Field Values

REGEXP

static final int REGEXP
See Also:
Constant Field Values

OPERATOR_DESCRIPTIONS

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

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 2.0-SNAPSHOT - null