Skip to content

Commit

Permalink
Add getters for DAOs in SimpleJobExplorer
Browse files Browse the repository at this point in the history
Resolves #1598
  • Loading branch information
cppwfs authored and fmbenhassine committed Sep 14, 2023
1 parent 31955a0 commit a73fbc3
Showing 1 changed file with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2022 the original author or authors.
* Copyright 2006-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,6 +40,7 @@
* @author Will Schipp
* @author Mahmoud Ben Hassine
* @author Parikshit Dutta
* @author Glenn Renfro
* @see JobExplorer
* @see JobInstanceDao
* @see JobExecutionDao
Expand Down Expand Up @@ -244,6 +245,38 @@ public long getJobInstanceCount(@Nullable String jobName) throws NoSuchJobExcept
return jobInstanceDao.getJobInstanceCount(jobName);
}

/**
* @return instance of {@link JobInstanceDao}.
* @since 5.1
*/
protected JobInstanceDao getJobInstanceDao() {
return jobInstanceDao;
}

/**
* @return instance of {@link JobExecutionDao}.
* @since 5.1
*/
protected JobExecutionDao getJobExecutionDao() {
return jobExecutionDao;
}

/**
* @return instance of {@link StepExecutionDao}.
* @since 5.1
*/
protected StepExecutionDao getStepExecutionDao() {
return stepExecutionDao;
}

/**
* @return instance of {@link ExecutionContextDao}.
* @since 5.1
*/
protected ExecutionContextDao getEcDao() {
return ecDao;
}

/*
* Find all dependencies for a JobExecution, including JobInstance (which requires
* JobParameters) plus StepExecutions
Expand Down

0 comments on commit a73fbc3

Please sign in to comment.