com.caucho.env.jpa
Class DisabledPersistenceProvider

java.lang.Object
  extended by com.caucho.env.jpa.DisabledPersistenceProvider
All Implemented Interfaces:
PersistenceProvider

public class DisabledPersistenceProvider
extends java.lang.Object
implements PersistenceProvider

A special persistence provider which will disable a persistence-unit. Can be used when a persistence-unit should be enabled explicitly.


Constructor Summary
DisabledPersistenceProvider()
           
 
Method Summary
 EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, java.util.Map map)
          Create and return an EntityManagerFactory for the named unit.
 EntityManagerFactory createEntityManagerFactory(java.lang.String name, java.util.Map map)
          Create an return an EntityManagerFactory for the named unit.
 ProviderUtil getProviderUtil()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DisabledPersistenceProvider

public DisabledPersistenceProvider()
Method Detail

createContainerEntityManagerFactory

public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info,
                                                                java.util.Map map)
Description copied from interface: PersistenceProvider
Create and return an EntityManagerFactory for the named unit.

Specified by:
createContainerEntityManagerFactory in interface PersistenceProvider

createEntityManagerFactory

public EntityManagerFactory createEntityManagerFactory(java.lang.String name,
                                                       java.util.Map map)
Description copied from interface: PersistenceProvider
Create an return an EntityManagerFactory for the named unit.

Specified by:
createEntityManagerFactory in interface PersistenceProvider

getProviderUtil

public ProviderUtil getProviderUtil()
Specified by:
getProviderUtil in interface PersistenceProvider

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object