Package ca.uhn.fhir.jpa.batch.writer
Class SqlExecutorWriter
java.lang.Object
ca.uhn.fhir.jpa.batch.writer.SqlExecutorWriter
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).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setStepExecution
(org.springframework.batch.core.StepExecution stepExecution) void
-
Field Details
-
ENTITY_TOTAL_UPDATED_OR_DELETED
- See Also:
-
-
Constructor Details
-
SqlExecutorWriter
public SqlExecutorWriter()
-
-
Method Details