java.lang.Object
java.lang.Enum<SQLOperator>
com.github.tadukoo.database.mysql.syntax.conditional.SQLOperator
All Implemented Interfaces:
Serializable, Comparable<SQLOperator>, Constable

public enum SQLOperator extends Enum<SQLOperator>
SQL Operator represents a conditional operator in MySQL
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Enum Constant Details

    • EQUAL

      public static final SQLOperator EQUAL
      Equal to (=)
    • NOT_EQUAL

      public static final SQLOperator NOT_EQUAL
      Not Equal to (!=)
    • GREATER_THAN

      public static final SQLOperator GREATER_THAN
      Greater Than (>)
    • LESS_THAN

      public static final SQLOperator LESS_THAN
      Less Than (<)
    • GREATER_THAN_OR_EQUAL

      public static final SQLOperator GREATER_THAN_OR_EQUAL
      Greater Than or Equal To (>=)
    • LESS_THAN_OR_EQUAL

      public static final SQLOperator LESS_THAN_OR_EQUAL
      Less Than or Equal To (<=)
    • BETWEEN

      public static final SQLOperator BETWEEN
      Between a given range (BETWEEN)
    • LIKE

      public static final SQLOperator LIKE
      Search for a pattern (LIKE)
    • IN

      public static final SQLOperator IN
      To specify multiple possible values for a column (IN)
  • Field Details

    • operator

      private final String operator
      The operator string
  • Constructor Details

    • SQLOperator

      private SQLOperator(String operator)
      Constructs a new SQLOperator with the given parameters
      Parameters:
      operator - The operator string
  • Method Details

    • values

      public static SQLOperator[] 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 SQLOperator 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
    • fromString

      public static SQLOperator fromString(String operator)
      Grab a SQLOperator using the given string to match on the operator string
      Parameters:
      operator - The operator string to match on
      Returns:
      The found SQLOperator, or null if none was found
    • toString

      public String toString()
      Overrides:
      toString in class Enum<SQLOperator>