public class JdbcExecutionContextDao extends AbstractJdbcBatchMetadataDao implements ExecutionContextDao
ExecutionContext
の JDBC DAO。ステップとジョブの両方に関連する実行コンテキストデータを、それぞれに異なるテーブルを使用して格納します。DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX
コンストラクターと説明 |
---|
JdbcExecutionContextDao() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
ExecutionContext | getExecutionContext(JobExecution jobExecution) |
ExecutionContext | getExecutionContext(StepExecution stepExecution) |
void | saveExecutionContext(JobExecution jobExecution) 指定された jobExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。 |
void | saveExecutionContext(StepExecution stepExecution) 指定された stepExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。 |
void | saveExecutionContexts(java.util.Collection<StepExecution> stepExecutions) 特定のコレクション内の各 stepExecution に関連付けられた実行コンテキストを永続化します。コンテキストの永続エントリはまだ存在していないはずです。 |
void | setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler) |
void | setSerializer(ExecutionContextSerializer serializer) Serializer 実装の Setter |
void | setShortContextLength(int shortContextLength) 実行コンテキストが保持できる最大サイズであり、列 SHORT_CONTEXT に完全に短い形式で格納されます。 |
void | updateExecutionContext(JobExecution jobExecution) 指定された jobExecution に関連付けられた実行コンテキストの更新を永続化します。 |
void | updateExecutionContext(StepExecution stepExecution) 指定された stepExecution に関連付けられた実行コンテキストの更新を永続化します。 |
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix
public void setSerializer(ExecutionContextSerializer serializer)
Serializer
実装の Setterserializer
- 使用する ExecutionContextSerializer
インスタンス。public void setShortContextLength(int shortContextLength)
SHORT_CONTEXT
に完全に短い形式で格納されます。これより長いものはラージオブジェクトストレージにオーバーフローし、最初の部分のみが読みやすいように短い形式で保持されます。デフォルト値は 2500 です。データベースサーバーでマルチバイト文字セットを使用するクライアントは、この値を列サイズの値の半分まで減らす必要がある場合があります。shortContextLength
- int 短いコンテキストの最大長。public ExecutionContext getExecutionContext(JobExecution jobExecution)
ExecutionContextDao
の getExecutionContext
jobExecution
- コンテキストを含む JobExecution
インスタンス。public ExecutionContext getExecutionContext(StepExecution stepExecution)
ExecutionContextDao
の getExecutionContext
stepExecution
- コンテキストを含む StepExecution
インスタンス。public void updateExecutionContext(JobExecution jobExecution)
ExecutionContextDao
ExecutionContextDao
の updateExecutionContext
jobExecution
- コンテキストを含む JobExecution
インスタンス。public void updateExecutionContext(StepExecution stepExecution)
ExecutionContextDao
ExecutionContextDao
の updateExecutionContext
stepExecution
- コンテキストを含む StepExecution
インスタンス。public void saveExecutionContext(JobExecution jobExecution)
ExecutionContextDao
ExecutionContextDao
の saveExecutionContext
jobExecution
- コンテキストを含む JobExecution
インスタンス。public void saveExecutionContext(StepExecution stepExecution)
ExecutionContextDao
ExecutionContextDao
の saveExecutionContext
stepExecution
- コンテキストを含む StepExecution
インスタンス。public void saveExecutionContexts(java.util.Collection<StepExecution> stepExecutions)
ExecutionContextDao
ExecutionContextDao
の saveExecutionContexts
stepExecutions
- コンテキストを含む StepExecution
のコレクション。public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
public void afterPropertiesSet() throws java.lang.Exception
org.springframework.beans.factory.InitializingBean
の afterPropertiesSet
AbstractJdbcBatchMetadataDao
の afterPropertiesSet
java.lang.Exception