1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.kuali.student.common.ui.server.applicationstate.entity; |
17 |
|
|
18 |
|
import javax.persistence.Column; |
19 |
|
import javax.persistence.Entity; |
20 |
|
import javax.persistence.Id; |
21 |
|
import javax.persistence.PrePersist; |
22 |
|
import javax.persistence.Table; |
23 |
|
|
24 |
|
import org.kuali.student.common.util.UUIDHelper; |
25 |
|
|
26 |
|
@Entity |
27 |
|
@Table(name = "KSAP_KEY_VALUE_T") |
|
|
| 66.7% |
Uncovered Elements: 6 (18) |
Complexity: 9 |
Complexity Density: 1 |
|
28 |
|
public class KeyValuePair { |
29 |
|
@Id |
30 |
|
@Column(name = "ID") |
31 |
|
private String id; |
32 |
|
|
33 |
|
@Column(name = "APP_STATE_KEY", nullable=false) |
34 |
|
private String key; |
35 |
|
|
36 |
|
@Column(name = "VALUE", length=2000, nullable=false) |
37 |
|
private String value; |
38 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
39 |
4
|
public KeyValuePair() {... |
40 |
|
} |
41 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
42 |
25
|
public KeyValuePair(String key, String value) {... |
43 |
25
|
this.key = key; |
44 |
25
|
this.value = value; |
45 |
|
} |
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
25
|
@PrePersist... |
51 |
|
public void prePersist() { |
52 |
25
|
this.id = UUIDHelper.genStringUUID(this.id); |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0
|
public String getId() {... |
56 |
0
|
return id; |
57 |
|
} |
58 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
11
|
public String getKey() {... |
60 |
11
|
return key; |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
public void setKey(String key) {... |
64 |
0
|
this.key = key; |
65 |
|
} |
66 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
67 |
11
|
public String getValue() {... |
68 |
11
|
return value; |
69 |
|
} |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
public void setValue(String value) {... |
72 |
0
|
this.value = value; |
73 |
|
} |
74 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
16
|
@Override... |
76 |
|
public String toString() { |
77 |
16
|
return "KeyValuePair[id=" + id + ", key=" + key + ", value=" + value + "]"; |
78 |
|
} |
79 |
|
} |