|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--stomp.jdo.GenericPMFactory
standard PMFactory implementation. Clients may use this simple implementation to connect a third-party JDO implementation to Stomp, by specifying the location of a properties file in the jdoFactory.properties runtime pref, or may take control of the behavior of this object completely by implementing PMFactory on their own and specifying this class in the jdoFactory.pmFactory pref.
Constructor Summary | |
GenericPMFactory(java.lang.String schemaGroup)
|
Method Summary | |
protected javax.jdo.PersistenceManagerFactory |
configure(javax.jdo.PersistenceManagerFactory pmFactory)
called immediately after creating any PMFactory. |
javax.jdo.PersistenceManager |
getNewTransactionalPersistenceManager()
returns a PersistenceManager associated with it's own transaction. |
javax.jdo.PersistenceManager |
getNonTransactionalPersistenceManager()
returns a PersistenceManager capable of returning all non-transactionally persistent objects. |
javax.jdo.PersistenceManager |
getReadOnlyPersistenceManager()
returns a PM which should never be associated with a transaction. |
java.lang.String |
getSchemaGroup()
|
javax.jdo.PersistenceManager |
getTransactionalPersistenceManager()
returns a PersistenceManager which has already had a JDO transaction started. |
void |
transactionCompleted(javax.jdo.PersistenceManager pm)
callback made whenever a transaction has just committed or rolled back, and just before they refresh all of the other threads. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericPMFactory(java.lang.String schemaGroup)
Method Detail |
public java.lang.String getSchemaGroup()
public javax.jdo.PersistenceManager getReadOnlyPersistenceManager()
PMFactory
getReadOnlyPersistenceManager
in interface PMFactory
public javax.jdo.PersistenceManager getTransactionalPersistenceManager()
getTransactionalPersistenceManager
in interface PMFactory
public javax.jdo.PersistenceManager getNewTransactionalPersistenceManager()
getNewTransactionalPersistenceManager
in interface PMFactory
public javax.jdo.PersistenceManager getNonTransactionalPersistenceManager()
getNonTransactionalPersistenceManager
in interface PMFactory
public void transactionCompleted(javax.jdo.PersistenceManager pm)
protected javax.jdo.PersistenceManagerFactory configure(javax.jdo.PersistenceManagerFactory pmFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |