com.github.smokestack.jpa
Class MockPersistenceProviderImpl
java.lang.Object
com.github.smokestack.jpa.MockPersistenceProviderImpl
- All Implemented Interfaces:
- PersistenceProvider
public class MockPersistenceProviderImpl
- extends Object
- implements PersistenceProvider
- Author:
- gliptak
MockPersistenceProviderImpl
public MockPersistenceProviderImpl()
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.