Class DoSomethingItemWriterImpl

  • All Implemented Interfaces:
    jakarta.batch.api.chunk.ItemWriter

    @Named("doSomethingItemWriterImpl")
    public class DoSomethingItemWriterImpl
    extends jakarta.batch.api.chunk.AbstractItemWriter
    • Constructor Detail

      • DoSomethingItemWriterImpl

        public DoSomethingItemWriterImpl()
    • Method Detail

      • open

        public void open​(Serializable checkpointData)
                  throws Exception
        Specified by:
        open in interface jakarta.batch.api.chunk.ItemWriter
        Overrides:
        open in class jakarta.batch.api.chunk.AbstractItemWriter
        Throws:
        Exception
      • close

        public void close()
                   throws Exception
        Specified by:
        close in interface jakarta.batch.api.chunk.ItemWriter
        Overrides:
        close in class jakarta.batch.api.chunk.AbstractItemWriter
        Throws:
        Exception
      • writeItems

        public void writeItems​(List<Object> myData)
                        throws Exception
        Specified by:
        writeItems in interface jakarta.batch.api.chunk.ItemWriter
        Specified by:
        writeItems in class jakarta.batch.api.chunk.AbstractItemWriter
        Throws:
        Exception
      • checkpointInfo

        public CheckpointData checkpointInfo()
                                      throws Exception
        Specified by:
        checkpointInfo in interface jakarta.batch.api.chunk.ItemWriter
        Overrides:
        checkpointInfo in class jakarta.batch.api.chunk.AbstractItemWriter
        Throws:
        Exception