- All Implemented Interfaces:
Serializable
,Comparable<StatementType>
,Constable
Firebird statement types.
- 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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Indicates whether this statement type has a cursor.boolean
Indicates whether this statement type will produce a singleton result.boolean
Indicates whether this statement type can produce update counts.static StatementType
valueOf
(int statementTypeCode) Gets the enum value matching statementTypeCode.static StatementType
Returns the enum constant of this class with the specified name.static StatementType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
SELECT
-
INSERT
-
UPDATE
-
DELETE
-
DDL
-
GET_SEGMENT
-
PUT_SEGMENT
-
STORED_PROCEDURE
-
START_TRANSACTION
-
COMMIT
-
ROLLBACK
-
SELECT_FOR_UPDATE
-
SET_GENERATOR
-
SAVE_POINT
-
-
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
-
getStatementTypeCode
public int getStatementTypeCode()- Returns:
- Firebird statement type code
-
isTypeWithCursor
public boolean isTypeWithCursor()Indicates whether this statement type has a cursor.Implementation assumes that this is the same for all Firebird versions.
- Returns:
true
statement type has a cursor
-
isTypeWithSingletonResult
public boolean isTypeWithSingletonResult()Indicates whether this statement type will produce a singleton result.Implementation assumes that this is the same for all Firebird versions.
- Returns:
true
statement type will produce a singleton result
-
isTypeWithUpdateCounts
public boolean isTypeWithUpdateCounts()Indicates whether this statement type can produce update counts.Note that in some cases (e.g. an EXECUTE BLOCK) the update count might only be correct after retrieving all rows.
- Returns:
true
of this statement type produces an update count
-
valueOf
Gets the enum value matching statementTypeCode.- Parameters:
statementTypeCode
- Firebird statement type code- Returns:
- StatementType value matching statementTypeCode
- Throws:
IllegalArgumentException
- If the statementTypeCode matches no enum value
-