@Named
 @Dependent
public class DatabaseItemWriter
extends javax.batch.api.chunk.AbstractItemWriter
ItemWriter実装クラス。
 
 UniversalDao.insert(Object)を使用して、Entityオブジェクトの内容をデータベースに登録する。| Constructor and Description | 
|---|
DatabaseItemWriter(javax.batch.runtime.context.JobContext jobContext,
                  javax.batch.runtime.context.StepContext stepContext,
                  StepConfig stepConfig)
コンストラクタ。 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
open(java.io.Serializable checkpoint)  | 
void | 
writeItems(java.util.List<java.lang.Object> items)  | 
@Inject
public DatabaseItemWriter(javax.batch.runtime.context.JobContext jobContext,
                                  javax.batch.runtime.context.StepContext stepContext,
                                  StepConfig stepConfig)
jobContext - JobContextstepContext - StepContextstepConfig - ステップの設定public void open(java.io.Serializable checkpoint)
          throws java.lang.Exception
open in interface javax.batch.api.chunk.ItemWriteropen in class javax.batch.api.chunk.AbstractItemWriterjava.lang.Exceptionpublic void writeItems(java.util.List<java.lang.Object> items)
                throws java.lang.Exception
writeItems in interface javax.batch.api.chunk.ItemWriterwriteItems in class javax.batch.api.chunk.AbstractItemWriterjava.lang.Exception