Method Summary |
|
public void | addCurrent() Sets the current entity manager (used when to transaction is active). |
public void | closeCurrentAndReturnToPrevious() Sets back to the previous entity manager and close the current entity
manager. |
public synchronized EntityManager | getCurrent() Gets the current entity manager (or create one) for the given transaction
if there is one. |
public void | release(Transaction tx) Release the entity manager associated to the given tx. |