public interface ItemWriter
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
checkpointInfo()
The checkpointInfo method returns the current
checkpoint data for this writer.
|
void |
close()
The close method marks the end of use of the
ItemWriter.
|
void |
open(java.io.Serializable checkpoint)
The open method prepares the writer to write items.
|
void |
writeItems(java.util.List<java.lang.Object> items)
The writeItems method writes a list of item
for the current chunk.
|
void open(java.io.Serializable checkpoint) throws java.lang.Exception
checkpoint
- specifies the last checkpointjava.lang.Exception
- is thrown for any errors.void close() throws java.lang.Exception
java.lang.Exception
- is thrown for any errors.void writeItems(java.util.List<java.lang.Object> items) throws java.lang.Exception
items
- specifies the list of items to write.
This may be an empty list (e.g. if all the
items have been filtered out by the
ItemProcessor).java.lang.Exception
- is thrown for any errors.java.io.Serializable checkpointInfo() throws java.lang.Exception
java.lang.Exception
- is thrown for any errors.