Misc. Name changes. (Mostly as a result of JobConfiguration -> job)

This commit is contained in:
lucasward
2008-01-16 11:50:34 +00:00
parent 8e3871e6a2
commit 1ca8796ab6
4 changed files with 12 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ import org.springframework.batch.repeat.RepeatContext;
*/
public class JobExecution extends Entity {
private JobInstance job;
private JobInstance jobInstance;
private transient Collection stepExecutions = new HashSet();
@@ -59,7 +59,7 @@ public class JobExecution extends Entity {
* the job of which this execution is a part
*/
public JobExecution(JobInstance job, Long id) {
this.job = job;
this.jobInstance = job;
setId(id);
}
@@ -103,8 +103,8 @@ public class JobExecution extends Entity {
* @return the id of the enclosing job
*/
public Long getJobId() {
if (job != null) {
return job.getId();
if (jobInstance != null) {
return jobInstance.getId();
}
return null;
}
@@ -206,8 +206,8 @@ public class JobExecution extends Entity {
/**
* @return the Job that is executing.
*/
public JobInstance getJob() {
return job;
public JobInstance getJobInstance() {
return jobInstance;
}
/**
@@ -232,7 +232,7 @@ public class JobExecution extends Entity {
* @see org.springframework.batch.core.domain.Entity#toString()
*/
public String toString() {
return super.toString()+", startTime="+startTime+", endTime="+endTime+", job=["+job+"]";
return super.toString()+", startTime="+startTime+", endTime="+endTime+", job=["+jobInstance+"]";
}
/**

View File

@@ -41,6 +41,6 @@ public interface JobIdentifier {
*
* @return JobRuntimeParameters
*/
public JobInstanceProperties getRuntimeParameters();
public JobInstanceProperties getJobInstanceProperties();
}

View File

@@ -62,7 +62,7 @@ public class SimpleJobIdentifier implements JobIdentifier {
return this.name;
}
public JobInstanceProperties getRuntimeParameters() {
public JobInstanceProperties getJobInstanceProperties() {
return runtimeParameters;
}
@@ -82,7 +82,7 @@ public class SimpleJobIdentifier implements JobIdentifier {
SimpleJobIdentifier rhs = (SimpleJobIdentifier)obj;
return new EqualsBuilder().
append(runtimeParameters,rhs.getRuntimeParameters()).
append(runtimeParameters,rhs.getJobInstanceProperties()).
append(name, rhs.getName()).
isEquals();
}