|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface POManagerItf
defines a manager of persistent instance. A POManagerItf is a javax.transaction.Synchronization for the JTA integration. This permits to support the container transaction demarcation. On the beforeCompletion method the perseus transaction is prepared. A po manager used a TransactionalPersistenceManager for managing the concurrency, the loading and the caching aspects.
POManagerFactoryItf
,
POManagerSwitchItf
,
TransactionalPersistenceManager
Method Summary | |
---|---|
void |
addUse()
Signal to the persistence maneger that it is used. |
void |
closePOManager()
Close the POM |
org.objectweb.jorm.naming.api.PName |
decodeIdentifier(java.lang.Class aClass,
java.lang.Object s)
|
java.lang.Object |
getConnectionSpec()
|
java.lang.Object |
getEncodedPName(PersistentObjectItf po)
Encodes a PName into a serializable representation which could be decoded later. |
POManagerFactoryItf |
getPOManagerFactory()
|
org.objectweb.perseus.concurrency.lib.Semaphore |
getSemaphore()
Retrieves the semaphore object permiting the multithreading mode. |
TransactionItf |
getSpeedoTransaction()
|
TransactionalPersistenceManager |
getTransactionalPersistenceManager()
Retrieves the TransactionalPersistenceManager used by this POManagerItf. |
boolean |
isPOMClosed()
|
void |
open(java.lang.Object connectionSpec)
Opens the persistent manager. |
java.lang.Object |
speedoAttachCopy(java.lang.Object detached,
java.util.Map map)
|
void |
speedoDeletePersistent(java.lang.Object o)
Delete persistent a PersistentObjectItf. |
void |
speedoDeletePersistent(java.lang.Object oid,
java.lang.Class pc)
|
void |
speedoDeletePersistentAll(java.lang.Object[] o)
|
java.lang.Object |
speedoDetachCopy(PersistentObjectItf sp,
java.util.Map map,
java.util.Collection fgHints)
|
FetchPlanItf |
speedoGetFetchPlan()
|
java.lang.Object |
speedoGetObject(org.objectweb.jorm.naming.api.PName pn,
boolean validate)
|
java.lang.Object |
speedoMakePersistent(PersistentObjectItf sp,
java.util.Map map)
Make persistent a PersistentObjectItf. |
void |
speedoRefresh(PersistentObjectItf sp,
java.util.Map map,
java.util.Collection fgHints)
|
void |
speedoRetrieve(PersistentObjectItf sp,
java.util.Map map,
java.util.Collection fgHints)
|
Methods inherited from interface javax.transaction.Synchronization |
---|
afterCompletion, beforeCompletion |
Method Detail |
---|
TransactionalPersistenceManager getTransactionalPersistenceManager()
void open(java.lang.Object connectionSpec)
connectionSpec
- is the information to access to the data store
(user, password, ...)java.lang.Object getConnectionSpec()
void addUse()
org.objectweb.perseus.concurrency.lib.Semaphore getSemaphore()
TransactionItf getSpeedoTransaction()
void closePOManager()
boolean isPOMClosed()
POManagerFactoryItf getPOManagerFactory()
java.lang.Object getEncodedPName(PersistentObjectItf po)
po
- is a persistent objectorg.objectweb.jorm.naming.api.PName decodeIdentifier(java.lang.Class aClass, java.lang.Object s)
java.lang.Object speedoMakePersistent(PersistentObjectItf sp, java.util.Map map)
sp
- is the instance to make persistent.map
- is the context of the attachment process if any. If no attachment, it is null.
void speedoDeletePersistent(java.lang.Object o)
o
- is the instance to make persistent.void speedoDeletePersistentAll(java.lang.Object[] o)
void speedoDeletePersistent(java.lang.Object oid, java.lang.Class pc)
java.lang.Object speedoGetObject(org.objectweb.jorm.naming.api.PName pn, boolean validate)
java.lang.Object speedoDetachCopy(PersistentObjectItf sp, java.util.Map map, java.util.Collection fgHints)
java.lang.Object speedoAttachCopy(java.lang.Object detached, java.util.Map map)
void speedoRefresh(PersistentObjectItf sp, java.util.Map map, java.util.Collection fgHints)
void speedoRetrieve(PersistentObjectItf sp, java.util.Map map, java.util.Collection fgHints)
FetchPlanItf speedoGetFetchPlan()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |