persistence.xml files in SE environments.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ClassLoaderService | |
| private final PersistenceUnitTransactionType | |
| private DocumentBuilderFactory | |
| private static final EntityManagerMessageLogger | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| protected | PersistenceXmlParser(ClassLoaderService classLoaderService, PersistenceUnitTransactionType defaultTransactionType)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private DocumentBuilderFactory | |
| private void | |
| private DocumentBuilderFactory | |
| private void | |
| private static boolean | |
| private static String | |
| private static String | |
| private static String | |
| protected List | |
| private Document | |
| public static ParsedPersistenceXmlDescriptor | Returns: The single persistence-unit descriptorThe persistenceXmlUrl)persistence.xml URLParse a specific |
| public static ParsedPersistenceXmlDescriptor | Returns: The single persistence-unit descriptorThe persistenceXmlUrl, Map<K, V> persistence.xml URLThe Map of integration settings integration)Parse a specific |
| public static ParsedPersistenceXmlDescriptor | Returns: The single persistence-unit descriptorThe persistenceXmlUrl, PersistenceUnitTransactionType persistence.xml URLThe specific PersistenceUnitTransactionType to incorporate into the persistence-unit descriptor transactionType, Map<K, V> The Map of integration settings integration)Parse a specific |
| public static ParsedPersistenceXmlDescriptor | Returns: The matching persistence-unit descriptorThe persistenceXmlUrl, String persistence.xml URLThe PU name to match name)Parse a specific |
| public static ParsedPersistenceXmlDescriptor | Returns: The matching persistence-unit descriptorThe persistenceXmlUrl, String persistence.xml URLThe PU name to match name, Map<K, V> The Map of integration settings integration)Parse a specific |
| public static ParsedPersistenceXmlDescriptor | Returns: The matching persistence-unit descriptorThe persistenceXmlUrl, String persistence.xml URLThe PU name to match name, PersistenceUnitTransactionType The specific PersistenceUnitTransactionType to incorporate into the persistence-unit descriptor transactionType, Map<K, V> The Map of integration settings integration)Parse a specific |
| public static List | Returns: List of descriptors for all discovered persistence-units.The Map of integration settings integration)Find all persistence-units from all accessible |
| public static Map | parse(URL persistenceXmlUrl, PersistenceUnitTransactionType transactionType)
Intended only for use by Hibernate tests! |
| public static Map | Returns: Map of persistence-unit descriptors keyed by the PU nameThe URL of the persistenceXmlUrl, PersistenceUnitTransactionType persistence.xml to parseThe specific PersistenceUnitTransactionType to incorporate into the persistence-unit descriptor transactionType, Map<K, V> The Map of integration settings integration)Generic method to parse a specified |
| private void | |
| protected void | |
| private static PersistenceUnitTransactionType | |
| private void |
| classLoaderService | back to summary |
|---|---|
| private final ClassLoaderService classLoaderService | |
| defaultTransactionType | back to summary |
|---|---|
| private final PersistenceUnitTransactionType defaultTransactionType | |
| documentBuilderFactory | back to summary |
|---|---|
| private DocumentBuilderFactory documentBuilderFactory | |
| LOG | back to summary |
|---|---|
| private static final EntityManagerMessageLogger LOG | |
| persistenceUnits | back to summary |
|---|---|
| private final Map<String, ParsedPersistenceXmlDescriptor> persistenceUnits | |
| PersistenceXmlParser | back to summary |
|---|---|
| protected PersistenceXmlParser(ClassLoaderService classLoaderService, PersistenceUnitTransactionType defaultTransactionType) | |
| bindPersistenceUnit | back to summary |
|---|---|
| private void bindPersistenceUnit(ParsedPersistenceXmlDescriptor persistenceUnit, Element persistenceUnitElement) | |
| buildDocumentBuilderFactory | back to summary |
|---|---|
| private DocumentBuilderFactory buildDocumentBuilderFactory() | |
| decodeTransactionType | back to summary |
|---|---|
| private void decodeTransactionType(ParsedPersistenceXmlDescriptor persistenceUnit) | |
| documentBuilderFactory | back to summary |
|---|---|
| private DocumentBuilderFactory documentBuilderFactory() | |
| doResolve | back to summary |
|---|---|
| private void doResolve(Map<K, V> integration) | |
| extractBooleanContent | back to summary |
|---|---|
| private static boolean extractBooleanContent(Element element, boolean defaultBool) | |
| extractContent | back to summary |
|---|---|
| private static String extractContent(Element element) | |
| extractContent | back to summary |
|---|---|
| private static String extractContent(Element element, String defaultStr) | |
| extractInfo | back to summary |
|---|---|
| private static String extractInfo(SAXException error) | |
| getResolvedPersistenceUnits | back to summary |
|---|---|
| protected List | |
| loadUrl | back to summary |
|---|---|
| private Document loadUrl(URL xmlUrl) | |
| locateIndividualPersistenceUnit | back to summary |
|---|---|
| public static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(URL persistenceXmlUrl) Parse a specific
| |
| locateIndividualPersistenceUnit | back to summary |
|---|---|
| public static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(URL persistenceXmlUrl, Map<K, V> integration) Parse a specific
| |
| locateIndividualPersistenceUnit | back to summary |
|---|---|
| public static ParsedPersistenceXmlDescriptor locateIndividualPersistenceUnit(URL persistenceXmlUrl, PersistenceUnitTransactionType transactionType, Map<K, V> integration) Parse a specific
| |
| locateNamedPersistenceUnit | back to summary |
|---|---|
| public static ParsedPersistenceXmlDescriptor locateNamedPersistenceUnit(URL persistenceXmlUrl, String name) Parse a specific
| |
| locateNamedPersistenceUnit | back to summary |
|---|---|
| public static ParsedPersistenceXmlDescriptor locateNamedPersistenceUnit(URL persistenceXmlUrl, String name, Map<K, V> integration) Parse a specific
| |
| locateNamedPersistenceUnit | back to summary |
|---|---|
| public static ParsedPersistenceXmlDescriptor locateNamedPersistenceUnit(URL persistenceXmlUrl, String name, PersistenceUnitTransactionType transactionType, Map<K, V> integration) Parse a specific
| |
| locatePersistenceUnits | back to summary |
|---|---|
| public static List Find all persistence-units from all accessible
| |
| parse | back to summary |
|---|---|
| public static Map Intended only for use by Hibernate tests! Parses a specific persistence.xml file... | |
| parse | back to summary |
|---|---|
| public static Map Generic method to parse a specified
| |
| parsePersistenceXml | back to summary |
|---|---|
| private void parsePersistenceXml(List<URL> xmlUrls, Map<K, V> integration) | |
| parsePersistenceXml | back to summary |
|---|---|
| protected void parsePersistenceXml(URL xmlUrl, Map<K, V> integration) | |
| parseTransactionType | back to summary |
|---|---|
| private static PersistenceUnitTransactionType parseTransactionType(String value) | |
| validate | back to summary |
|---|---|
| private void validate(Document document) Validate the document using the | |
| Modifier and Type | Field and Description |
|---|---|
| private List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | error(SAXParseException
The error information encapsulated in a
SAX parse exception. error)Implements org. |
| public void | fatalError(SAXParseException
The error information encapsulated in a
error)SAXParseException.Implements org. |
| public void | warning(SAXParseException
The warning information encapsulated in a
SAX parse exception. warn)Implements org. |
| errors | back to summary |
|---|---|
| private List<SAXException> errors | |
| ErrorHandlerImpl | back to summary |
|---|---|
| pack-priv ErrorHandlerImpl(List<SAXException> errors) | |
| error | back to summary |
|---|---|
| public void error(SAXParseException error) Implements org. Doc from org. Receive notification of a recoverable error. This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action. The SAX parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end. If the application cannot do so, then the parser should report a fatal error even if the XML recommendation does not require it to do so. Filters may use this method to report other, non-XML errors as well.
| |
| fatalError | back to summary |
|---|---|
| public void fatalError(SAXParseException error) Implements org. Doc from org. Receive notification of a non-recoverable, fatal error. As defined in section 1.2 of the W3C XML 1.0 Recommendation, fatal errors are those that would make it impossible for a parser to continue normal processing. These include violation of a well-formedness constraint, invalid encoding, and forbidden structural errors as described in the W3C XML 1.0 Recommendation.
| |
| warning | back to summary |
|---|---|
| public void warning(SAXParseException warn) Implements org. Doc from org. Receive notification of a warning. SAX parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML recommendation. The default behaviour is to take no action. The SAX parser must continue to provide normal parsing events after invoking this method: it should still be possible for the application to process the document through to the end. Filters may use this method to report other, non-XML warnings as well.
| |