クラス 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, Yanming Zhou
- 関連事項:
フィールド概要
クラス org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao から継承されたフィールド
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_SHORT_CONTEXT_LENGTH, DEFAULT_TABLE_PREFIXコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明voidaddStepExecutions(JobExecution jobExecution) 親JobExecutionのすべてのStepExecutionを取得します。voidlongcountStepExecutions(JobInstance jobInstance, StringSE stepName) 指定されたステップ名のすべてのStepExecutionをカウントします。voiddeleteStepExecution(StepExecution stepExecution) 指定されたステップ実行を削除します。getLastStepExecution(JobInstance jobInstance, StringSE stepName) 指定されたJobInstanceの最後のStepExecutionを、作成時間、ID の順に並べて取得します。getStepExecution(JobExecution jobExecution, LongSE stepExecutionId) その ID からStepExecutionを取得します。voidsaveStepExecution(StepExecution stepExecution) StepExecution を保存します。voidsaveStepExecutions(CollectionSE<StepExecution> stepExecutions) StepExecutions のバッチ挿入voidsetExitMessageLength(int exitMessageLength) データベース内の出口メッセージ長のパブリック setter。voidsetStepExecutionIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer stepExecutionIncrementer) voidupdateStepExecution(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 を保存します。stepExecutionIncrementer によって一意の ID が生成され、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- 親JobExecutionstepExecutionId- ステップ実行 ID- 戻り値:
StepExecution
getLastStepExecution
インターフェースからコピーされた説明:StepExecutionDao指定されたJobInstanceの最後のStepExecutionを、作成時間、ID の順に並べて取得します。- 次で指定:
- インターフェース
StepExecutionDaoのgetLastStepExecution - パラメーター:
jobInstance- 親JobInstancestepName- ステップの名前- 戻り値:
StepExecution
addStepExecutions
インターフェースからコピーされた説明:StepExecutionDao親JobExecutionのすべてのStepExecutionを取得します。- 次で指定:
- インターフェース
StepExecutionDaoのaddStepExecutions - パラメーター:
jobExecution- 親ジョブの実行
countStepExecutions
インターフェースからコピーされた説明:StepExecutionDao指定されたステップ名のすべてのStepExecutionをカウントします。- 次で指定:
- インターフェース
StepExecutionDaoのcountStepExecutions - パラメーター:
jobInstance- 親JobInstancestepName- ステップの名前- 戻り値:
- 特定のステップの
StepExecutionの数
deleteStepExecution
指定されたステップ実行を削除します。- 次で指定:
- インターフェース
StepExecutionDaoのdeleteStepExecution - パラメーター:
stepExecution- 削除するステップ実行