public interface ItemWriter
Modifier and Type | Method and Description |
---|---|
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(Serializable checkpoint)
The open method prepares the writer to write items.
|
void |
writeItems(List<Object> items)
The writeItems method writes a list of item
for the current chunk.
|
void open(Serializable checkpoint) throws Exception
checkpoint
- specifies the last checkpointException
- is thrown for any errors.void close() throws Exception
Exception
- is thrown for any errors.void writeItems(List<Object> items) throws 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).Exception
- is thrown for any errors.Serializable checkpointInfo() throws Exception
Exception
- is thrown for any errors.Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.