- All Implemented Interfaces:
Serializable
,Comparable<LocalStatementType>
,Constable
Statement types.
NOTE: Jaybird may take shortcuts during detection (e.g. only look at first keyword), so an invalid statement might be classified anyway.
The types of this enum are decided by the needs of Jaybird, and do not necessarily cover all statement types.
- Since:
- 5
- Author:
- Mark Rotteveel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDELETE
statement.EXECUTE PROCEDURE
statement.COMMIT [WORK]
(i.e.ROLLBACK [WORK]
(i.e.INSERT
statement.MERGE
statement.No specific classification applied (i.e.SELECT
statement, including selectable stored procedures.SET TRANSACTION
statement.Null-state before detection.UPDATE
statement (orUPDATE OR INSERT
before detection is complete).UPDATE OR INSERT
statement. -
Method Summary
Modifier and TypeMethodDescriptionClass of the statement.static LocalStatementType
Returns the enum constant of this class with the specified name.static LocalStatementType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Null-state before detection. -
SELECT
SELECT
statement, including selectable stored procedures. -
EXECUTE_PROCEDURE
EXECUTE PROCEDURE
statement. -
UPDATE
UPDATE
statement (orUPDATE OR INSERT
before detection is complete). -
DELETE
DELETE
statement. -
INSERT
INSERT
statement. -
UPDATE_OR_INSERT
UPDATE OR INSERT
statement. -
MERGE
MERGE
statement. -
HARD_COMMIT
COMMIT [WORK]
(i.e. withoutRETAIN
).- Since:
- 6
-
HARD_ROLLBACK
ROLLBACK [WORK]
(i.e. withoutRETAIN
orTO SAVEPOINT ...
).- Since:
- 6
-
SET_TRANSACTION
SET TRANSACTION
statement.- Since:
- 6
-
OTHER
No specific classification applied (i.e. Jaybird is not (yet) interested in this type), or detection failed.
-
-
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
-
statementClass
Class of the statement.- Returns:
- statement class
- Since:
- 6
-