public enum StatementState extends java.lang.Enum<StatementState>
FbStatement
implementationsEnum Constant and Description |
---|
ALLOCATED
Statement has been allocated
|
CLOSED
Statement is closed or has been de-allocated
|
CLOSING
A statement is being closed, this is an ephemeral state that should only last as long as releasing resources on the
database takes.
|
CURSOR_OPEN
Statement has been executed, cursor is still open
|
ERROR
Last statement execute or prepare resulted in an error
|
EXECUTING
A statement is being executed, this is an ephemeral state that should only last as long as the execute call to the database takes.
|
NEW
Statement is new and no statement handle has been allocated on the server.
|
PREPARED
Statement has been prepared
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCursorOpen()
Can a cursor be open in the current state?
|
boolean |
isValidTransition(StatementState toState)
Is the transition to
toState valid from this state. |
java.util.Set<StatementState> |
validTransitionSet() |
static StatementState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StatementState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatementState NEW
public static final StatementState CLOSING
public static final StatementState CLOSED
public static final StatementState ALLOCATED
public static final StatementState PREPARED
public static final StatementState EXECUTING
public static final StatementState CURSOR_OPEN
public static final StatementState ERROR
public static StatementState[] values()
for (StatementState c : StatementState.values()) System.out.println(c);
public static StatementState 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 boolean isCursorOpen()
true
a cursor can be open in this statepublic final boolean isValidTransition(StatementState toState)
toState
valid from this state.toState
- The next statetrue
transition is validpublic final java.util.Set<StatementState> validTransitionSet()
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.