Version: 3.5.0

org.generationcp.core.ontology
Interface Operator


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

Version:
$Id: Operator.html 19678 2010-07-23 23:41:44Z jbmorales $
Author:
Martin Senger

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

NAMESPACE

static final java.lang.String NAMESPACE
A string representing the namespace part of the LSIDs used for the ontology terms defined by this interface.

See Also:
Constant Field Values

PREFIX

static final java.lang.String PREFIX
A string prefixed to all ontology terms defined by this interface.

See Also:
Constant Field Values

EQUAL

static final java.lang.String EQUAL
An operator for equality. This is a default operator.

See Also:
Constant Field Values

NOT_EQUAL

static final java.lang.String NOT_EQUAL
An operator for not equality. Added by Guy Davenport.

See Also:
Constant Field Values

GT

static final java.lang.String GT
An operator for "greater-than".

See Also:
Constant Field Values

GT_EQUAL

static final java.lang.String GT_EQUAL
An operator for "greater-than-or-equal-to". Added by Guy Davenport.

See Also:
Constant Field Values

LT

static final java.lang.String LT
An operator for "lower-than".

See Also:
Constant Field Values

LT_EQUAL

static final java.lang.String LT_EQUAL
An operator for "lower-than-or-equal-to". Added by Guy Davenport.

See Also:
Constant Field Values

SUBSTR

static final java.lang.String SUBSTR
An operator expressing "contains" (or: a value is a substring of the attribute being search against).

See Also:
Constant Field Values

LIKE

static final java.lang.String LIKE
An operator similar to the SQL's LIKE operator. It can contain some wild-characters.

See Also:
Constant Field Values

UID

static final java.lang.String UID
An operator for "uid". For the given data type and attribute using this operator the DataSource.find() method will return a SimpleIdentifier object that have a given unique identifier(s). Added by Guy Davenport.

See Also:
Constant Field Values

ID

static final java.lang.String ID
An ontology term defining a unique identifier for an operator for "id". For the given data type and attribute using this operator the 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.

See Also:
Constant Field Values

IN

static final java.lang.String IN
An operator for "in". For the given data type and attribute using this operator the 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.

See Also:
Constant Field Values

UID_IN

static final java.lang.String UID_IN
Deprecated. As of 2.7.0, replaced by EQUAL_IN.

An operator for "uid_in". For the given data type and attribute using this operator the 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.

See Also:
Constant Field Values

EQUAL_IN

static final java.lang.String EQUAL_IN
An operator for "equal_in". For the given data type and attribute using this operator the 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.

See Also:
Constant Field Values

LIKE_IN

static final java.lang.String LIKE_IN
An operator for "like_in". For the given data type and attribute using this operator the 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.

See Also:
Constant Field Values

CONSTRAINT

static final java.lang.String CONSTRAINT
An operator for "constraint". For the given data type and attribute using this operator the 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.

See Also:
Constant Field Values

Version: 3.5.0

Submit a bug or feature
Generated: Fri Jul 23 18:24:48 CDT 2010