|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.batch.item.support.CompositeItemWriter
public class CompositeItemWriter
Calls a collection of ItemWriters in fixed-order sequence.
Constructor Summary | |
---|---|
CompositeItemWriter()
|
Method Summary | |
---|---|
void |
clear()
Clear any buffers that are being held. |
void |
flush()
Flush any buffers that are being held. |
void |
setDelegates(List delegates)
|
void |
write(Object data)
Calls injected ItemProcessors in order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeItemWriter()
Method Detail |
---|
public void setDelegates(List delegates)
public void write(Object data) throws Exception
write
in interface ItemWriter
Exception
- if there are errors. If the writer is used inside a
retry or a batch the framework will catch the exception and convert or
rethrow it as appropriate.public void clear() throws ClearFailedException
ItemWriter
clear
in interface ItemWriter
ClearFailedException
- in case of an error. If this exception is
thrown the writer may be in an inconsistent state and manual intervention
might be required to reconcile the data with persistent output.public void flush() throws FlushFailedException
ItemWriter
flush
in interface ItemWriter
FlushFailedException
- in case of an error. If this exception is
thrown the writer may be in an inconsistent state and manual intervention
might be required to reconcile the data with persistent output.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |