public abstract class AbstractItemWriteListener extends java.lang.Object implements ItemWriteListener
Constructor and Description |
---|
AbstractItemWriteListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterWrite(java.util.List<java.lang.Object> items)
Override this method if the ItemWriteListener
will do something after the items are written.
|
void |
beforeWrite(java.util.List<java.lang.Object> items)
Override this method if the ItemWriteListener
will do something before the items are written.
|
void |
onWriteError(java.util.List<java.lang.Object> items,
java.lang.Exception ex)
Override this method if the ItemWriteListener
will do something when the ItemWriter writeItems
method throws an exception.
|
public void beforeWrite(java.util.List<java.lang.Object> items) throws java.lang.Exception
beforeWrite
in interface ItemWriteListener
items
- specifies the items about to be
written.java.lang.Exception
- (or subclass) if an error occurs.public void afterWrite(java.util.List<java.lang.Object> items) throws java.lang.Exception
afterWrite
in interface ItemWriteListener
items
- specifies the items about to be
written.java.lang.Exception
- (or subclass) if an error occurs.public void onWriteError(java.util.List<java.lang.Object> items, java.lang.Exception ex) throws java.lang.Exception
onWriteError
in interface ItemWriteListener
items
- specifies the items about to be
written.ex
- specifies the exception thrown by the item
writer.java.lang.Exception
- (or subclass) if an error occurs.