8.3. Transaction Association

public Transaction currentTransaction ();

Every PersistenceManager has a one-to-one relation with a Transaction instance. In fact, many vendors use a single class to implement both the PersistenceManager and Transaction interfaces. If your application requires multiple concurrent transactions, you will use multiple PersistenceManagers.

You can retrieve the Transaction associated with a PersistenceManager through the currentTransaction method.

 

Skip navigation bar   Back to Top