T - アイテム読み取りとして返されるオブジェクトの型 public class DataStoreItemReader<T>
extends java.lang.Object
implements org.springframework.batch.item.ItemStreamReader<T>ItemReader の実装。| 修飾子と型 | フィールドと説明 |
|---|---|
static java.lang.String | READ_POSITION |
| コンストラクターと説明 |
|---|
DataStoreItemReader() 新しいデータストアアイテムリーダーをインスタンス化します。 |
DataStoreItemReader(DataStoreReader<T> dataStoreReader) 新しいデータストアアイテムリーダーをインスタンス化します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | close() |
boolean | isSaveState() 再起動のために内部状態を保存するかどうかを決定するフラグ。 |
void | open(org.springframework.batch.item.ExecutionContext executionContext) |
T | read() |
void | setDataStoreReader(DataStoreReader<T> dataStoreReader) データストアリーダーを設定します。 |
void | setLineDataMapper(LineDataMapper<T> lineDataMapper) ラインデータマッパーを設定します。 |
void | setSaveState(boolean saveState)ExecutionContext の内部データを保存するかどうかを決定するフラグを設定します。 |
void | update(org.springframework.batch.item.ExecutionContext executionContext) |
public static final java.lang.String READ_POSITION
public DataStoreItemReader()
public DataStoreItemReader(DataStoreReader<T> dataStoreReader)
dataStoreReader - データストアリーダー public void open(org.springframework.batch.item.ExecutionContext executionContext)
throws org.springframework.batch.item.ItemStreamExceptionorg.springframework.batch.item.ItemStream 内の open org.springframework.batch.item.ItemStreamExceptionpublic void update(org.springframework.batch.item.ExecutionContext executionContext)
throws org.springframework.batch.item.ItemStreamExceptionorg.springframework.batch.item.ItemStream 内の update org.springframework.batch.item.ItemStreamExceptionpublic void close()
throws org.springframework.batch.item.ItemStreamExceptionorg.springframework.batch.item.ItemStream 内の close org.springframework.batch.item.ItemStreamExceptionpublic T read() throws java.lang.Exception, org.springframework.batch.item.UnexpectedInputException, org.springframework.batch.item.ParseException, org.springframework.batch.item.NonTransientResourceException
org.springframework.batch.item.ItemReader<T> 内の read java.lang.Exceptionorg.springframework.batch.item.UnexpectedInputExceptionorg.springframework.batch.item.ParseExceptionorg.springframework.batch.item.NonTransientResourceExceptionpublic void setLineDataMapper(LineDataMapper<T> lineDataMapper)
lineDataMapper - 新しいラインデータマッパー public void setDataStoreReader(DataStoreReader<T> dataStoreReader)
dataStoreReader - 新しいデータストアリーダー public void setSaveState(boolean saveState)
ExecutionContext の内部データを保存するかどうかを決定するフラグを設定します。このストリームから状態を保存せず、再起動可能にする必要がない場合のみ、これを false に切り替えます。リーダーが並行環境で使用されている場合は、常に false に設定してください。saveState - フラグ値(デフォルトは true)。public boolean isSaveState()