Enum CompareOperator

java.lang.Object
java.lang.Enum<CompareOperator>
org.castor.cpa.persistence.sql.query.condition.CompareOperator
All Implemented Interfaces:
Serializable, Comparable<CompareOperator>, java.lang.constant.Constable

public enum CompareOperator extends Enum<CompareOperator>
Enumeration of comparison operators.
Version:
$Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Author:
Ahmad Hassan, Ralf Joachim
  • Enum Constant Details

    • EQ

      public static final CompareOperator EQ
      Equal comparison operator.
    • NE

      public static final CompareOperator NE
      Not equal comparison operator.
    • LT

      public static final CompareOperator LT
      Less than comparison operator.
    • GE

      public static final CompareOperator GE
      Greater than or equal comparison operator.
    • GT

      public static final CompareOperator GT
      Greater than comparison operator.
    • LE

      public static final CompareOperator LE
      Less than or equal comparison operator.
  • Method Details

    • values

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

      public static CompareOperator valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • inverse

      public CompareOperator inverse()
      Returns the inverse comparison operator.
      Returns:
      Inverse comparison operator.
    • toString

      public String toString()
      Returns a string representation of the comparison operator in SQL syntax.
      Overrides:
      toString in class Enum<CompareOperator>
      Returns:
      String representation of the comparison operator in SQL syntax.