Class SingleConnectionTransactionManager

java.lang.Object
org.dalesbred.transaction.AbstractTransactionManager
org.dalesbred.transaction.SingleConnectionTransactionManager
All Implemented Interfaces:
TransactionManager

public final class SingleConnectionTransactionManager extends AbstractTransactionManager
A TransactionManager that uses single underlying Connection. Can be used to construct a Database with limited functionality in situations where we need to use a specific connection (i.e. integration with third-party frameworks that provide callbacks with just a connection).
  • Constructor Details

    • SingleConnectionTransactionManager

      public SingleConnectionTransactionManager(@NotNull @NotNull Connection connection, boolean insideForeignTransaction)
      Constructs a transaction manager that uses given connection.
      Parameters:
      connection - to use for database access
      insideForeignTransaction - true iff transaction manager should assume that calls are inside a transactional context provided by third party framework
  • Method Details