类 AbstractJdbcBatchMetadataDao
- java.lang.Object
- org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
- 所有已实现的接口:
org.springframework.beans.factory.InitializingBean
- 直接已知子类:
JdbcExecutionContextDao
,JdbcJobExecutionDao
,JdbcJobInstanceDao
,JdbcStepExecutionDao
,JobRepositoryTestUtils
public abstract class AbstractJdbcBatchMetadataDao extends java.lang.Object implements org.springframework.beans.factory.InitializingBean
Encapsulates common functionality needed by JDBC batch metadata DAOs - provides jdbcTemplate for subclasses and handles table prefixes.- 作者:
- Robert Kasanicky
字段概要
字段 修饰符和类型 字段 说明 static int
DEFAULT_EXIT_MESSAGE_LENGTH
static java.lang.String
DEFAULT_TABLE_PREFIX
Default value for the table prefix property.
构造器概要
构造器 构造器 说明 AbstractJdbcBatchMetadataDao()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
int
getClobTypeToUse()
protected org.springframework.jdbc.core.JdbcOperations
getJdbcTemplate()
protected java.lang.String
getQuery(java.lang.String base)
protected java.lang.String
getTablePrefix()
void
setClobTypeToUse(int clobTypeToUse)
void
setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
void
setTablePrefix(java.lang.String tablePrefix)
Public setter for the table prefix property.
字段详细资料
DEFAULT_TABLE_PREFIX
public static final java.lang.String DEFAULT_TABLE_PREFIX
Default value for the table prefix property.- 另请参阅:
- 常量字段值
DEFAULT_EXIT_MESSAGE_LENGTH
public static final int DEFAULT_EXIT_MESSAGE_LENGTH
- 另请参阅:
- 常量字段值
构造器详细资料
AbstractJdbcBatchMetadataDao
public AbstractJdbcBatchMetadataDao()
方法详细资料
getQuery
protected java.lang.String getQuery(java.lang.String base)
getTablePrefix
protected java.lang.String getTablePrefix()
setTablePrefix
public void setTablePrefix(java.lang.String tablePrefix)
Public setter for the table prefix property. This will be prefixed to all the table names before queries are executed. Defaults toDEFAULT_TABLE_PREFIX
.- 参数:
tablePrefix
- the tablePrefix to set
setJdbcTemplate
public void setJdbcTemplate(org.springframework.jdbc.core.JdbcOperations jdbcTemplate)
getJdbcTemplate
protected org.springframework.jdbc.core.JdbcOperations getJdbcTemplate()
getClobTypeToUse
public int getClobTypeToUse()
setClobTypeToUse
public void setClobTypeToUse(int clobTypeToUse)
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception