final case class ExecuteBatchDmlResponse(resultSets: Seq[ResultSet] = _root_.scala.Seq.empty, status: Option[Status] = _root_.scala.None, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[ExecuteBatchDmlResponse] with Product with Serializable

The response for [ExecuteBatchDml][google.spanner.v1.Spanner.ExecuteBatchDml]. Contains a list of [ResultSet][google.spanner.v1.ResultSet] messages, one for each DML statement that has successfully executed, in the same order as the statements in the request. If a statement fails, the status in the response body identifies the cause of the failure.

To check for DML statements that failed, use the following approach:

1. Check the status in the response message. The [google.rpc.Code][google.rpc.Code] enum value OK indicates that all statements were executed successfully. 2. If the status was not OK, check the number of result sets in the response. If the response contains N [ResultSet][google.spanner.v1.ResultSet] messages, then statement N+1 in the request failed.

Example 1:

* Request: 5 DML statements, all executed successfully. * Response: 5 [ResultSet][google.spanner.v1.ResultSet] messages, with the status OK.

Example 2:

* Request: 5 DML statements. The third statement has a syntax error. * Response: 2 [ResultSet][google.spanner.v1.ResultSet] messages, and a syntax error (INVALID_ARGUMENT) status. The number of [ResultSet][google.spanner.v1.ResultSet] messages indicates that the third statement failed, and the fourth and fifth statements were not executed.

resultSets

One [ResultSet][google.spanner.v1.ResultSet] for each statement in the request that ran successfully, in the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] does not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] contain the number of rows modified by the statement. Only the first [ResultSet][google.spanner.v1.ResultSet] in the response contains valid [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].

status

If all DML statements are executed successfully, the status is OK. Otherwise, the error status of the first failed statement.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[ExecuteBatchDmlResponse], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExecuteBatchDmlResponse
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ExecuteBatchDmlResponse(resultSets: Seq[ResultSet] = _root_.scala.Seq.empty, status: Option[Status] = _root_.scala.None, unknownFields: UnknownFieldSet = ...)

    resultSets

    One [ResultSet][google.spanner.v1.ResultSet] for each statement in the request that ran successfully, in the same order as the statements in the request. Each [ResultSet][google.spanner.v1.ResultSet] does not contain any rows. The [ResultSetStats][google.spanner.v1.ResultSetStats] in each [ResultSet][google.spanner.v1.ResultSet] contain the number of rows modified by the statement. Only the first [ResultSet][google.spanner.v1.ResultSet] in the response contains valid [ResultSetMetadata][google.spanner.v1.ResultSetMetadata].

    status

    If all DML statements are executed successfully, the status is OK. Otherwise, the error status of the first failed statement.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllResultSets(__vs: Iterable[ResultSet]): ExecuteBatchDmlResponse
  5. def addResultSets(__vs: ResultSet*): ExecuteBatchDmlResponse
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clearResultSets: ExecuteBatchDmlResponse
  8. def clearStatus: ExecuteBatchDmlResponse
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def companion: ExecuteBatchDmlResponse.type
    Definition Classes
    ExecuteBatchDmlResponse → GeneratedMessage
  11. def discardUnknownFields: ExecuteBatchDmlResponse
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    ExecuteBatchDmlResponse → GeneratedMessage
  16. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    ExecuteBatchDmlResponse → GeneratedMessage
  17. def getStatus: Status
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val resultSets: Seq[ResultSet]
  23. def serializedSize: Int
    Definition Classes
    ExecuteBatchDmlResponse → GeneratedMessage
  24. val status: Option[Status]
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  27. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  28. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  29. def toProtoString: String
    Definition Classes
    ExecuteBatchDmlResponse → GeneratedMessage
  30. val unknownFields: UnknownFieldSet
  31. def update(ms: (Lens[ExecuteBatchDmlResponse, ExecuteBatchDmlResponse]) ⇒ scalapb.lenses.Mutation[ExecuteBatchDmlResponse]*): ExecuteBatchDmlResponse
    Definition Classes
    Updatable
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  35. def withResultSets(__v: Seq[ResultSet]): ExecuteBatchDmlResponse
  36. def withStatus(__v: Status): ExecuteBatchDmlResponse
  37. def withUnknownFields(__v: UnknownFieldSet): ExecuteBatchDmlResponse
  38. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  39. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    ExecuteBatchDmlResponse → GeneratedMessage
  40. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[ExecuteBatchDmlResponse]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped