stomp.jdo
Interface PMFactory

All Known Implementing Classes:
GenericPMFactory

public interface PMFactory

interface used to plugin vendor-specific JDO code.

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.
 void refreshAll(java.util.Collection pcIds)
          refresh the read-only pm, and any active transactional pms, for all ids in the given collection.
 

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.

refreshAll

public void refreshAll(java.util.Collection pcIds)
refresh the read-only pm, and any active transactional pms, for all ids in the given collection. If pcIds is null, refresh all.