org.mmbase.storage.search
Interface FieldValueConstraint
- All Superinterfaces:
- Constraint, FieldCompareConstraint, FieldConstraint
- All Known Subinterfaces:
- FieldValueDateConstraint
- All Known Implementing Classes:
- BasicFieldValueConstraint, BasicFieldValueDateConstraint
- 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
|
Method Summary |
Object |
getValue()
Gets the value to compare with. |
String |
toString()
Returns a string representation of this FieldValueConstraint. |
getValue
public 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:
- % for any string
- _ for a single character
toString
public 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
- <inverse>is the value returned by
isInverse()
- <field> is the field alias returned by
FieldConstraint#getField().getAlias(), or
FieldConstraint#getField().getFieldName()
when the former is null.
- <casesensitive> is the value returned by
isCaseSensitive()
- <operator> is the value returned by
(@link FieldCompareConstraint#getOperator getOperator()}
- <value> is the value returned by
getValue()
- Returns:
- A string representation of this FieldValueConstraint.
MMBase build 1.8.1.20060716