|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.item.xml.stax.DefaultTransactionalEventReader
public class DefaultTransactionalEventReader
Class used to wrap XMLEventReader. Events from wrapped reader are stored in
EventSequence
to support transactions.
Field Summary | |
---|---|
protected javax.xml.stream.XMLEventReader |
wrappedEventReader
|
Constructor Summary | |
---|---|
DefaultTransactionalEventReader(javax.xml.stream.XMLEventReader wrappedReader)
Deprecated. Creates instance of this class and wraps XMLEventReader. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
Deprecated. |
void |
close()
|
String |
getElementText()
|
Object |
getProperty(String name)
|
boolean |
hasNext()
Deprecated. Check if there are more events. |
Object |
next()
|
javax.xml.stream.events.XMLEvent |
nextEvent()
Deprecated. Get the next XMLEvent |
javax.xml.stream.events.XMLEvent |
nextTag()
|
void |
onCommit()
Deprecated. Callback on transacion commit. |
void |
onRollback()
Deprecated. Callback on transaction rollback. |
javax.xml.stream.events.XMLEvent |
peek()
Deprecated. Check the next XMLEvent without reading it from the stream. |
void |
remove()
Deprecated. In this implementation throws UnsupportedOperationException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.stream.XMLEventReader |
---|
close, getElementText, getProperty, nextTag |
Methods inherited from interface java.util.Iterator |
---|
next |
Field Detail |
---|
protected javax.xml.stream.XMLEventReader wrappedEventReader
Constructor Detail |
---|
public DefaultTransactionalEventReader(javax.xml.stream.XMLEventReader wrappedReader)
wrappedReader
- event reader to be wrapped.Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void onRollback()
onRollback
in interface TransactionalEventReader
public void onCommit()
onCommit
in interface TransactionalEventReader
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in interface javax.xml.stream.XMLEventReader
public javax.xml.stream.events.XMLEvent nextEvent() throws javax.xml.stream.XMLStreamException
nextEvent
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
- if there is an error with the underlying XML.
NoSuchElementException
- iteration has no more elements.XMLEvent
public javax.xml.stream.events.XMLEvent peek() throws javax.xml.stream.XMLStreamException
peek
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
XMLEvent
public void remove()
remove
in interface Iterator
public void close() throws javax.xml.stream.XMLStreamException
close
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public String getElementText() throws javax.xml.stream.XMLStreamException
getElementText
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public Object getProperty(String name) throws IllegalArgumentException
getProperty
in interface javax.xml.stream.XMLEventReader
IllegalArgumentException
public javax.xml.stream.events.XMLEvent nextTag() throws javax.xml.stream.XMLStreamException
nextTag
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public Object next()
next
in interface Iterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |