|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.solarmetric.kodo.runtime.PersistenceManagerImpl
|
+--stomp.jdo.kodo.KodoPMWrapper
wraps the JDO implementation provided by a third party, but removes some transactional options from consideration. This is because we are going to manage transactions and cache synchronization transparently, and we don't want the developer getting in there and screwing it up.
| Field Summary |
| Fields inherited from class com.solarmetric.kodo.runtime.PersistenceManagerImpl |
store |
| Constructor Summary | |
KodoPMWrapper()
|
|
| Method Summary | |
void |
close()
does nothing. |
javax.jdo.Transaction |
currentTransaction()
returns an TransactionWrapper wrapper of the currentTransaction in the pm in this. |
boolean |
equals(java.lang.Object object)
|
void |
evict(java.lang.Object pc)
|
void |
evictAll()
|
void |
evictAll(java.util.Collection pcs)
|
void |
evictAll(java.lang.Object[] pcs)
|
java.lang.Object |
getLock()
returns the object that should be used to synchronized on this PM. |
boolean |
isNonTransactional()
returns true if the PM allows writes outside of a transaction, false otherwise. |
boolean |
isTransactional()
returns true if setTransactional () was called on this PMWrapper, false otherwise. |
void |
makePersistent(java.lang.Object pc)
|
void |
makePersistentAll(java.util.Collection pcs)
|
void |
makePersistentAll(java.lang.Object[] pcs)
|
void |
reallyBegin()
convenience method for package members really start a transaction. |
javax.jdo.Transaction |
reallyCurrentTransaction()
provides the only available access to the real JDO transaction, which is why this method is only available to package members. |
void |
refresh(java.lang.Object pc)
|
void |
refreshAll()
|
void |
refreshAll(java.util.Collection pcs)
|
void |
refreshAll(java.lang.Object[] pcs)
|
void |
setNonTransactional()
indicates that this PM should return true for 'isNonTransactional' |
void |
setShouldClose()
indicates that this PMWrapper should respond to 'close' method calls by actually closing the underlying PM. |
void |
setTransactional()
indicates that this PM should consider itself "transactional" and should start a transaction immediately. |
| Methods inherited from class com.solarmetric.kodo.runtime.PersistenceManagerImpl |
begin, checkActiveTransaction, checkClosed, checkNontransactionalRead, checkValid, closeQueries, commit, deletePersistent, deletePersistentAll, deletePersistentAll, deletePersistentFilter, endTransaction, evictFilter, flush, getCachedObjectById, getClassLoader, getConfiguration, getConnectionPassword, getConnectionUserName, getExtent, getIgnoreCache, getManagedObjects, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getObjectById, getObjectById, getObjectByIdFilter, getObjectId, getObjectIdClass, getOptimistic, getPersistenceManager, getPersistenceManagerFactory, getRestoreValues, getRetainValues, getState, getState, getStoreManager, getSynchronization, getTransactionalObjectId, getTransactionalObjects, getUserObject, initialize, isActive, isClosed, lock, makeNontransactional, makeNontransactionalAll, makeNontransactionalAll, makeNontransactionalFilter, makePersistentFilter, makeTransactional, makeTransactionalAll, makeTransactionalAll, makeTransactionalFilter, makeTransient, makeTransientAll, makeTransientAll, makeTransientFilter, markTransactionalObjectDirty, newObjectIdInstance, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, refreshFilter, retrieve, retrieveAll, retrieveAll, retrieveFilter, rollback, setIgnoreCache, setMultithreaded, setNontransactionalRead, setNontransactionalWrite, setOptimistic, setRestoreValues, setRetainValues, setSynchronization, setUserObject, unlock |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface stomp.jdo.PMWrapper |
getManagedObjects |
| Methods inherited from interface javax.jdo.PersistenceManager |
deletePersistent, deletePersistentAll, deletePersistentAll, getExtent, getIgnoreCache, getMultithreaded, getObjectById, getObjectId, getObjectIdClass, getPersistenceManagerFactory, getTransactionalObjectId, getUserObject, isClosed, makeNontransactional, makeNontransactionalAll, makeNontransactionalAll, makeTransactional, makeTransactionalAll, makeTransactionalAll, makeTransient, makeTransientAll, makeTransientAll, newObjectIdInstance, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, newQuery, retrieve, retrieveAll, retrieveAll, setIgnoreCache, setMultithreaded, setUserObject |
| Constructor Detail |
public KodoPMWrapper()
| Method Detail |
public void setShouldClose()
PMWrapper
setShouldClose in interface PMWrapperpublic void setNonTransactional()
PMWrapper
setNonTransactional in interface PMWrapperpublic void setTransactional()
PMWrapper
setTransactional in interface PMWrapperpublic boolean isNonTransactional()
PMWrapper
isNonTransactional in interface PMWrapperpublic boolean isTransactional()
PMWrapper
isTransactional in interface PMWrapperpublic java.lang.Object getLock()
PMWrapper
getLock in interface PMWrapperpublic javax.jdo.Transaction reallyCurrentTransaction()
reallyCurrentTransaction in interface PMWrapperpublic void reallyBegin()
reallyBegin in interface PMWrapperpublic javax.jdo.Transaction currentTransaction()
currentTransaction in interface javax.jdo.PersistenceManagercurrentTransaction in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void close()
close in interface javax.jdo.PersistenceManagerclose in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void makePersistent(java.lang.Object pc)
makePersistent in interface javax.jdo.PersistenceManagermakePersistent in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void makePersistentAll(java.util.Collection pcs)
makePersistentAll in interface javax.jdo.PersistenceManagermakePersistentAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void makePersistentAll(java.lang.Object[] pcs)
makePersistentAll in interface javax.jdo.PersistenceManagermakePersistentAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void refresh(java.lang.Object pc)
refresh in interface javax.jdo.PersistenceManagerrefresh in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void refreshAll()
refreshAll in interface javax.jdo.PersistenceManagerrefreshAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void refreshAll(java.util.Collection pcs)
refreshAll in interface javax.jdo.PersistenceManagerrefreshAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void refreshAll(java.lang.Object[] pcs)
refreshAll in interface javax.jdo.PersistenceManagerrefreshAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void evict(java.lang.Object pc)
evict in interface javax.jdo.PersistenceManagerevict in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void evictAll()
evictAll in interface javax.jdo.PersistenceManagerevictAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void evictAll(java.util.Collection pcs)
evictAll in interface javax.jdo.PersistenceManagerevictAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void evictAll(java.lang.Object[] pcs)
evictAll in interface javax.jdo.PersistenceManagerevictAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic boolean equals(java.lang.Object object)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||