com.holonplatform.datastore.mongo.core

## Interface MongoDatabaseOperation<MongoDatabase,R>

- Type Parameters:
    `MongoDatabase` - Actual MongoDatabase type
    `R` - Operation result type
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public interface MongoDatabaseOperation<MongoDatabase,R>

  Represents an operation to be executed using a Datastore managed `MongoDatabase`.
  Since:
    5.2.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `R` | `execute(MongoDatabase database)` Execute an operation using the provided MongoDatabase an return a result.

- - ### Method Detail

    - #### execute

          R execute(MongoDatabase database)
             throws Exception

      Execute an operation using the provided MongoDatabase an return a result.
      Parameters:
        `database` - The MongoDatabase reference
      Returns:
        Operation result
      Throws:
        `Exception` - If an error occurred

Copyright © 2019 The Holon Platform. All rights reserved.