Class MyBatisPagingItemReaderBuilder<T>

    • Constructor Detail

      • MyBatisPagingItemReaderBuilder

        public MyBatisPagingItemReaderBuilder()
    • Method Detail

      • parameterValues

        public MyBatisPagingItemReaderBuilder<T> parameterValues​(java.util.Map<java.lang.String,​java.lang.Object> parameterValues)
        Set the parameter values to be used for the query execution.
        Parameters:
        parameterValues - the parameter values to be used for the query execution
        Returns:
        this instance for method chaining
        See Also:
        MyBatisPagingItemReader.setParameterValues(Map)
      • pageSize

        public MyBatisPagingItemReaderBuilder<T> pageSize​(int pageSize)
        The number of records to request per page/query. Defaults to 10. Must be greater than zero.
        Parameters:
        pageSize - number of items
        Returns:
        this instance for method chaining
        See Also:
        AbstractPagingItemReader.setPageSize(int)
      • saveState

        public MyBatisPagingItemReaderBuilder<T> saveState​(boolean saveState)
        Configure if the state of the ItemStreamSupport should be persisted within the ExecutionContext for restart purposes.
        Parameters:
        saveState - defaults to true
        Returns:
        The current instance of the builder.
        See Also:
        AbstractItemCountingItemStreamItemReader.setSaveState(boolean)
      • maxItemCount

        public MyBatisPagingItemReaderBuilder<T> maxItemCount​(int maxItemCount)
        Configure the max number of items to be read.
        Parameters:
        maxItemCount - the max items to be read
        Returns:
        The current instance of the builder.
        See Also:
        AbstractItemCountingItemStreamItemReader.setMaxItemCount(int)