public abstract class AbstractItemWriteListener extends Object implements ItemWriteListener
| Constructor and Description |
|---|
AbstractItemWriteListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterWrite(List<Object> items)
Override this method if the ItemWriteListener
will do something after the items are written.
|
void |
beforeWrite(List<Object> items)
Override this method if the ItemWriteListener
will do something before the items are written.
|
void |
onWriteError(List<Object> items,
Exception ex)
Override this method if the ItemWriteListener
will do something when the ItemWriter writeItems
method throws an exception.
|
public void beforeWrite(List<Object> items) throws Exception
beforeWrite in interface ItemWriteListeneritems - specifies the items about to be
written.Exception - (or subclass) if an error occurs.public void afterWrite(List<Object> items) throws Exception
afterWrite in interface ItemWriteListeneritems - specifies the items about to be
written.Exception - (or subclass) if an error occurs.public void onWriteError(List<Object> items, Exception ex) throws Exception
onWriteError in interface ItemWriteListeneritems - specifies the items about to be
written.ex - specifies the exception thrown by the item
writer.Exception - (or subclass) if an error occurs.Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.