Example usage for org.springframework.batch.item ItemWriter write

List of usage examples for org.springframework.batch.item ItemWriter write

Introduction

In this page you can find the example usage for org.springframework.batch.item ItemWriter write.

Prototype

void write(List<? extends T> items) throws Exception;

Source Link

Document

Process the supplied data element.

Usage

From source file:org.trpr.platform.batch.impl.spring.writer.CompositeItemWriter.java

/**
 * Helper method to sort(if required) and write the results to the output
 *///from  www . java2s.c om
protected void writeToOutput(List<? extends T> data) throws Exception {
    // write the data using the delegates. Sorting etc can be done by the delegates if required as entire collection of data is passed
    for (ItemWriter<? super T> writer : this.delegates) {
        writer.write(data);
    }
}