|
Version: 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Operator
Predefined constants for various operators, used in SearchFilter search filters.
The format of the operator unique identifiers is similar to the LSID syntax (except for the missing prefix URN:LSID:):
org.generationcp.demeter:operators:operator-name
The table below shows how the operators are used:
| Operator | Description | Valid Attribute Type(s) | Valid Value Type(s) |
|---|---|---|---|
| EQUAL | operator for equality, the default operator | String, Integer | String, Integer |
| LIKE | operator similar to the SQL's LIKE operator. It can contain some wild-characters. | String | String |
| GT | operator for "greater-than" | Integer | Integer |
| GT_EQUAL | operator for "greater-than-or-equal-to" | Integer | Integer |
| LT | operator for "lower-than" | Integer | Integer |
| LT_EQUAL | operator for "lower-than-or-equal-to" | Integer | Integer |
| Field Summary | |
|---|---|
static java.lang.String |
CONSTRAINT
An operator for "constraint". |
static java.lang.String |
EQUAL
An operator for equality. |
static java.lang.String |
EQUAL_IN
An operator for "equal_in". |
static java.lang.String |
GT
An operator for "greater-than". |
static java.lang.String |
GT_EQUAL
An operator for "greater-than-or-equal-to". |
static java.lang.String |
ID
An ontology term defining a unique identifier for an operator for "id". |
static java.lang.String |
IN
An operator for "in". |
static java.lang.String |
LIKE
An operator similar to the SQL's LIKE operator. |
static java.lang.String |
LIKE_IN
An operator for "like_in". |
static java.lang.String |
LT
An operator for "lower-than". |
static java.lang.String |
LT_EQUAL
An operator for "lower-than-or-equal-to". |
static java.lang.String |
NAMESPACE
A string representing the namespace part of the LSIDs used for the ontology terms defined by this interface. |
static java.lang.String |
NOT_EQUAL
An operator for not equality. |
static java.lang.String |
PREFIX
A string prefixed to all ontology terms defined by this interface. |
static java.lang.String |
SUBSTR
An operator expressing "contains" (or: a value is a substring of the attribute being search against). |
static java.lang.String |
UID
An operator for "uid". |
static java.lang.String |
UID_IN
Deprecated. As of 2.7.0, replaced by EQUAL_IN. |
| Field Detail |
|---|
static final java.lang.String NAMESPACE
static final java.lang.String PREFIX
static final java.lang.String EQUAL
static final java.lang.String NOT_EQUAL
static final java.lang.String GT
static final java.lang.String GT_EQUAL
static final java.lang.String LT
static final java.lang.String LT_EQUAL
static final java.lang.String SUBSTR
static final java.lang.String LIKE
static final java.lang.String UID
DataSource.find() method will return a SimpleIdentifier object
that have a given unique identifier(s). Added by Guy Davenport.
static final java.lang.String ID
DataSource.find() method will
return a SimpleIdentifier object that have a given object identifier(s)
within the namespace defined by the dataTypeIdentifier parameter in the
DataSource.find() method .
Added by Guy Davenport.
static final java.lang.String IN
DataSource.find() method will return objects that have the
given objects in the collection, map or array defined by the
attributeNames parameter. Added by Guy Davenport.
static final java.lang.String UID_IN
EQUAL_IN. DataSource.find() method will return objects that have the
given unique identifiers in the collection, map or array
defined by the attributeNames parameter. Added by Guy Davenport.
static final java.lang.String EQUAL_IN
DataSource.find() method will return objects that are equal to
at least one item in a collection, map or array.
This should be used as a replacement of the UID_IN
operator.
Added by Martin Senger.
static final java.lang.String LIKE_IN
DataSource.find() method will return objects that are "like"
at least one item in a collection, map or array. The "like" is
the same as defined by the LIKE operator - but here it
applies to any of the items. Added by Martin Senger.
static final java.lang.String CONSTRAINT
DataSource.find() method will return objects obey the
constraint(s) provided by the values parameter in the search
SearchFilter. These values must implement the one of the
sub-interfaces of domain model Constraint object Added by Guy Davenport.
|
Version: 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||