org.mobicents.slee.resource.persistence.ra
Interface ActivityManipulation

All Known Implementing Classes:
PersistenceResourceAdaptor

public interface ActivityManipulation


Method Summary
 void addActivity(SbbEntityManagerImpl em)
           
 boolean isEMFOpen(java.lang.String puName)
          Checks wheather EMF is present, and if it is, it checks if its open.
 void removeActivity(SbbEntityManagerImpl em)
           
 javax.persistence.EntityManagerFactory subscribeForEntityManagerFactoryForPU(java.lang.String puName, java.util.Map emfProperties)
          This method notifies that someone is interesetd in using EMF for particular PU.
 void unsubscribeForEntityManagerFactoryForPU(java.lang.String puName)
          Notifies that soemone is no longer interesetd in using EMF for certain PU.
 

Method Detail

addActivity

void addActivity(SbbEntityManagerImpl em)

removeActivity

void removeActivity(SbbEntityManagerImpl em)

subscribeForEntityManagerFactoryForPU

javax.persistence.EntityManagerFactory subscribeForEntityManagerFactoryForPU(java.lang.String puName,
                                                                             java.util.Map emfProperties)
This method notifies that someone is interesetd in using EMF for particular PU. Call of this method Either returns previosuly present EMF or creates new one using passed emfProperties.

Parameters:
puName - - name of persistence unit for which Entity\ManagerFactory will be created.
emfProperties - - map of propererties used to create EMF if none is present. If EMF is present it is ignored. This always can be set to null
Returns:
EMF

unsubscribeForEntityManagerFactoryForPU

void unsubscribeForEntityManagerFactoryForPU(java.lang.String puName)
Notifies that soemone is no longer interesetd in using EMF for certain PU.

Parameters:
puName - - name of persistence unit.

isEMFOpen

boolean isEMFOpen(java.lang.String puName)
Checks wheather EMF is present, and if it is, it checks if its open.

Parameters:
puName - - name of persistence unit.
Returns:


Copyright © 2009. All Rights Reserved.