public class TransactionalEntityManagerHelper extends Object
A helper that knows how to associate EntityManager instances with active transactions.
| Constructor and Description |
|---|
TransactionalEntityManagerHelper(TransactionSynchronizationRegistry transactionSynchronizationRegistry,
TransactionManager transactionManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityManager |
getTransactionScopedEntityManager(String puScopedName)
Get current persistence context.
|
void |
putEntityManagerInTransactionRegistry(String scopedPuName,
javax.persistence.EntityManager entityManager)
Save the specified EntityManager in the local threads active transaction.
|
public TransactionalEntityManagerHelper(TransactionSynchronizationRegistry transactionSynchronizationRegistry, TransactionManager transactionManager)
public javax.persistence.EntityManager getTransactionScopedEntityManager(String puScopedName)
puScopedName - public void putEntityManagerInTransactionRegistry(String scopedPuName, javax.persistence.EntityManager entityManager)
scopedPuName - entityManager - Copyright © 2020 JBoss by Red Hat. All rights reserved.