Package de.xima.fc.persistence.tx
-
Interface Summary Interface Description IJpaTransaction Common interface representing a JPA transaction context, which encapsulates a single JPA entity transaction.JpaTask<E extends Exception> Work that runs in a JPA transaction without returning a result, executed byJpaTransactionRunner.runInTransaction(JpaTask).JpaTransactionRunner Runs a unit of work in a JPA transaction of the system database, taking part in the transaction the calling thread already runs in if there is one.JpaUnitOfWork A unit of work that runs in a JPA transaction, handed to the work of aJpaTransactionRunner.JpaWork<T,E extends Exception> Work that runs in a JPA transaction and returns a result, executed byJpaTransactionRunner.inTransaction(JpaWork). -
Class Summary Class Description JpaTransactions Static access to the transaction the calling thread runs in, for code that can have nothing injected. -
Annotation Types Summary Annotation Type Description JpaTransactional Runs a method as a unit of work in a JPA transaction of the system database, the same wayJpaTransactionRunner.inTransaction(JpaWork)does: the transaction of the calling thread is taken part in if there is one and a new one is opened otherwise, it is committed when the method returns and rolled back when the method throws.