]> git.argeo.org Git - gpl/argeo-slc.git/blob - NumericTRId.java
b3654dc0527f8758c6a2b7d77c80d8ec700fa0fe
[gpl/argeo-slc.git] / NumericTRId.java
1 package org.argeo.slc.core.test;
2
3 import org.argeo.slc.core.deploy.DeployedSystemId;
4
5 public class NumericTRId implements TestResultId {
6 /** For ORM */
7 private Long tid;
8
9 private Long value;
10 private DeployedSystemId deployedSystemId;
11
12 public void init() {
13 if (getValue() == null) {
14 setValue(System.currentTimeMillis());
15 }
16 }
17
18
19 public Long getValue() {
20 return value;
21 }
22
23 public void setValue(Long value) {
24 this.value = value;
25 }
26
27 public DeployedSystemId getDeployedSystemId() {
28 return deployedSystemId;
29 }
30
31 public void setDeployedSystemId(DeployedSystemId deployedSystemId) {
32 this.deployedSystemId = deployedSystemId;
33 }
34
35 @Override
36 public boolean equals(Object obj) {
37 return value.toString().equals(obj.toString());
38 }
39
40 @Override
41 public String toString() {
42 return value.toString();
43 }
44
45 Long getTid() {
46 return tid;
47 }
48
49 void setTid(Long tid) {
50 this.tid = tid;
51 }
52
53
54
55 }