|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.api.dml.Operators
public class Operators
The well known built-in operators for DFTermExpression.
| Nested Class Summary | |
|---|---|
static class |
Operators.AllDataOperator
Represents all data |
static class |
Operators.BetweenOperator
A special class for Between operator |
static class |
Operators.ErrorOperator
A special class for "ERROR" operator. |
static class |
Operators.IgnoreOperator
A special class for dumb IGNORE operator |
static class |
Operators.ListOperator
IN LIST and NOT IN LIST operators |
static class |
Operators.NullOperator
IS NULL/ IS NOT NULL operators |
static class |
Operators.SimpleFieldValuesOperator
Currently we support only "Field Operator [Value, [Value, ...]]" formats. |
static class |
Operators.SimpleLogicalOperator
Class for AND/OR operators |
static class |
Operators.SimpleTextOperator
|
static class |
Operators.StructureOperator
Class for all Structure based operators |
| Field Summary | |
|---|---|
static DFOperator |
ALL_DATA
A special operator without operands which represents all data (SELECT * FROM ...). |
static DFOperator |
AND
Logical AND operator. |
static DFOperator |
BETWEEN
Between operator - works for text, int, date and float |
static DFOperator |
CONTAINS
CONTAINS text based operator (a short cut for LIKE '%foo%') |
static DFOperator |
ENDS_WITH
ENDS_WITH text based operator (a short cut for LIKE '%foo') |
static DFOperator |
EQUALS
Equal operator - works for text, int, date |
static DFOperator |
ERROR
This is just an dump operator. |
static DFOperator |
FALSE
Unary FALSE operator - can be applied to boolean fields |
static DFOperator |
GREATER_THAN
Greater than operator - works for text, int, date and float |
static DFOperator |
GREATER_THAN_OR_EQUAL
Greater than or equal operator - works for text, int, date |
static DFOperator |
IGNORE
This is just dumb operator. |
static DFOperator |
IN_LIST
This operator takes two or more operands. |
static DFOperator |
LESS_THAN
Less than operator - works for text, int, date and float |
static DFOperator |
LESS_THAN_OR_EQUAL
Less than or equal operator - works for text, int, date |
static DFOperator |
LIKE
LIKE text based operator |
static DFOperator |
NOT_EQUALS
Not equal operator - works for text, int, date |
static DFOperator |
NOT_IN_LIST
This operator takes two or more operands. |
static DFOperator |
NOT_LIKE
NOT LIKE text based operator |
static DFOperator |
NOT_NULL
Unary operator - takes any field and test if the value is NOT NULL |
static DFOperator |
NULL
Unary operator - takes any field and test if the value is NULL |
static DFOperator |
OR
Logical OR operator. |
static DFOperator |
STARTS_WITH
STARTS_WITH text based operator (a short cut for LIKE 'foo%') |
static DFOperator |
STRUCTURE_EXACT
Structure search operator. |
static DFOperator |
STRUCTURE_EXACT_FRAGMENT
Structure search operator. |
static DFOperator |
STRUCTURE_PERFECT
Structure search operator. |
static DFOperator |
STRUCTURE_SIMILARITY
Structure search operator. |
static DFOperator |
STRUCTURE_SUBSTRUCTURE
Structure search operator. |
static DFOperator |
STRUCTURE_SUPERSTRUCTURE
Structure search operator. |
static DFOperator |
TRUE
Unary TRUE operator - can be applied to boolean fields |
| Constructor Summary | |
|---|---|
Operators()
|
|
| Method Summary | |
|---|---|
static List<DFOperator> |
getAll()
Get array of all operators currently registered into the system. |
static List<DFOperator> |
getAllIncludingSpecial()
Get all operators registered in the system including special operators (currently ERROR and IGNORE). |
static List<DFOperator> |
getAllLogical()
|
static List<DFOperator> |
getAllStructural(DFField field)
Get the appropriate structure search operators for the JChem table type |
static List<DFOperator> |
getOperatorsAcceptableFor(DFField field)
|
static boolean |
isAndOr(DFOperator operator)
Return true if operator is AND or OR, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final DFOperator EQUALS
public static final DFOperator NOT_EQUALS
public static final DFOperator LESS_THAN
public static final DFOperator LESS_THAN_OR_EQUAL
public static final DFOperator GREATER_THAN
public static final DFOperator GREATER_THAN_OR_EQUAL
public static final DFOperator LIKE
public static final DFOperator NOT_LIKE
public static final DFOperator STARTS_WITH
public static final DFOperator ENDS_WITH
public static final DFOperator CONTAINS
public static final DFOperator BETWEEN
public static final DFOperator AND
public static final DFOperator OR
public static final DFOperator TRUE
public static final DFOperator FALSE
public static final DFOperator NULL
public static final DFOperator NOT_NULL
public static final DFOperator IN_LIST
public static final DFOperator NOT_IN_LIST
public static final DFOperator STRUCTURE_PERFECT
DFField with
DFFieldStructureCapability, as the second operand is expected
constant Molecule value and as third operand it takes String with Chemical terms filter.
public static final DFOperator STRUCTURE_EXACT
STRUCTURE_PERFECT.
public static final DFOperator STRUCTURE_SUBSTRUCTURE
STRUCTURE_PERFECT.
public static final DFOperator STRUCTURE_SUPERSTRUCTURE
STRUCTURE_PERFECT.
public static final DFOperator STRUCTURE_SIMILARITY
STRUCTURE_PERFECT.
public static final DFOperator STRUCTURE_EXACT_FRAGMENT
STRUCTURE_PERFECT.
public static final DFOperator IGNORE
public static final DFOperator ERROR
public static final DFOperator ALL_DATA
DFTermExpression.ALL_DATA
| Constructor Detail |
|---|
public Operators()
| Method Detail |
|---|
public static List<DFOperator> getAll()
TODO P2: It will be possible to register operators into the DIF when this SPI will be defined.
This will be done together with new types of DFField registration.
public static List<DFOperator> getAllIncludingSpecial()
public static List<DFOperator> getAllStructural(DFField field)
field - The structure field
public static List<DFOperator> getAllLogical()
public static boolean isAndOr(DFOperator operator)
AND or OR, false otherwise.
operator - The operator to be tested.
public static List<DFOperator> getOperatorsAcceptableFor(DFField field)
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||