stomp.jdo
Interface PMFactory

All Known Implementing Classes:
GenericPMFactory

public interface PMFactory

interface used to plugin vendor-specific JDO code. A PMFactory knows how to communicate with a particular schema. The database hosting this schema may be different, depending on the system settings (dev, qa, prod).

Author:
Eric Lindauer

Method Summary
 javax.jdo.PersistenceManager getNewTransactionalPersistenceManager()
          returns a PM associated with a newly created tx.
 javax.jdo.PersistenceManager getNonTransactionalPersistenceManager()
          returns a PM which should never be associated with a transaction, but whose data is changable by the application.
 javax.jdo.PersistenceManager getReadOnlyPersistenceManager()
          returns a PM which should never be associated with a transaction.
 javax.jdo.PersistenceManager getTransactionalPersistenceManager()
          returns a PM which is associated with some transaction.
 

Method Detail

getReadOnlyPersistenceManager

public javax.jdo.PersistenceManager getReadOnlyPersistenceManager()
returns a PM which should never be associated with a transaction. The data in objects found should reflect the current state of the database, and this data should not be changable by the user.


getTransactionalPersistenceManager

public javax.jdo.PersistenceManager getTransactionalPersistenceManager()
returns a PM which is associated with some transaction.


getNewTransactionalPersistenceManager

public javax.jdo.PersistenceManager getNewTransactionalPersistenceManager()
returns a PM associated with a newly created tx. When this pm is closed, it is guaranteed that the tx will commit.


getNonTransactionalPersistenceManager

public javax.jdo.PersistenceManager getNonTransactionalPersistenceManager()
returns a PM which should never be associated with a transaction, but whose data is changable by the application. The data in objects retreived from this PM may be out of sync with the database.