EclipseLink 1.0_1.0M2 API Reference - Incubation

org.eclipse.persistence.jpa
Class PersistenceProvider

java.lang.Object
  extended by org.eclipse.persistence.jpa.PersistenceProvider

public class PersistenceProvider
extends java.lang.Object

This is the TopLink EJB 3.0 provider


Constructor Summary
PersistenceProvider()
           
 
Method Summary
 EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, java.util.Map properties)
          Called by the container when an EntityManagerFactory is to be created.
 EntityManagerFactory createEntityManagerFactory(java.lang.String emName, java.util.Map properties)
          Called by Persistence class when an EntityManagerFactory is to be created.
 boolean isPersistenceProviderSupported(java.lang.String providerClassName)
          Returns whether the given persistence provider class is supported by this implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceProvider

public PersistenceProvider()
Method Detail

createEntityManagerFactory

public EntityManagerFactory createEntityManagerFactory(java.lang.String emName,
                                                       java.util.Map properties)
Called by Persistence class when an EntityManagerFactory is to be created.

Parameters:
emName - The name of the persistence unit
map - A Map of properties for use by the persistence provider. These properties may be used to override the values of the corresponding elements in the persistence.xml file or specify values for properties not specified in the persistence.xml.
Returns:
EntityManagerFactory for the persistence unit, or null if the provider is not the right provider

createContainerEntityManagerFactory

public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info,
                                                                java.util.Map properties)
Called by the container when an EntityManagerFactory is to be created.

Parameters:
info - Metadata for use by the persistence provider
map - A Map of integration-level properties for use by the persistence provider.
Returns:
EntityManagerFactory for the persistence unit specified by the metadata

isPersistenceProviderSupported

public boolean isPersistenceProviderSupported(java.lang.String providerClassName)
Returns whether the given persistence provider class is supported by this implementation

Parameters:
providerClassName -
Returns:

EclipseLink 1.0_1.0M2 API Reference - Incubation