JobIdentifier missing from RowMapper in SqlJobDao.

This commit is contained in:
dsyer
2007-08-23 17:21:51 +00:00
parent 2bd45778fa
commit 4210297540
3 changed files with 4 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;
}