Class JpaTransaction

  • All Implemented Interfaces:
    IJpaTransaction, Closeable, AutoCloseable

    public class JpaTransaction
    extends Object
    implements IJpaTransaction
    Implementation of IJpaTransaction that manages a JPA transaction using an EntityManager. This class ensures that the transaction is properly started, committed, or rolled back as needed.

    Such a transaction stands alone: nothing takes part in it, and work done in it is committed or rolled back on its own. A transaction other work can take part in is opened by the JpaTransactionRunner.

    Note: This class is designed for internal use only. Plugins should not use this interface. This class may be moved to a different package in the future, so plugins should not depend on it.

    Since:
    8.5.0