Class MyBatisCursorItemReaderBuilder<T>

    • Constructor Detail

      • MyBatisCursorItemReaderBuilder

        public MyBatisCursorItemReaderBuilder()
    • Method Detail

      • parameterValues

        public MyBatisCursorItemReaderBuilder<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:
        MyBatisCursorItemReader.setParameterValues(Map)
      • saveState

        public MyBatisCursorItemReaderBuilder<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 MyBatisCursorItemReaderBuilder<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)