public abstract class AbstractItemWriter extends Object implements ItemWriter
Constructor and Description |
---|
AbstractItemWriter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void open(Serializable checkpoint) throws Exception
open
in interface ItemWriter
checkpoint
- last checkpoint for this ItemReaderException
- (or subclass) if an error occurs.public void close() throws Exception
close
in interface ItemWriter
Exception
- (or subclass) if an error occurs.public abstract void writeItems(List<Object> items) throws Exception
writeItems
in interface ItemWriter
items
- specifies the list of items to write.Exception
- (or subclass) if an error occurs.public Serializable checkpointInfo() throws Exception
checkpointInfo
in interface ItemWriter
Exception
- (or subclass) if an error occurs.Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.