public class PersistenceXmlParser extends Object
persistence.xml files in SE environments.| Modifier and Type | Class and Description |
|---|---|
static class |
PersistenceXmlParser.ErrorHandlerImpl |
| Modifier and Type | Method and Description |
|---|---|
static ParsedPersistenceXmlDescriptor |
locateIndividualPersistenceUnit(URL persistenceXmlUrl)
Parse a specific
persistence.xml with the assumption that it defines a single
persistence-unit. |
static ParsedPersistenceXmlDescriptor |
locateIndividualPersistenceUnit(URL persistenceXmlUrl,
Map integration)
Parse a specific
persistence.xml with the assumption that it defines a single
persistence-unit. |
static ParsedPersistenceXmlDescriptor |
locateIndividualPersistenceUnit(URL persistenceXmlUrl,
PersistenceUnitTransactionType transactionType,
Map integration)
Parse a specific
persistence.xml with the assumption that it defines a single
persistence-unit. |
static ParsedPersistenceXmlDescriptor |
locateNamedPersistenceUnit(URL persistenceXmlUrl,
String name)
Parse a specific
persistence.xml and return the descriptor for the persistence-unit with matching name |
static ParsedPersistenceXmlDescriptor |
locateNamedPersistenceUnit(URL persistenceXmlUrl,
String name,
Map integration)
Parse a specific
persistence.xml and return the descriptor for the persistence-unit with matching name |
static ParsedPersistenceXmlDescriptor |
locateNamedPersistenceUnit(URL persistenceXmlUrl,
String name,
PersistenceUnitTransactionType transactionType,
Map integration)
Parse a specific
persistence.xml and return the descriptor for the persistence-unit with matching name |
static List<ParsedPersistenceXmlDescriptor> |
locatePersistenceUnits(Map integration)
Find all persistence-units from all accessible
META-INF/persistence.xml resources |
static Map<String,ParsedPersistenceXmlDescriptor> |
parse(URL persistenceXmlUrl,
PersistenceUnitTransactionType transactionType)
Intended only for use by Hibernate tests!
Parses a specific persistence.xml file...
|
static Map<String,ParsedPersistenceXmlDescriptor> |
parse(URL persistenceXmlUrl,
PersistenceUnitTransactionType transactionType,
Map integration)
Generic method to parse a specified
persistence.xml and return a Map of descriptors
for all discovered persistence-units keyed by the PU name. |
public static List<ParsedPersistenceXmlDescriptor> locatePersistenceUnits(Map integration)
META-INF/persistence.xml resourcesintegration - The Map of integration settingspublic static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(URL persistenceXmlUrl)
persistence.xml with the assumption that it defines a single
persistence-unit.persistenceXmlUrl - The persistence.xml URLpublic static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(URL persistenceXmlUrl, Map integration)
persistence.xml with the assumption that it defines a single
persistence-unit.persistenceXmlUrl - The persistence.xml URLintegration - The Map of integration settingspublic static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(URL persistenceXmlUrl, PersistenceUnitTransactionType transactionType, Map integration)
persistence.xml with the assumption that it defines a single
persistence-unit.persistenceXmlUrl - The persistence.xml URLtransactionType - The specific PersistenceUnitTransactionType to incorporate into the persistence-unit descriptorintegration - The Map of integration settingspublic static ParsedPersistenceXmlDescriptor locateNamedPersistenceUnit(URL persistenceXmlUrl, String name)
persistence.xml and return the descriptor for the persistence-unit with matching namepersistenceXmlUrl - The persistence.xml URLname - The PU name to matchpublic static ParsedPersistenceXmlDescriptor locateNamedPersistenceUnit(URL persistenceXmlUrl, String name, Map integration)
persistence.xml and return the descriptor for the persistence-unit with matching namepersistenceXmlUrl - The persistence.xml URLname - The PU name to matchintegration - The Map of integration settingspublic static ParsedPersistenceXmlDescriptor locateNamedPersistenceUnit(URL persistenceXmlUrl, String name, PersistenceUnitTransactionType transactionType, Map integration)
persistence.xml and return the descriptor for the persistence-unit with matching namepersistenceXmlUrl - The persistence.xml URLname - The PU name to matchtransactionType - The specific PersistenceUnitTransactionType to incorporate into the persistence-unit descriptorintegration - The Map of integration settingspublic static Map<String,ParsedPersistenceXmlDescriptor> parse(URL persistenceXmlUrl, PersistenceUnitTransactionType transactionType)
public static Map<String,ParsedPersistenceXmlDescriptor> parse(URL persistenceXmlUrl, PersistenceUnitTransactionType transactionType, Map integration)
persistence.xml and return a Map of descriptors
for all discovered persistence-units keyed by the PU name.persistenceXmlUrl - The URL of the persistence.xml to parsetransactionType - The specific PersistenceUnitTransactionType to incorporate into the persistence-unit descriptorintegration - The Map of integration settingsCopyright © 2019 JBoss by Red Hat. All rights reserved.