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 by Connection.execute(com.google.cloud.spanner.Statement)
  • Enum Constant Details

    • 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 Details

    • values

      public static StatementResult.ResultType[] 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

      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 name
      NullPointerException - if the argument is null