| org.mmbase.storage.search.FieldValueConstraint
All known Subclasses: org.mmbase.storage.search.implementation.BasicFieldValueConstraint,
FieldValueConstraint | public interface FieldValueConstraint extends FieldCompareConstraint(Code) | | A constraint that compares a stepfield value with a fixed value.
This corresponds with comparison operators <, =, > and LIKE in SQL SELECT-syntax.
author: Rob van Maris version: $Id: FieldValueConstraint.java,v 1.4 2003/11/26 14:11:57 robmaris Exp $ since: MMBase-1.7 |
Method Summary | |
Object | getValue() Gets the value to compare with. | public String | toString() Returns a string representation of this FieldValueConstraint. |
getValue | Object getValue()(Code) | | 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()(Code) | | 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
FieldValueConstraint.isInverse 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
FieldConstraint.isCaseSensitive isCaseSensitive()
- <operator> is the value returned by
(@link FieldCompareConstraint#getOperator getOperator()}
- <value> is the value returned by
FieldValueConstraint.getValue getValue()
A string representation of this FieldValueConstraint. |
|
|