com.github.smokestack.jpa
Class MockPersistenceProviderImpl

java.lang.Object
  extended by com.github.smokestack.jpa.MockPersistenceProviderImpl
All Implemented Interfaces:
PersistenceProvider

public class MockPersistenceProviderImpl
extends Object
implements PersistenceProvider

Author:
gliptak

Constructor Summary
MockPersistenceProviderImpl()
           
 
Method Summary
 EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map map)
           
 EntityManagerFactory createEntityManagerFactory(String emName, Map map)
           
protected  NodeList getEntityManagerConfig(String emName)
           
 Map<String,MockEntityManagerFactory> getMockEntityManagerFactories()
          Used for validation
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockPersistenceProviderImpl

public MockPersistenceProviderImpl()
Method Detail

createContainerEntityManagerFactory

public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info,
                                                                Map map)
Specified by:
createContainerEntityManagerFactory in interface PersistenceProvider

createEntityManagerFactory

public EntityManagerFactory createEntityManagerFactory(String emName,
                                                       Map map)
Specified by:
createEntityManagerFactory in interface PersistenceProvider

getEntityManagerConfig

protected NodeList getEntityManagerConfig(String emName)
                                   throws ParserConfigurationException,
                                          SAXException,
                                          IOException,
                                          XPathExpressionException
Throws:
ParserConfigurationException
SAXException
IOException
XPathExpressionException

toString

public String toString()
Overrides:
toString in class Object

getMockEntityManagerFactories

public Map<String,MockEntityManagerFactory> getMockEntityManagerFactories()
Used for validation



Copyright © 2009-2010 Smokestack. All Rights Reserved.