|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.batch.api.chunk.AbstractItemWriter
public abstract class AbstractItemWriter
The AbstractItemWriter provides default implementations of not commonly implemented methods.
| Constructor Summary | |
|---|---|
AbstractItemWriter()
|
|
| Method Summary | |
|---|---|
Serializable |
checkpointInfo()
Override this method if the ItemWriter supports checkpoints. |
void |
close()
Override this method if the ItemWriter requires any close time processing. |
void |
open(Serializable checkpoint)
Override this method if the ItemWriter requires any open time processing. |
abstract void |
writeItems(List<Object> items)
Implement write logic for the ItemWriter in this method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractItemWriter()
| Method Detail |
|---|
public void open(Serializable checkpoint)
throws Exception
open in interface ItemWriterlast - checkpoint for this ItemReader
Exception - (or subclass) if an error occurs.
public void close()
throws Exception
close in interface ItemWriterException - (or subclass) if an error occurs.
public abstract void writeItems(List<Object> items)
throws Exception
writeItems in interface ItemWriteritems - specifies the list of items to write.
Exception - (or subclass) if an error occurs.
public Serializable checkpointInfo()
throws Exception
checkpointInfo in interface ItemWriterException - (or subclass) if an error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© Copyright IBM Corp. 2013
Licensed under the Apache License, Version 2.0