Class TypedItemReader<R,​C extends Serializable>

  • Type Parameters:
    R - The type of the item returned in readItem().
    C - The type of the Checkpoint. See doCheckpointInfo() and doRead()
    All Implemented Interfaces:
    javax.batch.api.chunk.ItemReader
    Direct Known Subclasses:
    NoStateTypedItemReader

    public abstract class TypedItemReader<R,​C extends Serializable>
    extends Object
    implements javax.batch.api.chunk.ItemReader
    Typesafe abstraction of an ItemReader.
    • Constructor Detail

      • TypedItemReader

        public TypedItemReader()
    • Method Detail

      • doOpen

        protected abstract void doOpen​(C checkpoint)
      • doRead

        protected abstract R doRead()
      • doCheckpointInfo

        protected abstract C doCheckpointInfo()
      • open

        public void open​(Serializable checkpoint)
                  throws Exception
        Specified by:
        open in interface javax.batch.api.chunk.ItemReader
        Throws:
        Exception
      • readItem

        public Object readItem()
                        throws Exception
        Specified by:
        readItem in interface javax.batch.api.chunk.ItemReader
        Throws:
        Exception
      • checkpointInfo

        public Serializable checkpointInfo()
                                    throws Exception
        Specified by:
        checkpointInfo in interface javax.batch.api.chunk.ItemReader
        Throws:
        Exception