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, warning
public 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 ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void error(SAXParseException spe) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
public Collection<OJPAPersistenceUnitInfo> getPersistenceUnits()
Copyright © 2009–2020 OrientDB. All rights reserved.