クラス JdbcStepExecutionDao
java.lang.ObjectSE
org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
org.springframework.batch.core.repository.dao.JdbcStepExecutionDao
- 実装されたすべてのインターフェース:
StepExecutionDao
,org.springframework.beans.factory.InitializingBean
public class JdbcStepExecutionDao
extends AbstractJdbcBatchMetadataDao
implements StepExecutionDao, org.springframework.beans.factory.InitializingBean
StepExecutionDao
の JDBC 実装。接頭辞プロパティを介して、Spring Batch がステップメタデータに使用するテーブル名をカスタマイズできます。
(Spring の
DataFieldMaxValueIncrementer
抽象化を介して)シーケンスまたはテーブルを使用して、新しい行を挿入する前にすべての主キーを作成します。すべてのオブジェクトがチェックされ、格納されるすべてのフィールドが null でないことが確認されます。null が見つかった場合は、IllegalArgumentException がスローされます。これは JdbcTemplate に任せることもできますが、例外はかなりあいまいであり、例外の原因となったフィールドを強調することはできません。- 作成者:
- Lucas Ward, Dave Syer, Robert Kasanicky, David Turanski, Mahmoud Ben Hassine, Baris Cubukcuoglu, Minsoo Kim
- 関連事項:
フィールドサマリー
クラス org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao から継承されたフィールド
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_SHORT_CONTEXT_LENGTH, DEFAULT_TABLE_PREFIX
コンストラクターのサマリー
メソッドのサマリー
修飾子と型メソッド説明void
addStepExecutions
(JobExecution jobExecution) 親JobExecution
のすべてのStepExecution
を取得します。void
long
countStepExecutions
(JobInstance jobInstance, StringSE stepName) 指定されたステップ名のすべてのStepExecution
をカウントします。void
deleteStepExecution
(StepExecution stepExecution) 指定されたステップ実行を削除します。getLastStepExecution
(JobInstance jobInstance, StringSE stepName) 指定されたJobInstance
の最後のStepExecution
を、作成時間、ID の順に並べて取得します。getStepExecution
(JobExecution jobExecution, LongSE stepExecutionId) その ID からStepExecution
を取得します。void
saveStepExecution
(StepExecution stepExecution) StepExecution を保存します。void
saveStepExecutions
(CollectionSE<StepExecution> stepExecutions) StepExecutions のバッチ挿入void
setExitMessageLength
(int exitMessageLength) データベース内の出口メッセージ長のパブリック setter。void
setStepExecutionIncrementer
(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer stepExecutionIncrementer) void
updateStepExecution
(StepExecution stepExecution) 指定された StepExecution を更新しますクラス org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao から継承されたメソッド
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix
コンストラクターの詳細
JdbcStepExecutionDao
public JdbcStepExecutionDao()
メソッドの詳細
setExitMessageLength
public void setExitMessageLength(int exitMessageLength) データベース内の出口メッセージ長のパブリック setter。スキーマを変更していない場合は、これを設定しないでください。- パラメーター:
exitMessageLength
- 設定する exitMessageLength
setStepExecutionIncrementer
public void setStepExecutionIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer stepExecutionIncrementer) afterPropertiesSet
- 次で指定:
- インターフェース
org.springframework.beans.factory.InitializingBean
のafterPropertiesSet
- オーバーライド:
- クラス
AbstractJdbcBatchMetadataDao
のafterPropertiesSet
- 例外:
ExceptionSE
saveStepExecution
StepExecution を保存します。一意の ID が stepExecutionIncrementer によって生成され、StepExecution に設定されます。次に、すべての値が INSERT ステートメントを介して保存されます。- 次で指定:
- インターフェース
StepExecutionDao
のsaveStepExecution
- パラメーター:
stepExecution
- 保存するStepExecution
インスタンス。- 関連事項:
saveStepExecutions
StepExecutions のバッチ挿入- 次で指定:
- インターフェース
StepExecutionDao
のsaveStepExecutions
- パラメーター:
stepExecutions
- 保存するJobExecution
インスタンスのコレクション。- 関連事項:
updateStepExecution
インターフェースからコピーされた説明:StepExecutionDao
指定された StepExecution を更新します事前条件: ID は null であってはなりません。
- 次で指定:
- インターフェース
StepExecutionDao
のupdateStepExecution
- パラメーター:
stepExecution
- 更新されるStepExecution
インスタンス。
getStepExecution
インターフェースからコピーされた説明:StepExecutionDao
その ID からStepExecution
を取得します。- 次で指定:
- インターフェース
StepExecutionDao
のgetStepExecution
- パラメーター:
jobExecution
- 親JobExecution
stepExecutionId
- ステップ実行 ID- 戻り値:
StepExecution
getLastStepExecution
インターフェースからコピーされた説明:StepExecutionDao
指定されたJobInstance
の最後のStepExecution
を、作成時間、ID の順に並べて取得します。- 次で指定:
- インターフェース
StepExecutionDao
のgetLastStepExecution
- パラメーター:
jobInstance
- 親JobInstance
stepName
- ステップの名前- 戻り値:
StepExecution
addStepExecutions
インターフェースからコピーされた説明:StepExecutionDao
親JobExecution
のすべてのStepExecution
を取得します。- 次で指定:
- インターフェース
StepExecutionDao
のaddStepExecutions
- パラメーター:
jobExecution
- 親ジョブの実行
countStepExecutions
インターフェースからコピーされた説明:StepExecutionDao
指定されたステップ名のすべてのStepExecution
をカウントします。- 次で指定:
- インターフェース
StepExecutionDao
のcountStepExecutions
- パラメーター:
jobInstance
- 親JobInstance
stepName
- ステップの名前- 戻り値:
- 特定のステップの
StepExecution
の数
deleteStepExecution
指定されたステップ実行を削除します。- 次で指定:
- インターフェース
StepExecutionDao
のdeleteStepExecution
- パラメーター:
stepExecution
- 削除するステップ実行