Enum Class SQLConjunctiveOperator

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

public enum SQLConjunctiveOperator extends Enum<SQLConjunctiveOperator>
SQL Conjunctive Operator represents operators that join conditional statements together.
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Enum Constant Details

  • Field Details

    • operator

      private final String operator
      The operator string
  • Constructor Details

    • SQLConjunctiveOperator

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

    • values

      public static SQLConjunctiveOperator[] 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 SQLConjunctiveOperator 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 SQLConjunctiveOperator fromString(String operator)
      Searches for an operator that matches the given operator string
      Parameters:
      operator - The operator string to match on
      Returns:
      The found operator, or null if none could be found
    • toString

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