org.objectweb.speedo.pm.api
Interface ProxyManager

All Known Implementing Classes:
SpeedoProxyManager

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
 void addUse()
          Signal to the persistence maneger that it is used
 java.lang.Object getConnectionSpec()
           
 Semaphore getSemaphore()
           
 TransactionalPersistenceManager getTransactionalPersistenceManager()
           
 void open(java.lang.Object connectionSpec)
          Opens the persistent manager.
 void speedoDeletePersistent(java.lang.Object o)
          Delete persistent a SpeedoProxy.
 java.lang.Object speedoGetObjectById(java.lang.Object oid, boolean validate)
           
 void speedoMakePersistent(SpeedoProxy sp)
          Make persistent a SpeedoProxy.
 

Method Detail

getTransactionalPersistenceManager

public TransactionalPersistenceManager getTransactionalPersistenceManager()

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()

addUse

public void addUse()
Signal to the persistence maneger that it is used


speedoGetObjectById

public java.lang.Object speedoGetObjectById(java.lang.Object oid,
                                            boolean validate)

speedoMakePersistent

public void speedoMakePersistent(SpeedoProxy sp)
Make persistent a SpeedoProxy. This method does the same thing than the PersistenceManager.makePersistent(Object) method except the call to the bind to the ProxyManager to the current thread.

Parameters:
sp - is the instance to make persistent.

speedoDeletePersistent

public void speedoDeletePersistent(java.lang.Object o)
Delete persistent a SpeedoProxy. This method does the same thing than the PersistenceManager.deletePersistent(Object) method except the call to the bind to the ProxyManager to the current thread.

Parameters:
o - is the instance to make persistent.

getSemaphore

public Semaphore getSemaphore()