Enum Class SqlOperation

java.lang.Object
java.lang.Enum<SqlOperation>
dimstyl.orm.enums.SqlOperation
All Implemented Interfaces:
Serializable, Comparable<SqlOperation>, Constable

public enum SqlOperation extends Enum<SqlOperation>
Enum representing different SQL operations supported by the ORM framework.

This enum defines the various types of SQL operations that can be executed, such as creating tables, selecting all records, and deleting by ID.

Possible Values:

  • CREATE_TABLE - Represents an operation to create a new table in the database.
  • SELECT_ALL - Represents an operation to select all records from a database table.
  • DELETE_BY_ID - Represents an operation to delete a record from a table based on its primary key.
  • Enum Constant Details

    • CREATE_TABLE

      public static final SqlOperation CREATE_TABLE
      Represents an operation to create a new table in the database.
    • SELECT_ALL

      public static final SqlOperation SELECT_ALL
      Represents an operation to select all records from a database table.
    • DELETE_BY_ID

      public static final SqlOperation DELETE_BY_ID
      Represents an operation to delete a record from a table based on its primary key.
  • Constructor Details

    • SqlOperation

      private SqlOperation()
  • Method Details

    • values

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