Interface ITransaction

  • All Superinterfaces:
    AutoCloseable
    All Known Implementing Classes:
    SimpleTransaction

    public interface ITransaction
    extends AutoCloseable
    Simple service interface which allows us to hide how transactions are managed for the current thread. In this framework, we're only dealing with a single database, and one connection per thread, so the implementation does not need to be complicated Implemented as AutoCloseable so the transaction will end when close is closed, making it nice and neat to use with try-with-resource.