1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.ole.module.purap.businessobject;
18
19 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
20
21 import java.util.Comparator;
22 import java.util.LinkedHashMap;
23
24
25
26
27 public class Status extends PersistableBusinessObjectBase implements Comparator<Status> {
28
29 private String statusCode;
30 private String statusDescription;
31 protected String ojbConcreteClass;
32
33
34
35
36 public Status() {
37
38 }
39
40 public String getStatusCode() {
41 return statusCode;
42 }
43
44 public void setStatusCode(String statusCode) {
45 this.statusCode = statusCode;
46 }
47
48 public String getStatusDescription() {
49 return statusDescription;
50 }
51
52 public void setStatusDescription(String statusDescription) {
53 this.statusDescription = statusDescription;
54 }
55
56 public String getOjbConcreteClass() {
57 return ojbConcreteClass;
58 }
59
60 public void setOjbConcreteClass(String ojbConcreteClass) {
61 this.ojbConcreteClass = ojbConcreteClass;
62 }
63
64 public int compare(Status s1, Status s2) {
65 return s1.getStatusDescription().compareTo(s2.getStatusDescription());
66 }
67
68
69
70
71 protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
72 LinkedHashMap m = new LinkedHashMap();
73 m.put("statusCode", this.statusCode);
74 return m;
75 }
76
77 }