- 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 ConstantDescriptionDELETEstatement.EXECUTE PROCEDUREstatement.COMMIT [WORK](i.e.ROLLBACK [WORK](i.e.INSERTstatement.MERGEstatement.No specific classification applied (i.e.SELECTstatement, including selectable stored procedures.SET TRANSACTIONstatement.Null-state before detection.UPDATEstatement (orUPDATE OR INSERTbefore detection is complete).UPDATE OR INSERTstatement. -
Method Summary
Modifier and TypeMethodDescriptionClass of the statement.static LocalStatementTypeReturns 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
SELECTstatement, including selectable stored procedures. -
EXECUTE_PROCEDURE
EXECUTE PROCEDUREstatement. -
UPDATE
UPDATEstatement (orUPDATE OR INSERTbefore detection is complete). -
DELETE
DELETEstatement. -
INSERT
INSERTstatement. -
UPDATE_OR_INSERT
UPDATE OR INSERTstatement. -
MERGE
MERGEstatement. -
HARD_COMMIT
COMMIT [WORK](i.e. withoutRETAIN).- Since:
- 6
-
HARD_ROLLBACK
ROLLBACK [WORK](i.e. withoutRETAINorTO SAVEPOINT ...).- Since:
- 6
-
SET_TRANSACTION
SET TRANSACTIONstatement.- 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
-