类 JdbcExecutionContextDao
- java.lang.Object
- org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
- org.springframework.batch.core.repository.dao.JdbcExecutionContextDao
- 所有已实现的接口:
ExecutionContextDao
,org.springframework.beans.factory.InitializingBean
public class JdbcExecutionContextDao extends AbstractJdbcBatchMetadataDao implements ExecutionContextDao
JDBC DAO forExecutionContext
. Stores execution context data related to both Step and Job using a different table for each.- 作者:
- Lucas Ward, Robert Kasanicky, Thomas Risberg, Michael Minella, David Turanski, Mahmoud Ben Hassine
字段概要
从类继承的字段 org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
DEFAULT_EXIT_MESSAGE_LENGTH, DEFAULT_TABLE_PREFIX
构造器概要
构造器 构造器 说明 JdbcExecutionContextDao()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
ExecutionContext
getExecutionContext(JobExecution jobExecution)
ExecutionContext
getExecutionContext(StepExecution stepExecution)
void
saveExecutionContext(JobExecution jobExecution)
Persist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet.void
saveExecutionContext(StepExecution stepExecution)
Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.void
saveExecutionContexts(java.util.Collection<StepExecution> stepExecutions)
Persist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.void
setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
void
setSerializer(ExecutionContextSerializer serializer)
Setter forSerializer
implementationvoid
setShortContextLength(int shortContextLength)
The maximum size that an execution context can have and still be stored completely in short form in the columnSHORT_CONTEXT
.void
updateExecutionContext(JobExecution jobExecution)
Persist the updates of execution context associated with the given jobExecution.void
updateExecutionContext(StepExecution stepExecution)
Persist the updates of execution context associated with the given stepExecution.从类继承的方法 org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
getClobTypeToUse, getJdbcTemplate, getQuery, getTablePrefix, setClobTypeToUse, setJdbcTemplate, setTablePrefix
构造器详细资料
JdbcExecutionContextDao
public JdbcExecutionContextDao()
方法详细资料
setSerializer
public void setSerializer(ExecutionContextSerializer serializer)
Setter forSerializer
implementation- 参数:
serializer
-ExecutionContextSerializer
instance to use.
setShortContextLength
public void setShortContextLength(int shortContextLength)
The maximum size that an execution context can have and still be stored completely in short form in the columnSHORT_CONTEXT
. Anything longer than this will overflow into large-object storage, and the first part only will be retained in the short form for readability. Default value is 2500. Clients using multi-bytes charsets on the database server may need to reduce this value to as little as half the value of the column size.- 参数:
shortContextLength
- int max length of the short context.
getExecutionContext
public ExecutionContext getExecutionContext(JobExecution jobExecution)
- 指定者:
getExecutionContext
在接口中ExecutionContextDao
- 参数:
jobExecution
-JobExecution
instance that contains the context.- 返回:
- execution context associated with the given jobExecution
getExecutionContext
public ExecutionContext getExecutionContext(StepExecution stepExecution)
- 指定者:
getExecutionContext
在接口中ExecutionContextDao
- 参数:
stepExecution
-StepExecution
instance that contains the context.- 返回:
- execution context associated with the given stepExecution
updateExecutionContext
public void updateExecutionContext(JobExecution jobExecution)
从接口复制的说明:ExecutionContextDao
Persist the updates of execution context associated with the given jobExecution. Persistent entry should already exist for this context.- 指定者:
updateExecutionContext
在接口中ExecutionContextDao
- 参数:
jobExecution
-JobExecution
instance that contains the context.
updateExecutionContext
public void updateExecutionContext(StepExecution stepExecution)
从接口复制的说明:ExecutionContextDao
Persist the updates of execution context associated with the given stepExecution. Persistent entry should already exist for this context.- 指定者:
updateExecutionContext
在接口中ExecutionContextDao
- 参数:
stepExecution
-StepExecution
instance that contains the context.
saveExecutionContext
public void saveExecutionContext(JobExecution jobExecution)
从接口复制的说明:ExecutionContextDao
Persist the execution context associated with the given jobExecution, persistent entry for the context should not exist yet.- 指定者:
saveExecutionContext
在接口中ExecutionContextDao
- 参数:
jobExecution
-JobExecution
instance that contains the context.
saveExecutionContext
public void saveExecutionContext(StepExecution stepExecution)
从接口复制的说明:ExecutionContextDao
Persist the execution context associated with the given stepExecution, persistent entry for the context should not exist yet.- 指定者:
saveExecutionContext
在接口中ExecutionContextDao
- 参数:
stepExecution
-StepExecution
instance that contains the context.
saveExecutionContexts
public void saveExecutionContexts(java.util.Collection<StepExecution> stepExecutions)
从接口复制的说明:ExecutionContextDao
Persist the execution context associated with each stepExecution in a given collection, persistent entry for the context should not exist yet.- 指定者:
saveExecutionContexts
在接口中ExecutionContextDao
- 参数:
stepExecutions
- a collection ofStepExecution
s that contain the contexts.
setLobHandler
public void setLobHandler(org.springframework.jdbc.support.lob.LobHandler lobHandler)
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 覆盖:
afterPropertiesSet
在类中AbstractJdbcBatchMetadataDao
- 抛出:
java.lang.Exception