|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface FieldValueConstraint
A constraint that compares a stepfield value with a fixed value.
This corresponds with comparison operators <, =, > and LIKE in SQL SELECT-syntax.
| Field Summary |
|---|
| Fields inherited from interface org.mmbase.storage.search.FieldCompareConstraint |
|---|
EQUAL, GREATER, GREATER_EQUAL, LESS, LESS_EQUAL, LIKE, NOT_EQUAL, OPERATOR_DESCRIPTIONS, REGEXP |
| Method Summary | |
|---|---|
Object |
getValue()
Gets the value to compare with. |
boolean |
matches(Object value)
Determines whether a certain given value would match this constraint. |
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, setUnmodifiable |
| Method Detail |
|---|
Object getValue()
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:
String toString()
isInverse()
FieldConstraint#getField().getAlias(), or
FieldConstraint#getField().getFieldName()
when the former is null.
isCaseSensitive()
getValue()
toString in class Objectboolean matches(Object value)
FieldConstraint
matches in interface FieldConstraint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||