Removed code that was marked as deprecated.
Also updated test that tested deprecated code. resolves #366
This commit is contained in:
committed by
Michael Minella
parent
1ae7930d09
commit
76309b89ff
@@ -100,28 +100,6 @@ public class TaskProperties {
|
||||
this.executionid = executionid;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated use getClosecontextEnabled()
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@Deprecated
|
||||
public Boolean getClosecontextEnable() {
|
||||
return closecontextEnabled;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated use setClosecontextEnabled()
|
||||
* @since 1.2.0
|
||||
*/
|
||||
@Deprecated
|
||||
public void setClosecontextEnable(Boolean closecontextEnable) {
|
||||
logger.warn("'closecontextEnable' is deprecated. Use 'closeContextEnabled.'");
|
||||
this.closecontextEnabled = closecontextEnable;
|
||||
}
|
||||
|
||||
public Boolean getClosecontextEnabled() {
|
||||
return closecontextEnabled;
|
||||
}
|
||||
|
||||
@@ -244,18 +244,6 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
completeTaskExecution(taskExecutionId, exitCode, endTime, exitMessage, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Public setter for the table prefix property. This will be prefixed to all
|
||||
* the table names before queries are executed. Defaults to
|
||||
* {@link TaskProperties#DEFAULT_TABLE_PREFIX}.
|
||||
*
|
||||
* @param tablePrefix the tablePrefix to set
|
||||
*/
|
||||
@Deprecated
|
||||
public void setTablePrefix(String tablePrefix) {
|
||||
this.tablePrefix = tablePrefix;
|
||||
}
|
||||
|
||||
@Override
|
||||
public TaskExecution getTaskExecution(long executionId) {
|
||||
try {
|
||||
|
||||
@@ -96,18 +96,6 @@ public class TaskExecutionDaoFactoryBean implements FactoryBean<TaskExecutionDao
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates a prefix for all of the task repository's tables if the jdbc option is
|
||||
* used.
|
||||
*
|
||||
* @param tablePrefix the string prefix for the task table names
|
||||
* @deprecated Use the constructor to inject
|
||||
*/
|
||||
@Deprecated
|
||||
public void setTablePrefix(String tablePrefix) {
|
||||
this.tablePrefix = tablePrefix;
|
||||
}
|
||||
|
||||
private void buildTaskExecutionDao(DataSource dataSource) {
|
||||
DataFieldMaxValueIncrementerFactory incrementerFactory = new DefaultDataFieldMaxValueIncrementerFactory(dataSource);
|
||||
this.dao = new JdbcTaskExecutionDao(dataSource, this.tablePrefix);
|
||||
|
||||
Reference in New Issue
Block a user