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
public static enum StatementResult.ResultType extends Enum<StatementResult.ResultType>
Enum indicating the type of result that was returned byConnection.execute(com.google.cloud.spanner.Statement)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_RESULT
DDL statements and client side statements that set the state of a connection return no result.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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatementResult.ResultType
valueOf(String name)
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 Detail
-
RESULT_SET
public static final StatementResult.ResultType 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
public static final StatementResult.ResultType UPDATE_COUNT
An update count returned by Cloud Spanner.
-
NO_RESULT
public static final StatementResult.ResultType NO_RESULT
DDL statements and client side statements that set the state of a connection return no result.
-
-
Method Detail
-
values
public static StatementResult.ResultType[] 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 (StatementResult.ResultType c : StatementResult.ResultType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatementResult.ResultType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-