public enum StatementState extends java.lang.Enum<StatementState>
FbStatement implementations| Enum Constant and Description | 
|---|
| ALLOCATEDStatement has been allocated | 
| CLOSEDStatement is closed or has been de-allocated | 
| CLOSINGA statement is being closed, this is an ephemeral state that should only last as long as releasing resources on the
 database takes. | 
| CURSOR_OPENStatement has been executed, cursor is still open | 
| ERRORLast statement execute or prepare resulted in an error | 
| EXECUTINGA statement is being executed, this is an ephemeral state that should only last as long as the execute call to the database takes. | 
| NEWStatement is new and no statement handle has been allocated on the server. | 
| PREPAREDStatement 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  toStatevalid 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-2023 Jaybird (Firebird JDBC/JCA) team. All rights reserved.