Package org.firebirdsql.gds.ng
Enum StatementType
- java.lang.Object
- 
- java.lang.Enum<StatementType>
- 
- org.firebirdsql.gds.ng.StatementType
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<StatementType>
 
 public enum StatementType extends java.lang.Enum<StatementType> Firebird statement types.- Author:
- Mark Rotteveel
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description COMMITDDLDELETEGET_SEGMENTINSERTNONEPUT_SEGMENTROLLBACKSAVE_POINTSELECTSELECT_FOR_UPDATESET_GENERATORSTART_TRANSACTIONSTORED_PROCEDUREUPDATE
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStatementTypeCode()booleanisTypeWithCursor()Indicates whether this statement type has a cursor.booleanisTypeWithSingletonResult()Indicates whether this statement type will produce a singleton result.booleanisTypeWithUpdateCounts()Indicates whether this statement type can produce update counts.static StatementTypevalueOf(int statementTypeCode)Gets the enum value matching statementTypeCode.static StatementTypevalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
NONEpublic static final StatementType NONE 
 - 
SELECTpublic static final StatementType SELECT 
 - 
INSERTpublic static final StatementType INSERT 
 - 
UPDATEpublic static final StatementType UPDATE 
 - 
DELETEpublic static final StatementType DELETE 
 - 
DDLpublic static final StatementType DDL 
 - 
GET_SEGMENTpublic static final StatementType GET_SEGMENT 
 - 
PUT_SEGMENTpublic static final StatementType PUT_SEGMENT 
 - 
STORED_PROCEDUREpublic static final StatementType STORED_PROCEDURE 
 - 
START_TRANSACTIONpublic static final StatementType START_TRANSACTION 
 - 
COMMITpublic static final StatementType COMMIT 
 - 
ROLLBACKpublic static final StatementType ROLLBACK 
 - 
SELECT_FOR_UPDATEpublic static final StatementType SELECT_FOR_UPDATE 
 - 
SET_GENERATORpublic static final StatementType SET_GENERATOR 
 - 
SAVE_POINTpublic static final StatementType SAVE_POINT 
 
- 
 - 
Method Detail- 
valuespublic static StatementType[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StatementType c : StatementType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static StatementType valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
getStatementTypeCodepublic int getStatementTypeCode() - Returns:
- Firebird statement type code
 
 - 
isTypeWithCursorpublic boolean isTypeWithCursor() Indicates whether this statement type has a cursor.Implementation assumes that this is the same for all Firebird versions. - Returns:
- truestatement type has a cursor.
 
 - 
isTypeWithSingletonResultpublic boolean isTypeWithSingletonResult() Indicates whether this statement type will produce a singleton result.Implementation assumes that this is the same for all Firebird versions. - Returns:
- truestatement type will produce a singleton result.
 
 - 
isTypeWithUpdateCountspublic boolean isTypeWithUpdateCounts() Indicates whether this statement type can produce update counts.Note that in some cases (eg a select) the update count might not be available immediately. - Returns:
- trueof this statement type produces an update count.
 
 - 
valueOfpublic static StatementType valueOf(int statementTypeCode) Gets the enum value matching statementTypeCode.- Parameters:
- statementTypeCode- Firebird statement type code
- Returns:
- StatementType value matching statementTypeCode
- Throws:
- java.lang.IllegalArgumentException- If the statementTypeCode matches no enum value
 
 
- 
 
-