org.eclipse.stardust.engine.core.persistence
Class Operator

java.lang.Object
  extended by org.eclipse.stardust.common.StringKey
      extended by org.eclipse.stardust.engine.core.persistence.Operator
All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Operator.Binary, Operator.Ternary, Operator.Unary

public abstract class Operator
extends org.eclipse.stardust.common.StringKey

Enum class listing all currently supported comparison operators.

Version:
$Revision$
Author:
rsauer
See Also:
Serialized Form

Nested Class Summary
static class Operator.Binary
          Enum class listing all currently supported binary comparison operators.
static class Operator.Ternary
          Enum class listing all currently supported ternary comparison operators.
static class Operator.Unary
          Enum class listing all currently supported unary comparison operators.
 
Field Summary
static Operator.Ternary BETWEEN
          Resolves to true if the operand greater than or equal the first given value and less than or equal the second given value.
static Operator.Binary GREATER_OR_EQUAL
          Resolves to true if the operand is greater than or equal the given value.
static Operator.Binary GREATER_THAN
          Resolves to true if the operand is greater than the given value.
static Operator.Binary IN
          Resolves to true if the operand is equal one of the values in the given list.
static Operator.Binary IS_EQUAL
          Resolves to true if the operand is equal the given value.
static Operator.Unary IS_NOT_NULL
          Resolves to true if the operand does have a value.
static Operator.Unary IS_NULL
          Resolves to true if the operand does not have a value.
static Operator.Binary LESS_OR_EQUAL
          Resolves to true if the operand less than or equal the given value.
static Operator.Binary LESS_THAN
          Resolves to true if the operand is less than the given value.
static Operator.Binary LIKE
          Resolves to true if the value of the operand is matched by the given pattern.
static Operator.Binary NOT_ANY_OF
          Resolves to true if the operand does not match any of the values in the given list.
static Operator.Binary NOT_EQUAL
          Resolves to true if the operand is not equal the given value.
static Operator.Binary NOT_IN
          Resolves to true if the operand is not equal any of the values in the given list.
 
Method Summary
abstract  boolean isBinary()
          Indicates if the operator is binary, i.e.
abstract  boolean isTernary()
          Indicates if the operator is ternary, i.e.
abstract  boolean isUnary()
          Indicates if the operator is unary, i.e.
 
Methods inherited from class org.eclipse.stardust.common.StringKey
compareTo, equals, getId, getKey, getKey, getKeys, getKeys, getName, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

IS_NULL

public static final Operator.Unary IS_NULL
Resolves to true if the operand does not have a value.


IS_NOT_NULL

public static final Operator.Unary IS_NOT_NULL
Resolves to true if the operand does have a value.


IS_EQUAL

public static final Operator.Binary IS_EQUAL
Resolves to true if the operand is equal the given value.


NOT_EQUAL

public static final Operator.Binary NOT_EQUAL
Resolves to true if the operand is not equal the given value.


LESS_THAN

public static final Operator.Binary LESS_THAN
Resolves to true if the operand is less than the given value.


LESS_OR_EQUAL

public static final Operator.Binary LESS_OR_EQUAL
Resolves to true if the operand less than or equal the given value.


GREATER_THAN

public static final Operator.Binary GREATER_THAN
Resolves to true if the operand is greater than the given value.


GREATER_OR_EQUAL

public static final Operator.Binary GREATER_OR_EQUAL
Resolves to true if the operand is greater than or equal the given value.


LIKE

public static final Operator.Binary LIKE
Resolves to true if the value of the operand is matched by the given pattern. Pattern syntax may be dependent on context, i.e. regular expressions or SQL LIKE patterns.


IN

public static final Operator.Binary IN
Resolves to true if the operand is equal one of the values in the given list.


NOT_IN

public static final Operator.Binary NOT_IN
Resolves to true if the operand is not equal any of the values in the given list.


NOT_ANY_OF

public static final Operator.Binary NOT_ANY_OF
Resolves to true if the operand does not match any of the values in the given list.


BETWEEN

public static final Operator.Ternary BETWEEN
Resolves to true if the operand greater than or equal the first given value and less than or equal the second given value.

Method Detail

isUnary

public abstract boolean isUnary()
Indicates if the operator is unary, i.e. supports no comparison operands.

Returns:
true if the operator is unary, else false.

isBinary

public abstract boolean isBinary()
Indicates if the operator is binary, i.e. supports one comparison operand.

Returns:
true if the operator is binary, else false.

isTernary

public abstract boolean isTernary()
Indicates if the operator is ternary, i.e. supports two comparison operands.

Returns:
true if the operator is ternary, else false.


Copyright © 2017 Eclipse Stardust. All Rights Reserved.