ret.add(convert(his));
return ret;
}
private DebugHistoryModel convert(DebugHistory his) {
DebugHistoryModel ret = new DebugHistoryModel();
ret.setEndTime(his.getEndTime());
ret.setExecuteHost(his.getExecuteHost());
ret.setFileId(his.getFileId());
ret.setGmtCreate(his.getGmtCreate());
ret.setGmtModified(his.getGmtModified());
ret.setId(his.getId());
if (his.getJobRunType() != null)
ret.setJobRunType(DebugHistoryModel.JobRunType.parser(his
.getJobRunType().toString()));
ret.setLog(his.getLog().getContent());
ret.setScript(his.getScript());
ret.setStartTime(his.getStartTime());
if (his.getStatus() != null)
ret.setStatus(DebugHistoryModel.Status.parser(his.getStatus()
.getId()));
return ret;
}