Enum StatementResult.ResultType
java.lang.Object
java.lang.Enum<StatementResult.ResultType>
com.google.cloud.spanner.connection.StatementResult.ResultType
- All Implemented Interfaces:
Serializable
,Comparable<StatementResult.ResultType>
- Enclosing interface:
- StatementResult
Enum indicating the type of result that was returned by
Connection.execute(com.google.cloud.spanner.Statement)
-
Enum Constant Summary
Enum ConstantDescriptionDDL statements and client side statements that set the state of a connection return no result.A result set either returned by a query on Cloud Spanner or a local result set generated by a client side statement.An update count returned by Cloud Spanner. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatementResult.ResultType
Returns the enum constant of this type with the specified name.static StatementResult.ResultType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RESULT_SET
A result set either returned by a query on Cloud Spanner or a local result set generated by a client side statement. -
UPDATE_COUNT
An update count returned by Cloud Spanner. -
NO_RESULT
DDL statements and client side statements that set the state of a connection return no result.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-