public class PersistenceXmlParser
extends java.lang.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(java.net.URL persistenceXmlUrl)
Parse a specific
persistence.xml with the assumption that it defines a single
persistence-unit. |
static ParsedPersistenceXmlDescriptor |
locateIndividualPersistenceUnit(java.net.URL persistenceXmlUrl,
java.util.Map integration)
Parse a specific
persistence.xml with the assumption that it defines a single
persistence-unit. |
static ParsedPersistenceXmlDescriptor |
locateIndividualPersistenceUnit(java.net.URL persistenceXmlUrl,
javax.persistence.spi.PersistenceUnitTransactionType transactionType,
java.util.Map integration)
Parse a specific
persistence.xml with the assumption that it defines a single
persistence-unit. |
static ParsedPersistenceXmlDescriptor |
locateNamedPersistenceUnit(java.net.URL persistenceXmlUrl,
java.lang.String name)
Parse a specific
persistence.xml and return the descriptor for the persistence-unit with matching name |
static ParsedPersistenceXmlDescriptor |
locateNamedPersistenceUnit(java.net.URL persistenceXmlUrl,
java.lang.String name,
java.util.Map integration)
Parse a specific
persistence.xml and return the descriptor for the persistence-unit with matching name |
static ParsedPersistenceXmlDescriptor |
locateNamedPersistenceUnit(java.net.URL persistenceXmlUrl,
java.lang.String name,
javax.persistence.spi.PersistenceUnitTransactionType transactionType,
java.util.Map integration)
Parse a specific
persistence.xml and return the descriptor for the persistence-unit with matching name |
static java.util.List<ParsedPersistenceXmlDescriptor> |
locatePersistenceUnits(java.util.Map integration)
Find all persistence-units from all accessible
META-INF/persistence.xml resources |
static java.util.Map<java.lang.String,ParsedPersistenceXmlDescriptor> |
parse(java.net.URL persistenceXmlUrl,
javax.persistence.spi.PersistenceUnitTransactionType transactionType)
Intended only for use by Hibernate tests!
Parses a specific persistence.xml file...
|
static java.util.Map<java.lang.String,ParsedPersistenceXmlDescriptor> |
parse(java.net.URL persistenceXmlUrl,
javax.persistence.spi.PersistenceUnitTransactionType transactionType,
java.util.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 java.util.List<ParsedPersistenceXmlDescriptor> locatePersistenceUnits(java.util.Map integration)
META-INF/persistence.xml resourcesintegration - The Map of integration settingspublic static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(java.net.URL persistenceXmlUrl)
persistence.xml with the assumption that it defines a single
persistence-unit.persistenceXmlUrl - The persistence.xml URLpublic static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(java.net.URL persistenceXmlUrl, java.util.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(java.net.URL persistenceXmlUrl, javax.persistence.spi.PersistenceUnitTransactionType transactionType, java.util.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(java.net.URL persistenceXmlUrl, java.lang.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(java.net.URL persistenceXmlUrl, java.lang.String name, java.util.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(java.net.URL persistenceXmlUrl, java.lang.String name, javax.persistence.spi.PersistenceUnitTransactionType transactionType, java.util.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 java.util.Map<java.lang.String,ParsedPersistenceXmlDescriptor> parse(java.net.URL persistenceXmlUrl, javax.persistence.spi.PersistenceUnitTransactionType transactionType)
public static java.util.Map<java.lang.String,ParsedPersistenceXmlDescriptor> parse(java.net.URL persistenceXmlUrl, javax.persistence.spi.PersistenceUnitTransactionType transactionType, java.util.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 © 2001-2018 Red Hat, Inc. All Rights Reserved.