public abstract class AbstractItemWriter extends java.lang.Object implements ItemWriter
| Constructor and Description |
|---|
AbstractItemWriter() |
| Modifier and Type | Method and Description |
|---|---|
java.io.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(java.io.Serializable checkpoint)
Override this method if the ItemWriter requires
any open time processing.
|
abstract void |
writeItems(java.util.List<java.lang.Object> items)
Implement write logic for the ItemWriter in this
method.
|
public void open(java.io.Serializable checkpoint)
throws java.lang.Exception
open in interface ItemWritercheckpoint - last checkpoint for this ItemReaderjava.lang.Exception - (or subclass) if an error occurs.public void close()
throws java.lang.Exception
close in interface ItemWriterjava.lang.Exception - (or subclass) if an error occurs.public abstract void writeItems(java.util.List<java.lang.Object> items)
throws java.lang.Exception
writeItems in interface ItemWriteritems - specifies the list of items to write.java.lang.Exception - (or subclass) if an error occurs.public java.io.Serializable checkpointInfo()
throws java.lang.Exception
checkpointInfo in interface ItemWriterjava.lang.Exception - (or subclass) if an error occurs.