com.holonplatform.datastore.jdbc.tx

## Interface JdbcTransactionFactory

- 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 JdbcTransactionFactory

  Factory to create and configure new `JdbcTransaction` implementation using a `Connection` and a `TransactionConfiguration` definition.
  Since:
    5.1.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `JdbcTransaction` | `createTransaction(Connection connection, com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)` Build a new `JdbcTransaction`.
    `static JdbcTransactionFactory` | `getDefault()` Get the default `JdbcTransactionFactory`.

- - ### Method Detail

    - #### createTransaction

          JdbcTransaction createTransaction(Connection connection,
                                            com.holonplatform.core.datastore.transaction.TransactionConfiguration configuration)
                                     throws com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException

      Build a new `JdbcTransaction`.
      Parameters:
        `connection` - Transaction `Connection` (not null)
        `configuration` - Transaction configuration (not null)
      Returns:
        A new `JdbcTransaction` (not null)
      Throws:
        `com.holonplatform.core.datastore.transaction.TransactionStatus.TransactionException` - If an error occurred

    - #### getDefault

          static JdbcTransactionFactory getDefault()

      Get the default `JdbcTransactionFactory`.
      Returns:
        the default `JdbcTransactionFactory`

Copyright © 2019 The Holon Platform. All rights reserved.