edu.upc.dama.dex.core
Class Operation

java.lang.Object
  extended by java.lang.Enum
      extended by edu.upc.dama.dex.core.Operation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

Deprecated. As of release 1.2, replace by 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
extends java.lang.Enum

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.

See Also:
Serialized Form
Author:
Sparsity Technologies

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

LT

public static final Operation LT
Deprecated. 
Less than.


LE

public static final Operation LE
Deprecated. 
Less or equal than.


EQ

public static final Operation EQ
Deprecated. 
Equal to.


GE

public static final Operation GE
Deprecated. 
Greater or equal than.


GT

public static final Operation GT
Deprecated. 
Greater than.


NE

public static final Operation NE
Deprecated. 
Not equal to.


BETWEEN

public static final Operation BETWEEN
Deprecated. 
Between


LIKE

public static final Operation LIKE
Deprecated. 
Like.

String operator. It allows for searching substrings. It is case sensitive.

Ex:

 'AAABBBCCCD' LIKE 'BBB'   returns true
 'AAABBBCCCD' LIKE 'bbb'   returns false
 'AAABBBCCCD' LIKE 'E'     returns false
 


ILIKE

public static final Operation ILIKE
Deprecated. 
Insensitive like.

String operator. It allows for searching substrings. It is not case sensitive.

Ex:

 'AAABBBCCCD' ILIKE 'BBB'   returns true
 'AAABBBCCCD' ILIKE 'bbb'   returns true
 'AAABBBCCCD' ILIKE 'E'     returns false
 


ERE

public static final Operation ERE
Deprecated. 
Regular expression.

See Graph.OPERATION_ERE.

Method Detail

values

public static Operation[] values()
Deprecated. 

valueOf

public static Operation valueOf(java.lang.String name)
Deprecated. 

toShort

public short toShort()
Deprecated. 
Gets the short representation of the Operation

Returns:
The short representation of the Operation

satisfy

public boolean satisfy(Value v)
Deprecated. 
Gets whether the Operation is allowed for the give Value.

For example:

 ILIKE.satisfy(new Value(3)) == false
 LT.satisfy(new Value(2.89)) == true
 

Parameters:
v - Value to satisfy the Operation.
Returns:
true if the type of the given Value makes sense for the Operation.