org.springframework.batch.core.repository.dao
Class AbstractJdbcBatchMetadataDao
java.lang.Object
org.springframework.batch.core.repository.dao.AbstractJdbcBatchMetadataDao
- All Implemented Interfaces:
- InitializingBean
- Direct Known Subclasses:
- JdbcJobExecutionDao, JdbcJobInstanceDao, JdbcStepExecutionDao
public abstract class AbstractJdbcBatchMetadataDao
- extends Object
- implements InitializingBean
Encapsulates common functionality needed by JDBC batch metadata DAOs -
provides jdbcTemplate for subclasses and handles table prefixes.
- Author:
- Robert Kasanicky
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TABLE_PREFIX
public static final String DEFAULT_TABLE_PREFIX
- Default value for the table prefix property.
- See Also:
- Constant Field Values
AbstractJdbcBatchMetadataDao
public AbstractJdbcBatchMetadataDao()
getQuery
protected String getQuery(String base)
setTablePrefix
public void setTablePrefix(String tablePrefix)
- Public setter for the table prefix property. This will be prefixed to all
the table names before queries are executed. Defaults to
DEFAULT_TABLE_PREFIX
.
- Parameters:
tablePrefix
- the tablePrefix to set
setJdbcTemplate
public void setJdbcTemplate(JdbcOperations jdbcTemplate)
getJdbcTemplate
protected JdbcOperations getJdbcTemplate()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
Copyright © 2008 SpringSource. All Rights Reserved.