|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.item.support.CompositeItemWriter<T>
public class CompositeItemWriter<T>
Calls a collection of ItemWriters in fixed-order sequence.
The implementation is thread-safe if all delegates are thread-safe.
| Constructor Summary | |
|---|---|
CompositeItemWriter()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
close()
If any resources are needed for the stream to operate they need to be destroyed here. |
void |
open(ExecutionContext executionContext)
Open the stream for the provided ExecutionContext. |
void |
setDelegates(List<ItemWriter<? super T>> delegates)
|
void |
setIgnoreItemStream(boolean ignoreItemStream)
|
void |
update(ExecutionContext executionContext)
Indicates that the execution context provided during open is about to be saved. |
void |
write(List<? extends T> item)
Process the supplied data element. |
| 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 setIgnoreItemStream(boolean ignoreItemStream)
public void write(List<? extends T> item)
throws Exception
ItemWriter
write in interface ItemWriter<T>Exception - if there are errors. The framework will catch the
exception and convert or rethrow it as appropriate.
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setDelegates(List<ItemWriter<? super T>> delegates)
public void close()
throws ItemStreamException
ItemStream
close in interface ItemStreamItemStreamException
public void open(ExecutionContext executionContext)
throws ItemStreamException
ItemStreamExecutionContext.
open in interface ItemStreamItemStreamException
public void update(ExecutionContext executionContext)
throws ItemStreamException
ItemStream
update in interface ItemStreamexecutionContext - to be updated
ItemStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||