Improved toString(0 for *Execution.

This commit is contained in:
dsyer
2007-12-12 22:56:58 +00:00
parent 478b14a875
commit d7a6440a64
4 changed files with 20 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.util.ClassUtils;
/**
* Batch domain object representing a job configuration. JobConfiguration is an
@@ -115,4 +116,8 @@ public class JobConfiguration implements BeanNameAware {
public boolean isRestartable() {
return restartable;
}
public String toString() {
return ClassUtils.getShortName(JobConfiguration.class) + ": [name="+name+"]";
}
}

View File

@@ -191,11 +191,15 @@ public class StepExecution extends Entity {
}
public String toString() {
return super.toString() + ", taskCount=" + taskCount + ", commitCount=" + commitCount + ", rollbackCount="
return super.toString() + ", name=" + getName() + ", taskCount=" + taskCount + ", commitCount=" + commitCount + ", rollbackCount="
+ rollbackCount;
}
private String getName() {
return step==null ? null : step.getName();
}
/**
* @param exitStatus
*/