|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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.
| 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. |
void |
deletePersistent(java.lang.Object pc)
|
void |
deletePersistentAll(java.util.Collection pcs)
|
void |
deletePersistentAll(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, deletePersistentFilter, endTransaction, evict, evictAll, evictAll, evictAll, evictFilter, flush, getCachedObjectById, getClassLoader, getConnectionPassword, getConnectionUserName, getExtent, getIgnoreCache, getManagedObjects, getMultithreaded, getNontransactionalRead, getNontransactionalWrite, getObjectById, getObjectById, getObjectByIdFilter, getObjectId, getObjectIdClass, getOptimistic, getPersistenceManager, getPersistenceManagerFactory, getRestoreValues, getRetainValues, 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface stomp.jdo.PMWrapper |
getManagedObjects |
| Methods inherited from interface javax.jdo.PersistenceManager |
evict, evictAll, evictAll, evictAll, 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()
PMWrappersetShouldClose in interface PMWrapperpublic void setNonTransactional()
PMWrappersetNonTransactional in interface PMWrapperpublic void setTransactional()
PMWrappersetTransactional in interface PMWrapperpublic boolean isNonTransactional()
PMWrapperisNonTransactional in interface PMWrapperpublic boolean isTransactional()
PMWrapperisTransactional in interface PMWrapperpublic java.lang.Object getLock()
PMWrappergetLock 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 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 deletePersistent(java.lang.Object pc)
deletePersistent in interface javax.jdo.PersistenceManagerdeletePersistent in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void deletePersistentAll(java.util.Collection pcs)
deletePersistentAll in interface javax.jdo.PersistenceManagerdeletePersistentAll in class com.solarmetric.kodo.runtime.PersistenceManagerImplpublic void deletePersistentAll(java.lang.Object[] pcs)
deletePersistentAll in interface javax.jdo.PersistenceManagerdeletePersistentAll 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.PersistenceManagerImpl
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||