Enum Class Operator

java.lang.Object
java.lang.Enum<Operator>
org.litebridgedb.db.spi.query.Operator
All Implemented Interfaces:
Serializable, Comparable<Operator>, Constable

public enum Operator extends Enum<Operator>
Enum of various operators that can be used in database query conditions.

The operators define the comparison or logical operations used in constructing query conditions. They are primarily used in conjunction with the Condition class to define query filters.

List of supported operators:

  • EQ: Equality comparison.
  • NEQ: Inequality comparison.
  • GT: "Greater than" comparison.
  • GTE: "Greater than or equal to" comparison.
  • LT: "Less than" comparison.
  • LTE: "Less than or equal to" comparison.
  • IN: Inclusion in a set.
  • IS_NULL: Checks if a value is null.
  • IS_NOT_NULL: Checks if a value is not null.
  • USING: Used to specify columns for joining tables.
See Also:
  • Enum Constant Details

    • EQ

      public static final Operator EQ
      Equals
    • NEQ

      public static final Operator NEQ
      Not equals
    • GT

      public static final Operator GT
      Greater than
    • GTE

      public static final Operator GTE
      Greater than or equal to
    • LT

      public static final Operator LT
      Less than
    • LTE

      public static final Operator LTE
      Less than or equal to
    • IN

      public static final Operator IN
      Inclusion in a set
    • IS_NULL

      public static final Operator IS_NULL
      Checks if a value is null
    • IS_NOT_NULL

      public static final Operator IS_NOT_NULL
      Checks if a value is not null
    • USING

      public static final Operator USING
      Used to specify columns for joining tables.
  • Method Details

    • values

      public static Operator[] 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 Operator 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