- All Implemented Interfaces:
Serializable,Comparable<ExecuteType>,Constable
The type of database interaction that is being executed with this context.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA batch statement is being executed.A DDL statement is being executed.An other (unknown) type of database interaction is being executed.ASELECTquery is being executed.A routine (stored procedure or function) is being executed.AnINSERT,UPDATE,DELETE,MERGEquery is being executed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecuteTypeReturns the enum constant of this class with the specified name.static ExecuteType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ
ASELECTquery is being executed.This may also apply to plain SQL
WITH … SELECTqueries (selections with common table expressions),FETCHqueries and other types of vendor-specific queries. -
WRITE
AnINSERT,UPDATE,DELETE,MERGEquery is being executed.This may also apply to plain SQL
REPLACE,UPSERTand other vendor-specific queries. -
DDL
A DDL statement is being executed. -
BATCH
A batch statement is being executed. -
ROUTINE
A routine (stored procedure or function) is being executed. -
OTHER
An other (unknown) type of database interaction is being executed.
-
-
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
-