public TopologyTestRunCaseSource addOrUpdateTopologyTestRunCaseSource(Long id, TopologyTestRunCaseSource testCaseSource) { testCaseSource.setId(id); testCaseSource.setTimestamp(System.currentTimeMillis()); dao.addOrUpdate(testCaseSource); return testCaseSource; }
public TopologyTestRunCaseSource addTopologyTestRunCaseSource(TopologyTestRunCaseSource testCaseSource) { if (testCaseSource.getId() == null) { testCaseSource.setId(dao.nextId(TopologyTestRunCaseSource.NAMESPACE)); } testCaseSource.setTimestamp(System.currentTimeMillis()); dao.add(testCaseSource); return testCaseSource; }
public TopologyTestRunCaseSource(TopologyTestRunCaseSource other) { if (other != null) { setId(other.getId()); setTestCaseId(other.getTestCaseId()); setSourceId(other.getSourceId()); setVersionId(other.getVersionId()); setRecords(other.getRecords()); setOccurrence(other.getOccurrence()); setSleepMsPerIteration(other.getSleepMsPerIteration()); setTimestamp(other.getTimestamp()); } }