public enum ExecuteType extends Enum<ExecuteType>
Enum Constant and Description |
---|
BATCH
A batch statement is being executed.
|
DDL
A DDL statement is being executed.
|
OTHER
An other (unknown) type of database interaction is being executed.
|
READ
A
SELECT query is being executed. |
ROUTINE
A routine (stored procedure or function) is being executed.
|
WRITE
An
INSERT , UPDATE , DELETE ,
MERGE query is being executed. |
Modifier and Type | Method and Description |
---|---|
static ExecuteType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecuteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecuteType READ
SELECT
query is being executed.
This may also apply to plain SQL WITH .. SELECT
queries
(selections with common table expressions), FETCH
queries
and other types of vendor-specific queries.
public static final ExecuteType WRITE
INSERT
, UPDATE
, DELETE
,
MERGE
query is being executed.
This may also apply to plain SQL REPLACE
,
UPSERT
and other vendor-specific queries.
public static final ExecuteType DDL
Currently, this only applies to TRUNCATE
statements
public static final ExecuteType BATCH
public static final ExecuteType ROUTINE
public static final ExecuteType OTHER
public static ExecuteType[] values()
for (ExecuteType c : ExecuteType.values()) System.out.println(c);
public static ExecuteType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All Rights Reserved.