org.objectweb.speedo.api
Interface ProxyManager
- All Known Implementing Classes:
- SpeedoPersistenceManager
- public interface ProxyManager
This interfaces defined a manager of proxies (@see SpeedoProxy). This concept
is based on the javax.jdo.PersistenceManager interface.
A proxy manager must be able:
- to create identifiers,
- to active or descative a proxy,
- to retrieves the PClassMapping (persistent object familly manager in
Jorm)
- Author:
- S.Chassande-Barrioz
createFieldOfProxy
public org.objectweb.jorm.naming.api.PName createFieldOfProxy(SpeedoProxy pc,
SpeedoProxy father,
java.lang.String field)
throws java.lang.Exception
- Sets the reference between two JDO instances
- Parameters:
pc
- the reference object whose proxy infrastructure will be buildfather
- the ownerfield
- the name of the field
getTransactionalPersistenceManager
public org.objectweb.perseus.persistence.api.TransactionalPersistenceManager getTransactionalPersistenceManager()
- Removes the proxy infrastructure of a JDO instance
- Parameters:
pc
- the object requiring architecture deletion or its oidretainValues
- true if fields have to be restored into the JDO instance- Returns:
- the modified non-persistant JDO instance
open
public void open(java.lang.Object connectionSpec)
- Opens the persistent manager.
- Parameters:
connectionSpec
- is the information to access to the datastore
(user, passwor, ...)
getConnectionSpec
public java.lang.Object getConnectionSpec()