com.holonplatform.datastore.jdbc.composer

## Interface ConnectionOperation<R>

- Type Parameters:
    `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 ConnectionOperation<R>

  Represents an operation to be executed using a Datastore managed `Connection`.
  Since:
    5.1.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `R` | `execute(Connection connection)` Execute an operation using a managed JDBC `Connection` and returns a result.

- - ### Method Detail

    - #### execute

          R execute(Connection connection)
             throws Exception

      Execute an operation using a managed JDBC `Connection` and returns a result.

      The `Connection` lifecycle should be managed by the connection provider, so the connection should not be closed from whithin the connection operation method.

      Parameters:
        `connection` - The JDBC Connection
      Returns:
        Operation result
      Throws:
        `Exception` - If an error occurred

Copyright © 2019 The Holon Platform. All rights reserved.