Enum Class Comparison

java.lang.Object
java.lang.Enum<Comparison>
org.synchronoss.cpo.core.enums.Comparison
All Implemented Interfaces:
Serializable, Comparable<Comparison>, Constable

public enum Comparison extends Enum<Comparison>
The comparison operators for where clauses
  • Enum Constant Details

    • NONE

      public static final Comparison NONE
      No comparison operator defined
    • EQ

      public static final Comparison EQ
      The equals operator
    • LT

      public static final Comparison LT
      The less than operator
    • GT

      public static final Comparison GT
      The greater than operator
    • NEQ

      public static final Comparison NEQ
      The not equals operator
    • IN

      public static final Comparison IN
      The in operator
    • LIKE

      public static final Comparison LIKE
      The like operator
    • LTEQ

      public static final Comparison LTEQ
      The less than or equal to operator
    • GTEQ

      public static final Comparison GTEQ
      The greater than or equal to operator
    • EXISTS

      public static final Comparison EXISTS
      The exists operator
    • ISNULL

      public static final Comparison ISNULL
      The is null operator
  • Field Details

    • operator

      public final String operator
      The string operator in this enum
  • Method Details

    • values

      public static Comparison[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Comparison valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null