org.mmbase.storage.search
Interface FieldValueConstraint

All Superinterfaces:
Constraint, FieldCompareConstraint, FieldConstraint
All Known Implementing Classes:
BasicFieldValueConstraint

public interface FieldValueConstraint
extends FieldCompareConstraint

A constraint that compares a stepfield value with a fixed value.

This corresponds with comparison operators <, =, > and LIKE in SQL SELECT-syntax.

Since:
MMBase-1.7
Version:
$Id: FieldValueConstraint.java,v 1.4 2003/11/26 14:11:57 robmaris Exp $
Author:
Rob van Maris

Field Summary
 
Fields inherited from interface org.mmbase.storage.search.FieldCompareConstraint
EQUAL, GREATER, GREATER_EQUAL, LESS, LESS_EQUAL, LIKE, NOT_EQUAL
 
Method Summary
 java.lang.Object getValue()
          Gets the value to compare with.
 java.lang.String toString()
          Returns a string representation of this FieldValueConstraint.
 
Methods inherited from interface org.mmbase.storage.search.FieldCompareConstraint
getOperator
 
Methods inherited from interface org.mmbase.storage.search.FieldConstraint
getField, isCaseSensitive
 
Methods inherited from interface org.mmbase.storage.search.Constraint
equals, getBasicSupportLevel, hashCode, isInverse
 

Method Detail

getValue

public java.lang.Object getValue()
Gets the value to compare with. Depending on the field type, the value is of type String or Number.

If the associated field type is of string type, when used in combination with the operator LIKE, this may contain the following wildcard characters as well:


toString

public java.lang.String toString()
Returns a string representation of this FieldValueConstraint. The string representation has the form "FieldValueConstraint(inverse:<:inverse>, field:<field>, casesensitive:<casesensitive>, operator:<operator>, value:<value>)" where

Returns:
A string representation of this FieldValueConstraint.


MMBase build 1.7.1.20041002