Class MyItemWriteListenerImpl
- java.lang.Object
-
- jakarta.batch.api.chunk.listener.AbstractItemWriteListener
-
- com.ibm.jbatch.tck.artifacts.specialized.MyItemWriteListenerImpl
-
- All Implemented Interfaces:
jakarta.batch.api.chunk.listener.ItemWriteListener
@Named("myItemWriteListenerImpl") public class MyItemWriteListenerImpl extends jakarta.batch.api.chunk.listener.AbstractItemWriteListener
-
-
Field Summary
Fields Modifier and Type Field Description static String
BAD_EXIT_STATUS
static String
GOOD_EXIT_STATUS
-
Constructor Summary
Constructors Constructor Description MyItemWriteListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterWrite(List<Object> items)
void
beforeWrite(List<Object> items)
void
onWriteError(List<Object> items, Exception e)
-
-
-
Field Detail
-
GOOD_EXIT_STATUS
public static final String GOOD_EXIT_STATUS
- See Also:
- Constant Field Values
-
BAD_EXIT_STATUS
public static final String BAD_EXIT_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeWrite
public void beforeWrite(List<Object> items) throws Exception
- Specified by:
beforeWrite
in interfacejakarta.batch.api.chunk.listener.ItemWriteListener
- Overrides:
beforeWrite
in classjakarta.batch.api.chunk.listener.AbstractItemWriteListener
- Throws:
Exception
-
afterWrite
public void afterWrite(List<Object> items) throws Exception
- Specified by:
afterWrite
in interfacejakarta.batch.api.chunk.listener.ItemWriteListener
- Overrides:
afterWrite
in classjakarta.batch.api.chunk.listener.AbstractItemWriteListener
- Throws:
Exception
-
-