Class JpaOrmXmlEventReader
- java.lang.Object
-
- javax.xml.stream.util.EventReaderDelegate
-
- org.hibernate.boot.jaxb.internal.stax.JpaOrmXmlEventReader
-
- All Implemented Interfaces:
Iterator<Object>
,XMLEventReader
public class JpaOrmXmlEventReader extends EventReaderDelegate
StAX EVentReader which handles a few oddities specific to JPAorm.xml
Mainly we handle the namespace change. Ultimately we should handle "upgrading" the documents as well. The idea being that we'd always treat all versions as the latest. {@see HHH-8108} for more discussion.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JpaOrmXmlEventReader.BadVersionException
-
Constructor Summary
Constructors Constructor Description JpaOrmXmlEventReader(XMLEventReader reader)
JpaOrmXmlEventReader(XMLEventReader reader, XMLEventFactory xmlEventFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLEvent
nextEvent()
XMLEvent
peek()
-
Methods inherited from class javax.xml.stream.util.EventReaderDelegate
close, getElementText, getParent, getProperty, hasNext, next, nextTag, remove, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
JpaOrmXmlEventReader
public JpaOrmXmlEventReader(XMLEventReader reader)
-
JpaOrmXmlEventReader
public JpaOrmXmlEventReader(XMLEventReader reader, XMLEventFactory xmlEventFactory)
-
-
Method Detail
-
peek
public XMLEvent peek() throws XMLStreamException
- Specified by:
peek
in interfaceXMLEventReader
- Overrides:
peek
in classEventReaderDelegate
- Throws:
XMLStreamException
-
nextEvent
public XMLEvent nextEvent() throws XMLStreamException
- Specified by:
nextEvent
in interfaceXMLEventReader
- Overrides:
nextEvent
in classEventReaderDelegate
- Throws:
XMLStreamException
-
-