Enum Class SQLColumnOperation

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

public enum SQLColumnOperation extends Enum<SQLColumnOperation>
SQLColumnOperation represents an operation that can be performed on a column in MySQL
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)
  • Enum Constant Details

  • Field Details

    • type

      private final String type
      The type string
  • Constructor Details

    • SQLColumnOperation

      private SQLColumnOperation(String type)
      Constructs a new SQLColumnOperation from the given parameters
      Parameters:
      type - The type string
  • Method Details

    • values

      public static SQLColumnOperation[] 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 SQLColumnOperation 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
    • fromType

      public static SQLColumnOperation fromType(String type)
      Find a SQLColumnOperation by its type string
      Parameters:
      type - The type string
      Returns:
      The found SQLColumnOperation or null
    • toString

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