クラス JdbcExecutionContextDao

java.lang.ObjectSE
org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
org.springframework.batch.core.repository.dao.JdbcExecutionContextDao
実装されたすべてのインターフェース:
ExecutionContextDaoorg.springframework.beans.factory.InitializingBean

public class JdbcExecutionContextDao extends AbstractJdbcBatchMetadataDao implements ExecutionContextDao
ExecutionContext 用の JDBCDAO。

ステップとジョブの両方に関連する実行コンテキストデータを、それぞれ異なるテーブルを使用して保存します。

作成者:
Lucas Ward, Robert Kasanicky, Thomas Risberg, Michael Minella, David Turanski, Mahmoud Ben Hassine
  • コンストラクターの詳細

    • JdbcExecutionContextDao

      public JdbcExecutionContextDao()
  • メソッドの詳細

    • setSerializer

      public void setSerializer(ExecutionContextSerializer serializer)
      Serializer 実装の Setter
      パラメーター:
      serializer - 使用する ExecutionContextSerializer インスタンス。
    • setShortContextLength

      public void setShortContextLength(int shortContextLength)
      実行コンテキストが保持できる最大サイズであり、列 SHORT_CONTEXT に完全に短い形式で格納されます。これより長いものはラージオブジェクトストレージにオーバーフローし、最初の部分のみが読みやすいように短い形式で保持されます。デフォルト値は 2500 です。データベースサーバーでマルチバイト文字セットを使用するクライアントは、この値を列サイズの値の半分まで減らす必要がある場合があります。
      パラメーター:
      shortContextLength - int 短いコンテキストの最大長。
    • setCharset

      public void setCharset(@NonNull CharsetSE charset)
      実行コンテキストをシリアライズ / デシリアライズするときに使用する CharsetSE を設定します。null であってはなりません。デフォルトは "UTF-8" です。
      パラメーター:
      charset - 実行コンテキストをシリアライズ / デシリアライズするときに使用します。
      導入:
      5.0
    • getExecutionContext

      public ExecutionContext getExecutionContext(JobExecution jobExecution)
      次で指定:
      インターフェース ExecutionContextDaogetExecutionContext 
      パラメーター:
      jobExecution - コンテキストを含む JobExecution インスタンス。
      戻り値:
      指定された jobExecution に関連付けられた実行コンテキスト
    • getExecutionContext

      public ExecutionContext getExecutionContext(StepExecution stepExecution)
      次で指定:
      インターフェース ExecutionContextDaogetExecutionContext 
      パラメーター:
      stepExecution - コンテキストを含む StepExecution インスタンス。
      戻り値:
      指定された stepExecution に関連付けられた実行コンテキスト
    • updateExecutionContext

      public void updateExecutionContext(JobExecution jobExecution)
      インターフェースからコピーされた説明: ExecutionContextDao
      指定された jobExecution に関連付けられた実行コンテキストの更新を永続化します。このコンテキストには、永続的なエントリがすでに存在している必要があります。
      次で指定:
      インターフェース ExecutionContextDaoupdateExecutionContext 
      パラメーター:
      jobExecution - コンテキストを含む JobExecution インスタンス。
    • updateExecutionContext

      public void updateExecutionContext(StepExecution stepExecution)
      インターフェースからコピーされた説明: ExecutionContextDao
      指定された stepExecution に関連付けられた実行コンテキストの更新を永続化します。このコンテキストには、永続的なエントリがすでに存在している必要があります。
      次で指定:
      インターフェース ExecutionContextDaoupdateExecutionContext 
      パラメーター:
      stepExecution - コンテキストを含む StepExecution インスタンス。
    • saveExecutionContext

      public void saveExecutionContext(JobExecution jobExecution)
      インターフェースからコピーされた説明: ExecutionContextDao
      指定された jobExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。
      次で指定:
      インターフェース ExecutionContextDaosaveExecutionContext 
      パラメーター:
      jobExecution - コンテキストを含む JobExecution インスタンス。
    • saveExecutionContext

      public void saveExecutionContext(StepExecution stepExecution)
      インターフェースからコピーされた説明: ExecutionContextDao
      指定された stepExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。
      次で指定:
      インターフェース ExecutionContextDaosaveExecutionContext 
      パラメーター:
      stepExecution - コンテキストを含む StepExecution インスタンス。
    • saveExecutionContexts

      public void saveExecutionContexts(CollectionSE<StepExecution> stepExecutions)
      インターフェースからコピーされた説明: ExecutionContextDao
      特定のコレクション内の各 stepExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。
      次で指定:
      インターフェース ExecutionContextDaosaveExecutionContexts 
      パラメーター:
      stepExecutions - コンテキストを含む StepExecution のコレクション。
    • deleteExecutionContext

      public void deleteExecutionContext(JobExecution jobExecution)
      指定された JobExecution の実行コンテキストを削除します。
      次で指定:
      インターフェース ExecutionContextDaodeleteExecutionContext 
      パラメーター:
      jobExecution - 削除するコンテキストを含む JobExecution
    • deleteExecutionContext

      public void deleteExecutionContext(StepExecution stepExecution)
      指定された StepExecution の実行コンテキストを削除します。
      次で指定:
      インターフェース ExecutionContextDaodeleteExecutionContext 
      パラメーター:
      stepExecution - 削除するコンテキストを含む StepExecution
    • setLobHandler

      public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
    • afterPropertiesSet

      public void afterPropertiesSet() throws ExceptionSE
      次で指定:
      インターフェース org.springframework.beans.factory.InitializingBeanafterPropertiesSet 
      オーバーライド:
      クラス AbstractJdbcBatchMetadataDaoafterPropertiesSet 
      例外:
      ExceptionSE