RESOLVED - BATCH-723: tablePrefix property is not injected into JbdcExecutionContextDao

This commit is contained in:
robokaso
2008-07-14 07:35:50 +00:00
parent 11a84dd267
commit 5321f74e40
3 changed files with 6 additions and 0 deletions

View File

@@ -25,6 +25,10 @@ public abstract class AbstractJdbcBatchMetadataDao implements InitializingBean {
protected String getQuery(String base) {
return StringUtils.replace(base, "%PREFIX%", tablePrefix);
}
protected String getTablePrefix() {
return tablePrefix;
}
/**
* Public setter for the table prefix property. This will be prefixed to all

View File

@@ -196,6 +196,7 @@ public class JdbcJobExecutionDao extends AbstractJdbcBatchMetadataDao implements
Assert.notNull(jobExecutionIncrementer);
ecDao.setJdbcTemplate(getJdbcTemplate());
ecDao.setLobHandler(lobHandler);
ecDao.setTablePrefix(getTablePrefix());
ecDao.afterPropertiesSet();
}

View File

@@ -247,6 +247,7 @@ public class JdbcStepExecutionDao extends AbstractJdbcBatchMetadataDao implement
Assert.notNull(stepExecutionIncrementer, "StepExecutionIncrementer cannot be null.");
ecDao.setJdbcTemplate(getJdbcTemplate());
ecDao.setLobHandler(lobHandler);
ecDao.setTablePrefix(getTablePrefix());
ecDao.afterPropertiesSet();
}