/** * Compatible with the equals implementation. * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return toString().hashCode(); }
/** * Compare the fields one by one. * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == null) { return false; } return toString().equals(obj.toString()); }
/** * Test equality of exit statuses. * * @throws Exception */ @Test public void testHashcode() throws Exception { assertEquals(ExitStatus.EXECUTING.toString().hashCode(), ExitStatus.EXECUTING.hashCode()); }
public void setExitStatus(ExitStatus exitStatus) { this.exitStatus = exitStatus.toString(); }
/** * Compatible with the equals implementation. * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return toString().hashCode(); }
/** * Compatible with the equals implementation. * * @see java.lang.Object#hashCode() */ public int hashCode() { return toString().hashCode(); }
/** * Compatible with the equals implementation. * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return toString().hashCode(); }
/** * Compatible with the equals implementation. * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return toString().hashCode(); }
/** * Compare the fields one by one. * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == null) { return false; } return toString().equals(obj.toString()); }
/** * Compare the fields one by one. * * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals(Object obj) { if (obj == null) { return false; } return toString().equals(obj.toString()); }
/** * Compare the fields one by one. * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == null) { return false; } return toString().equals(obj.toString()); }
/** * Compare the fields one by one. * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj == null) { return false; } return toString().equals(obj.toString()); }
public AdaptedJobExecution(JobExecution jobExecution) { this.id = jobExecution.getId(); if (jobExecution.getVersion() == null) { jobExecution.setVersion(0); } else { this.version = jobExecution.getVersion(); } this.jobInstance = jobExecution.getJobInstance(); this.jobParameters = jobExecution.getJobParameters(); this.createDateTime = jobExecution.getCreateTime(); this.endDateTime = jobExecution.getEndTime(); this.lastUpdatedDateTime = jobExecution.getLastUpdated(); this.startDateTime = jobExecution.getStartTime(); if (jobExecution.getStatus() == null) { this.status = BatchStatus.STARTING.toString(); } else { this.status = jobExecution.getStatus().toString(); } this.exitStatus = jobExecution.getExitStatus().toString(); for (StepExecution step : jobExecution.getStepExecutions()) { stepExecutions.add(step); } this.executionContext = jobExecution.getExecutionContext(); }
@Override public SimpleStep convert(StepExecution source, SimpleStep simpleStep) { SimpleStep target = simpleStep != null ? simpleStep : new SimpleStep(); target.stepName(source.getStepName()) .status(source.getStatus().toString()) .readCount(source.getReadCount()) .writeCount(source.getWriteCount()) .commitCount(source.getCommitCount()) .rollbackCount(source.getRollbackCount()) .readSkipCount(source.getReadSkipCount()) .processSkipCount(source.getProcessSkipCount()) .writeSkipCount(source.getWriteSkipCount()) .startTime(source.getStartTime()) .endTime(source.getEndTime()) .exitStatus(source.getExitStatus().toString()) .lastUpdated(source.getLastUpdated()) .exitStatus(source.getExitStatus().toString()); return target; } }