Class SqlExecutorWriter

java.lang.Object
ca.uhn.fhir.jpa.batch.writer.SqlExecutorWriter
All Implemented Interfaces:
org.springframework.batch.item.ItemWriter<List<String>>

public class SqlExecutorWriter extends Object implements org.springframework.batch.item.ItemWriter<List<String>>
This Spring Batch writer accepts a list of SQL commands and executes them. The total number of entities updated or deleted is stored in the execution context with the key ENTITY_TOTAL_UPDATED_OR_DELETED. The entire list is committed within a single transaction (provided by Spring Batch).