Getting the Persistence Manager s Transaction


Getting the Persistence Manager's Transaction

The persistence manager provides one method that returns the JDO Transaction object associated with the persistence manager.

 public Transaction currentTransaction() 

This method returns the one and only Transaction object associated with the persistence manager. The same Transaction object may be used to control a series of transactions for the objects that the persistence manager controls. The Transaction interface is covered in Chapter 4.




Using and Understanding Java Data Objects
Using and Understanding Java Data Objects
ISBN: 1590590430
EAN: 2147483647
Year: 2005
Pages: 156
Authors: David Ezzio

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net