
public class JPAHandler extends org.xml.sax.helpers.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 org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String name) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void error(SAXParseException spe) throws SAXException
error in interface ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic Collection<OJPAPersistenceUnitInfo> getPersistenceUnits()
Copyright © 2009–2016 Orient Technologies. All rights reserved.