public class RuntimePersistenceGenerator extends Object
| Constructor and Description |
|---|
RuntimePersistenceGenerator(String unitName,
javax.persistence.spi.PersistenceUnitTransactionType transactionType,
String providerName) |
| Modifier and Type | Method and Description |
|---|---|
RuntimePersistenceGenerator |
addAnnotatedClass(Class<?> clazz) |
RuntimePersistenceGenerator |
addProperty(String key,
String value) |
ClassLoader |
createClassLoader(String persistenceContent,
ClassLoader originalClassLoader) |
protected Document |
createDocument() |
javax.persistence.EntityManagerFactory |
createEntityManagerFactory() |
protected Element |
createPersistenceElement(Document doc) |
protected Element |
createProviderElement(Document doc,
String provider) |
protected Document |
createXmlDocument() |
String |
generateXml() |
String |
toString() |
public RuntimePersistenceGenerator addProperty(String key, String value)
public RuntimePersistenceGenerator addAnnotatedClass(Class<?> clazz)
public javax.persistence.EntityManagerFactory createEntityManagerFactory()
protected Document createDocument() throws ParserConfigurationException
ParserConfigurationExceptionprotected Document createXmlDocument() throws ParserConfigurationException
ParserConfigurationExceptionpublic ClassLoader createClassLoader(String persistenceContent, ClassLoader originalClassLoader)
public String generateXml() throws TransformerException, ParserConfigurationException
Copyright © 2018. All rights reserved.