Interface JPAODataTransactionFactory
- All Known Implementing Classes:
JPAODataDefaultTransactionFactory
public interface JPAODataTransactionFactory
A wrapper to abstract from various transaction APIs provided by JAVA or e.g. Spring like
javax.persistence.EntityTransaction, javax.transaction.UserTransaction, javax.transaction.Transaction or
org.springframework.transaction.jta.JtaTransactionManager.
JPA Processor needs to be able to create transactions to be able to handle Change
Sets correctly. Each Change Set has to be processed in an own transaction. Please not that the batch processor
will create a response with http status code 501 Not Implemented in case he cannot create a transaction.
In case not TransactionFactory is provided the JPA Processor will create an instance of
JPAODataDefaultTransactionFactory, which shall be sufficient for most uses cases.
- Author:
- Oliver Grande Created: 07.10.2019
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionboolean
-
Method Details
-
createTransaction
JPAODataTransactionFactory.JPAODataTransaction createTransaction() throws ODataJPATransactionException- Returns:
- a new transaction
- Throws:
ODataJPATransactionException
-
hasActiveTransaction
boolean hasActiveTransaction()
-