public enum StatementType extends java.lang.Enum<StatementType>
Enum Constant and Description |
---|
COMMIT |
DDL |
DELETE |
GET_SEGMENT |
INSERT |
NONE |
PUT_SEGMENT |
ROLLBACK |
SAVE_POINT |
SELECT |
SELECT_FOR_UPDATE |
SET_GENERATOR |
START_TRANSACTION |
STORED_PROCEDURE |
UPDATE |
Modifier and Type | Method and Description |
---|---|
int |
getStatementTypeCode() |
boolean |
isTypeWithCursor()
Indicates whether this statement type has a cursor.
|
boolean |
isTypeWithSingletonResult()
Indicates whether this statement type will produce a singleton result.
|
boolean |
isTypeWithUpdateCounts()
Indicates whether this statement type can produce update counts.
|
static StatementType |
valueOf(int statementTypeCode)
Gets the enum value matching statementTypeCode.
|
static StatementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StatementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatementType NONE
public static final StatementType SELECT
public static final StatementType INSERT
public static final StatementType UPDATE
public static final StatementType DELETE
public static final StatementType DDL
public static final StatementType GET_SEGMENT
public static final StatementType PUT_SEGMENT
public static final StatementType STORED_PROCEDURE
public static final StatementType START_TRANSACTION
public static final StatementType COMMIT
public static final StatementType ROLLBACK
public static final StatementType SELECT_FOR_UPDATE
public static final StatementType SET_GENERATOR
public static final StatementType SAVE_POINT
public static StatementType[] values()
for (StatementType c : StatementType.values()) System.out.println(c);
public static StatementType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getStatementTypeCode()
public boolean isTypeWithCursor()
Implementation assumes that this is the same for all Firebird versions.
true
statement type has a cursor.public boolean isTypeWithSingletonResult()
Implementation assumes that this is the same for all Firebird versions.
true
statement type will produce a singleton result.public boolean isTypeWithUpdateCounts()
Note that in some cases (eg a select) the update count might not be available immediately.
true
of this statement type produces an update count.public static StatementType valueOf(int statementTypeCode)
statementTypeCode
- Firebird statement type codejava.lang.IllegalArgumentException
- If the statementTypeCode matches no enum valueCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.