
public class JPAHandler extends DefaultHandler
| Constructor and Description |
|---|
JPAHandler(URL persistenceXmlRoot,
JPAVersion jpaVersion)
Create a new JPA Handler for the given persistence.xml
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Collect up the characters, as element's characters may be split across multiple calls.
|
void |
endElement(String uri,
String localName,
String name) |
void |
error(SAXParseException spe)
We throw this exception to be caught further up and logged as an error there
|
Collection<OJPAPersistenceUnitInfo> |
getPersistenceUnits() |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic JPAHandler(URL persistenceXmlRoot, JPAVersion jpaVersion)
persistenceXmlRoot - jpaVersion - the version of the JPA schema used in the xmlpublic void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void error(SAXParseException spe) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionpublic Collection<OJPAPersistenceUnitInfo> getPersistenceUnits()
Copyright © 2009–2025 OrientDB. All rights reserved.