org.apache.aries.jpa.container
Interface ManagedPersistenceUnitInfo


public interface ManagedPersistenceUnitInfo

This interface is used to provide the Aries JPA container with the information it needs to create a container EntityManagerFactory using the PersistenceProvider service from a JPA provider. Instances of this interface should be obtained from a ManagedPersistenceUnitInfoFactory


Method Summary
 Map<String,Object> getContainerProperties()
          Get a Map of continer properties to pass to the PersistenceProvider when creating an EntityManagerFactory.
 javax.persistence.spi.PersistenceUnitInfo getPersistenceUnitInfo()
          Get the PersistenceUnitInfo object for this persistence unit.
 

Method Detail

getPersistenceUnitInfo

javax.persistence.spi.PersistenceUnitInfo getPersistenceUnitInfo()
Get the PersistenceUnitInfo object for this persistence unit. This method should only be called when the backing bundle for the persistence unit has been resolved. If the bundle later becomes unresolved then any PersistenceUnitInfo objects obtained from this object will be discarded.

Returns:
A PersistenceUnitInfo that can be used to create an EntityManagerFactory

getContainerProperties

Map<String,Object> getContainerProperties()
Get a Map of continer properties to pass to the PersistenceProvider when creating an EntityManagerFactory.

Returns:
A Map of properties, or null if no properties are needed.


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.