|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Enum
edu.upc.dama.dex.core.Operation
Graph.OPERATION_LT, Graph.OPERATION_LE,
Graph.OPERATION_EQ, Graph.OPERATION_GE,
Graph.OPERATION_GT, Graph.OPERATION_NE,
Graph.OPERATION_LIKE, and Graph.OPERATION_ILIKE.
@Deprecated public final class Operation
Logical operations in select Graph methods.
Some DEX classes have advanced methods which
set logical conditions on their results. These conditions are
expressed by means of Operations and Values.
This enumeration class contains all the valid operations.
| Field Summary | |
|---|---|
static Operation |
BETWEEN
Deprecated. Between |
static Operation |
EQ
Deprecated. Equal to. |
static Operation |
ERE
Deprecated. Regular expression. |
static Operation |
GE
Deprecated. Greater or equal than. |
static Operation |
GT
Deprecated. Greater than. |
static Operation |
ILIKE
Deprecated. Insensitive like. |
static Operation |
LE
Deprecated. Less or equal than. |
static Operation |
LIKE
Deprecated. Like. |
static Operation |
LT
Deprecated. Less than. |
static Operation |
NE
Deprecated. Not equal to. |
| Method Summary | |
|---|---|
boolean |
satisfy(Value v)
Deprecated. Gets whether the Operation is allowed for the give
Value. |
short |
toShort()
Deprecated. Gets the short representation of the Operation |
static Operation |
valueOf(java.lang.String name)
Deprecated. |
static Operation[] |
values()
Deprecated. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Operation LT
public static final Operation LE
public static final Operation EQ
public static final Operation GE
public static final Operation GT
public static final Operation NE
public static final Operation BETWEEN
public static final Operation LIKE
String operator. It allows for searching substrings. It is case sensitive.
Ex:
'AAABBBCCCD' LIKE 'BBB' returnstrue'AAABBBCCCD' LIKE 'bbb' returnsfalse'AAABBBCCCD' LIKE 'E' returnsfalse
public static final Operation ILIKE
String operator. It allows for searching substrings. It is not case sensitive.
Ex:
'AAABBBCCCD' ILIKE 'BBB' returnstrue'AAABBBCCCD' ILIKE 'bbb' returnstrue'AAABBBCCCD' ILIKE 'E' returnsfalse
public static final Operation ERE
See Graph.OPERATION_ERE.
| Method Detail |
|---|
public static Operation[] values()
public static Operation valueOf(java.lang.String name)
public short toShort()
short representation of the Operation
short representation of the Operationpublic boolean satisfy(Value v)
Operation is allowed for the give
Value.
For example:
ILIKE.satisfy(new Value(3)) == false LT.satisfy(new Value(2.89)) == true
v - Value to satisfy the Operation.
true if the type of the given Value
makes sense for the Operation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||