Class StagingItemReader<T>

    • Constructor Detail

      • StagingItemReader

        public StagingItemReader()
    • Method Detail

      • setDataSource

        public void setDataSource​(javax.sql.DataSource dataSource)
      • destroy

        public void destroy()
                     throws java.lang.Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        java.lang.Exception
      • afterPropertiesSet

        public final void afterPropertiesSet()
                                      throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • read

        public ProcessIndicatorItemWrapper<T> read()
        Description copied from interface: ItemReader
        Reads a piece of input data and advance to the next one. Implementations must return null at the end of the input data set. In a transactional setting, caller might get the same item twice from successive calls (or otherwise), if the first call was in a transaction that rolled back.
        Specified by:
        read in interface ItemReader<T>
        Returns:
        T the item to be processed or null if the data source is exhausted
      • afterStep

        public ExitStatus afterStep​(StepExecution stepExecution)
        Description copied from interface: StepExecutionListener
        Give a listener a chance to modify the exit status from a step. The value returned will be combined with the normal exit status using ExitStatus.and(ExitStatus). Called after execution of step's processing logic (both successful or failed). Throwing exception in this method has no effect, it will only be logged.
        Specified by:
        afterStep in interface StepExecutionListener
        Parameters:
        stepExecution - StepExecution instance.
        Returns:
        an ExitStatus to combine with the normal value. Return null to leave the old value unchanged.