JobIdentifier missing from RowMapper in SqlJobDao.
This commit is contained in:
@@ -45,7 +45,7 @@ public interface JobDao {
|
||||
* Identifier are found, then a list of size 0 will be returned.
|
||||
*
|
||||
* @param jobIdentifier
|
||||
* @return List of jobs matching JobIdentifier
|
||||
* @return List of {@link JobInstance} objects matching {@link JobIdentifier}
|
||||
*/
|
||||
public List findJobs(JobIdentifier jobIdentifier);
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ public class SqlJobDao implements JobDao, InitializingBean {
|
||||
* @throws IllegalArgumentException if any JobRuntimeInformation fields are
|
||||
* null.
|
||||
*/
|
||||
public List findJobs(JobIdentifier jobIdentifier) {
|
||||
public List findJobs(final JobIdentifier jobIdentifier) {
|
||||
|
||||
ScheduledJobIdentifier defaultJobId = (ScheduledJobIdentifier) jobIdentifier;
|
||||
validateJobRuntimeInformation(defaultJobId);
|
||||
@@ -122,6 +122,7 @@ public class SqlJobDao implements JobDao, InitializingBean {
|
||||
|
||||
JobInstance job = new JobInstance(new Long(rs.getLong(1)));
|
||||
job.setStatus(BatchStatus.getStatus(rs.getString(2)));
|
||||
job.setIdentifier(jobIdentifier);
|
||||
|
||||
return job;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user