|
||||||||||
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 PMWrapper
public void setNonTransactional()
PMWrapper
setNonTransactional
in interface PMWrapper
public void setTransactional()
PMWrapper
setTransactional
in interface PMWrapper
public boolean isNonTransactional()
PMWrapper
isNonTransactional
in interface PMWrapper
public boolean isTransactional()
PMWrapper
isTransactional
in interface PMWrapper
public java.lang.Object getLock()
PMWrapper
getLock
in interface PMWrapper
public javax.jdo.Transaction reallyCurrentTransaction()
reallyCurrentTransaction
in interface PMWrapper
public void reallyBegin()
reallyBegin
in interface PMWrapper
public javax.jdo.Transaction currentTransaction()
currentTransaction
in interface javax.jdo.PersistenceManager
currentTransaction
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void close()
close
in interface javax.jdo.PersistenceManager
close
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void makePersistent(java.lang.Object pc)
makePersistent
in interface javax.jdo.PersistenceManager
makePersistent
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void makePersistentAll(java.util.Collection pcs)
makePersistentAll
in interface javax.jdo.PersistenceManager
makePersistentAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void makePersistentAll(java.lang.Object[] pcs)
makePersistentAll
in interface javax.jdo.PersistenceManager
makePersistentAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void refresh(java.lang.Object pc)
refresh
in interface javax.jdo.PersistenceManager
refresh
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void refreshAll()
refreshAll
in interface javax.jdo.PersistenceManager
refreshAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void refreshAll(java.util.Collection pcs)
refreshAll
in interface javax.jdo.PersistenceManager
refreshAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void refreshAll(java.lang.Object[] pcs)
refreshAll
in interface javax.jdo.PersistenceManager
refreshAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void evict(java.lang.Object pc)
evict
in interface javax.jdo.PersistenceManager
evict
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void evictAll()
evictAll
in interface javax.jdo.PersistenceManager
evictAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void evictAll(java.util.Collection pcs)
evictAll
in interface javax.jdo.PersistenceManager
evictAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public void evictAll(java.lang.Object[] pcs)
evictAll
in interface javax.jdo.PersistenceManager
evictAll
in class com.solarmetric.kodo.runtime.PersistenceManagerImpl
public 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 |