public class JdbcStepExecutionDao extends AbstractJdbcBatchMetadataDao implements StepExecutionDao, org.springframework.beans.factory.InitializingBean
StepExecutionDao
の JDBC 実装。DataFieldMaxValueIncrementer
抽象化を介して)シーケンスまたはテーブルを使用して、新しい行を挿入する前にすべての主キーを作成します。すべてのオブジェクトがチェックされ、格納されるすべてのフィールドが null でないことが確認されます。null が見つかった場合は、IllegalArgumentException がスローされます。これは JdbcTemplate に任せることもできますが、例外はかなりあいまいであり、例外の原因となったフィールドを強調することはできません。StepExecutionDao
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX
コンストラクターと説明 |
---|
JdbcStepExecutionDao() |
修飾子と型 | メソッドと説明 |
---|---|
void | addStepExecutions(JobExecution jobExecution) 親 JobExecution のすべての StepExecution を取得します。 |
void | afterPropertiesSet() |
int | countStepExecutions(JobInstance jobInstance, java.lang.String stepName) 指定されたステップ名のすべての StepExecution をカウントします。 |
StepExecution | getLastStepExecution(JobInstance jobInstance, java.lang.String stepName) 開始時刻、次に ID の順に並べられた、指定された JobInstance の最後の StepExecution を取得します。 |
StepExecution | getStepExecution(JobExecution jobExecution, java.lang.Long stepExecutionId) その ID から StepExecution を取得します。 |
void | saveStepExecution(StepExecution stepExecution) StepExecution を保存します。 |
void | saveStepExecutions(java.util.Collection<StepExecution> stepExecutions) StepExecutions のバッチ挿入 |
void | setExitMessageLength(int exitMessageLength) データベース内の出口メッセージ長のパブリック setter。 |
void | setStepExecutionIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer stepExecutionIncrementer) |
void | updateStepExecution(StepExecution stepExecution) 指定された StepExecution を更新します。前提条件: ID を null にすることはできません。 |
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix
public void setExitMessageLength(int exitMessageLength)
exitMessageLength
- 設定する exitMessageLengthpublic void setStepExecutionIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer stepExecutionIncrementer)
public void afterPropertiesSet() throws java.lang.Exception
org.springframework.beans.factory.InitializingBean
の afterPropertiesSet
AbstractJdbcBatchMetadataDao
の afterPropertiesSet
java.lang.Exception
public void saveStepExecution(StepExecution stepExecution)
StepExecutionDao
の saveStepExecution
stepExecution
- 保存する StepExecution
インスタンス。StepExecutionDao.saveStepExecution(StepExecution)
public void saveStepExecutions(java.util.Collection<StepExecution> stepExecutions)
StepExecutionDao
の saveStepExecutions
stepExecutions
- 保存する JobExecution
インスタンスのコレクション。StepExecutionDao.saveStepExecutions(Collection)
public void updateStepExecution(StepExecution stepExecution)
StepExecutionDao
StepExecutionDao
の updateStepExecution
stepExecution
- 更新される StepExecution
インスタンス。@Nullable public StepExecution getStepExecution(JobExecution jobExecution, java.lang.Long stepExecutionId)
StepExecutionDao
StepExecution
を取得します。StepExecutionDao
の getStepExecution
jobExecution
- 親 JobExecution
stepExecutionId
- ステップ実行 IDStepExecution
public StepExecution getLastStepExecution(JobInstance jobInstance, java.lang.String stepName)
StepExecutionDao
JobInstance
の最後の StepExecution
を取得します。StepExecutionDao
の getLastStepExecution
jobInstance
- 親 JobInstance
stepName
- ステップの名前 StepExecution
public void addStepExecutions(JobExecution jobExecution)
StepExecutionDao
JobExecution
のすべての StepExecution
を取得します。StepExecutionDao
の addStepExecutions
jobExecution
- 親ジョブの実行 public int countStepExecutions(JobInstance jobInstance, java.lang.String stepName)
StepExecutionDao
StepExecution
をカウントします。StepExecutionDao
の countStepExecutions
jobInstance
- 親 JobInstance
stepName
- ステップの名前 StepExecution
の数