com.holonplatform.core.datastore

## Interface Datastore.OperationResult.Builder

- Enclosing interface:
    Datastore.OperationResult

      public static interface Datastore.OperationResult.Builder

  `Datastore.OperationResult` builder.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Datastore.OperationResult.Builder` | `affectedCount(long count)` Set the affected elements count.
    `Datastore.OperationResult` | `build()` Build the `Datastore.OperationResult`.
    `Datastore.OperationResult.Builder` | `type(Datastore.OperationType type)` Set the operation type
    `Datastore.OperationResult.Builder` | `withInsertedKey(Path<?> key, Object value)` Add an inserted key

- - ### Method Detail

    - #### type

          Datastore.OperationResult.Builder type(Datastore.OperationType type)

      Set the operation type
      Parameters:
        `type` - Operation type
      Returns:
        this

    - #### affectedCount

          Datastore.OperationResult.Builder affectedCount(long count)

      Set the affected elements count.
      Parameters:
        `count` - Affected elements count
      Returns:
        this

    - #### withInsertedKey

          Datastore.OperationResult.Builder withInsertedKey(Path<?> key,
                                                            Object value)

      Add an inserted key
      Parameters:
        `key` - Key path (not null)
        `value` - Key value
      Returns:
        this

    - #### build

          Datastore.OperationResult build()

      Build the `Datastore.OperationResult`.
      Returns:
        OperationResult instance

Copyright © 2019 The Holon Platform. All rights reserved.