public TopologyTestRunCase addOrUpdateTopologyTestRunCase(Long id, TopologyTestRunCase testCase) { testCase.setId(id); testCase.setTimestamp(System.currentTimeMillis()); dao.addOrUpdate(testCase); return testCase; }
public TopologyTestRunCase addTopologyTestRunCase(TopologyTestRunCase testCase) { if (testCase.getId() == null) { testCase.setId(dao.nextId(TopologyTestRunCase.NAMESPACE)); } testCase.setTimestamp(System.currentTimeMillis()); dao.add(testCase); return testCase; }
public TopologyTestRunCase(TopologyTestRunCase other) { if (other != null) { setId(other.getId()); setName(other.getName()); setTopologyId(other.getTopologyId()); setVersionId(other.getVersionId()); setTimestamp(other.getTimestamp()); } }