public class JPAConnectionHolder
extends java.lang.Object EntityManager and current transaction. Instance of this class is used to store connection information in RPCManager while handling Automatic Transactions.| Modifier and Type | Method and Description | 
|---|---|
| javax.persistence.EntityManager | getEntityManager()Returns  EntityManagerfor this connection. | 
| int | getOpCount()Returns count of operations executed. | 
| java.lang.Object | getTransaction()Returns current open transaction. | 
| void | increaseOpCount()Increases operations count by 1. | 
| void | setEntityManager(javax.persistence.EntityManager em)Sets new  EntityManager. | 
| void | setTransaction(java.lang.Object tx)Sets new transaction. | 
public javax.persistence.EntityManager getEntityManager()
EntityManager for this connection.EntityManager for this connection.public void setEntityManager(javax.persistence.EntityManager em)
EntityManager.em - EntityManager new entity manager.public java.lang.Object getTransaction()
Object current transaction.public void setTransaction(java.lang.Object tx)
tx - Object new transaction.public int getOpCount()
int executed operations count.public void increaseOpCount()