|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FieldCompareConstraint
A constraint that compares a stepfield value with another value.
This corresponds with comparison operators <, =, > and LIKE in SQL SELECT-syntax.
| 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 |
|---|
static final int LESS
static final int LESS_EQUAL
static final int EQUAL
static final int NOT_EQUAL
static final int GREATER
static final int GREATER_EQUAL
static final int LIKE
static final int REGEXP
static final String[] OPERATOR_DESCRIPTIONS
LESS, LESS_EQUAL, EQUAL, NOT_EQUAL,
GREATER, GREATER_EQUAL, and LIKE
| Method Detail |
|---|
int getOperator()
LIKE is allowed only when the associated field
is of string type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||