|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemWriteListener
Listener interface around the writing of an item.
Method Summary | |
---|---|
void |
afterWrite(Object item)
Called after ItemWriter.write(Object) If the item is last in a
chunk, this will be called before any transaction is committed, and
before ChunkListener.afterChunk() |
void |
beforeWrite(Object item)
Called before ItemWriter.write(Object) |
void |
onWriteError(Exception ex,
Object item)
Called if an error occurs while trying to write. |
Method Detail |
---|
void beforeWrite(Object item)
ItemWriter.write(Object)
item
- to be writtenvoid afterWrite(Object item)
ItemWriter.write(Object)
If the item is last in a
chunk, this will be called before any transaction is committed, and
before ChunkListener.afterChunk()
item
- written itemvoid onWriteError(Exception ex, Object item)
ex
- thrown from ItemWriter
item
- attempted to be written.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |