Class ChunkReader

  • All Implemented Interfaces:
    javax.batch.api.chunk.ItemReader

    @Dependent
    public class ChunkReader
    extends javax.batch.api.chunk.AbstractItemReader
    BulkData Import ChunkReader
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.batch.runtime.context.JobContext jobCtx  
      (package private) long numOfLinesToSkip  
      (package private) javax.batch.runtime.context.StepContext stepCtx  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChunkReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.Serializable checkpointInfo()  
      void close()  
      void open​(java.io.Serializable checkpoint)  
      java.lang.Object readItem()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stepCtx

        @Inject
        javax.batch.runtime.context.StepContext stepCtx
      • jobCtx

        @Inject
        javax.batch.runtime.context.JobContext jobCtx
      • numOfLinesToSkip

        long numOfLinesToSkip
    • Constructor Detail

      • ChunkReader

        public ChunkReader()
    • Method Detail

      • open

        public void open​(java.io.Serializable checkpoint)
                  throws java.lang.Exception
        Specified by:
        open in interface javax.batch.api.chunk.ItemReader
        Overrides:
        open in class javax.batch.api.chunk.AbstractItemReader
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface javax.batch.api.chunk.ItemReader
        Overrides:
        close in class javax.batch.api.chunk.AbstractItemReader
        Throws:
        java.lang.Exception
      • checkpointInfo

        public java.io.Serializable checkpointInfo()
                                            throws java.lang.Exception
        Specified by:
        checkpointInfo in interface javax.batch.api.chunk.ItemReader
        Overrides:
        checkpointInfo in class javax.batch.api.chunk.AbstractItemReader
        Throws:
        java.lang.Exception
      • readItem

        public java.lang.Object readItem()
                                  throws java.lang.Exception
        Specified by:
        readItem in interface javax.batch.api.chunk.ItemReader
        Specified by:
        readItem in class javax.batch.api.chunk.AbstractItemReader
        Throws:
        java.lang.Exception