Enum Class SqlOperation
- All Implemented Interfaces:
Serializable
,Comparable<SqlOperation>
,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an operation to create a new table in the database.Represents an operation to delete a record from a table based on its primary key.Represents an operation to select all records from a database table. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlOperation
Returns the enum constant of this class with the specified name.static SqlOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Constructor Details
-
SqlOperation
private SqlOperation()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-