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:

Author:
S.Chassande-Barrioz

Method Summary
 org.objectweb.jorm.naming.api.PName createFieldOfProxy(SpeedoProxy pc, SpeedoProxy father, java.lang.String field)
          Sets the reference between two JDO instances
 java.lang.Object getConnectionSpec()
           
 org.objectweb.perseus.persistence.api.TransactionalPersistenceManager getTransactionalPersistenceManager()
          Removes the proxy infrastructure of a JDO instance
 void open(java.lang.Object connectionSpec)
          Opens the persistent manager.
 

Method Detail

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 build
father - the owner
field - 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 oid
retainValues - 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()