|
|||||||||||
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 |
attachCopy(java.lang.Object detached,
boolean makeTransactional)
attach/detach temporary included in this interface: to be removed and included in the jdo2.0.jar |
java.util.Collection |
attachCopyAll(java.util.Collection detached,
boolean makeTransactional)
|
java.lang.Object[] |
attachCopyAll(java.lang.Object[] detached,
boolean makeTransactional)
|
java.lang.Object |
detachCopy(java.lang.Object o)
|
java.util.Collection |
detachCopyAll(java.util.Collection collection)
|
java.lang.Object[] |
detachCopyAll(java.lang.Object[] objects)
|
java.lang.Object |
getConnectionSpec()
Retrieves the connection information to access the data store |
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)
|
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 attachCopy(java.lang.Object detached, boolean makeTransactional)
public java.util.Collection attachCopyAll(java.util.Collection detached, boolean makeTransactional)
public java.lang.Object[] attachCopyAll(java.lang.Object[] detached, boolean makeTransactional)
public java.lang.Object detachCopy(java.lang.Object o)
public java.util.Collection detachCopyAll(java.util.Collection collection)
public java.lang.Object[] detachCopyAll(java.lang.Object[] objects)
public java.lang.Object speedoDetachCopy(SpeedoProxy sp, java.util.Map map, java.util.Collection fgHints)
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 |