|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interfaces defined a manager of persistent instance. This concept is based on the javax.jdo.PersistenceManager interface. A ProxyManager is also a javax.transaction.Synchronization for the JTA integration. This permits to support the container transaction demarcation. On the beforeCompletion method the JDO transaction is prepared. A proxy manager used a TransactionalPersistenceManager for managing the concurrency, the loading and the caching aspects.
ProxyManagerFactory
,
ProxyManagerSwitch
,
TransactionalPersistenceManager
Method Summary | |
void |
addUse()
Signal to the persistence maneger that it is used. |
java.lang.Object |
getConnectionSpec()
|
Semaphore |
getSemaphore()
Retrieves the semaphore object permiting the multithreading mode. |
TransactionalPersistenceManager |
getTransactionalPersistenceManager()
Retrieves the TransactionalPersistenceManager used by this ProxyManager. |
void |
open(java.lang.Object connectionSpec)
Opens the persistent manager. |
java.lang.Object |
speedoAttachCopy(java.lang.Object detached,
boolean makeTransactional,
java.util.Map map)
|
void |
speedoDeletePersistent(java.lang.Object o)
Delete persistent a SpeedoProxy. |
java.lang.Object |
speedoDetachCopy(SpeedoProxy sp,
java.util.Map map,
java.util.Collection fgHints)
Same as detachCopy(Object detached), but uses a map to avoid cycles when detaching objects referencing each other |
java.lang.Object |
speedoGetObjectById(java.lang.Object oid,
boolean validate)
is the same method than PersistenceManager.getObjectById(Object, boolean) but no checking is done, because this is an internal call of Speedo. |
void |
speedoMakePersistent(SpeedoProxy sp,
boolean byAttach)
Make persistent a SpeedoProxy. |
void |
speedoRefresh(SpeedoProxy sp,
java.util.Map map,
java.util.Collection fgHints)
|
void |
speedoRetrieve(SpeedoProxy sp,
java.util.Map map,
java.util.Collection fgHints)
|
Methods inherited from interface javax.transaction.Synchronization |
afterCompletion, beforeCompletion |
Methods inherited from interface javax.jdo.datastore.JDOConnection |
getNativeConnection |
Method Detail |
public TransactionalPersistenceManager getTransactionalPersistenceManager()
public void open(java.lang.Object connectionSpec)
connectionSpec
- is the information to access to the data store
(user, password, ...)public java.lang.Object getConnectionSpec()
public void addUse()
public java.lang.Object speedoGetObjectById(java.lang.Object oid, boolean validate)
oid
- is an object representing an persistent object.public void speedoMakePersistent(SpeedoProxy sp, boolean byAttach)
sp
- is the instance to make persistent.byAttach
- is a boolean value indicating if the instance to make
persistent becomes persistent because the instance is linked/attached to
a persistent object (true), or because the user calls explicitly
pm.makePersistent(Obj) (false).public void speedoDeletePersistent(java.lang.Object o)
o
- is the instance to make persistent.public Semaphore getSemaphore()
public java.lang.Object speedoDetachCopy(SpeedoProxy sp, java.util.Map map, java.util.Collection fgHints)
map
- the map contains element of type: [SpeedoProxy, clone of SpeedoProxy]public java.lang.Object speedoAttachCopy(java.lang.Object detached, boolean makeTransactional, java.util.Map map)
public void speedoRefresh(SpeedoProxy sp, java.util.Map map, java.util.Collection fgHints)
public void speedoRetrieve(SpeedoProxy sp, java.util.Map map, java.util.Collection fgHints)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |