1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.routeheader; |
17 | |
|
18 | |
import java.sql.Timestamp; |
19 | |
import java.util.LinkedHashMap; |
20 | |
|
21 | |
import javax.persistence.Column; |
22 | |
import javax.persistence.Entity; |
23 | |
import javax.persistence.Id; |
24 | |
import javax.persistence.IdClass; |
25 | |
import javax.persistence.Table; |
26 | |
|
27 | |
import org.kuali.rice.kew.bo.KewPersistableBusinessObjectBase; |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
@Entity |
37 | |
@Table(name="KREW_APP_DOC_STAT_TRAN_T") |
38 | |
public class DocumentStatusTransition extends KewPersistableBusinessObjectBase { |
39 | |
private static final long serialVersionUID = -2212481684546954746L; |
40 | |
|
41 | |
@Id |
42 | |
@Column(name="APP_DOC_STAT_TRAN_ID") |
43 | |
private Long statusTransitionId; |
44 | |
|
45 | |
@Column(name="DOC_HDR_ID") |
46 | |
private Long routeHeaderId; |
47 | |
|
48 | |
@Column(name="APP_DOC_STAT_FROM") |
49 | |
private String oldAppDocStatus; |
50 | |
|
51 | |
@Column(name="APP_DOC_STAT_TO") |
52 | |
private String newAppDocStatus; |
53 | |
|
54 | |
@Column(name="STAT_TRANS_DATE") |
55 | |
private java.sql.Timestamp statusTransitionDate; |
56 | |
|
57 | 0 | public DocumentStatusTransition() { |
58 | 0 | } |
59 | |
|
60 | 0 | public DocumentStatusTransition(Long routeHeaderId, String oldStatus, String newStatus) { |
61 | 0 | this.routeHeaderId = routeHeaderId; |
62 | 0 | this.oldAppDocStatus = oldStatus; |
63 | 0 | this.newAppDocStatus = newStatus; |
64 | 0 | this.statusTransitionDate = new Timestamp(System.currentTimeMillis()); |
65 | 0 | } |
66 | |
|
67 | |
|
68 | |
|
69 | |
@Override |
70 | |
protected LinkedHashMap toStringMapper() { |
71 | 0 | LinkedHashMap m = new LinkedHashMap(); |
72 | 0 | m.put("routeHeaderId", this.routeHeaderId); |
73 | 0 | m.put("oldAppDocStatus", this.oldAppDocStatus); |
74 | 0 | m.put("newAppDocStatus", this.newAppDocStatus); |
75 | 0 | m.put("statusTransitionDate", this.statusTransitionDate); |
76 | 0 | return m; |
77 | |
} |
78 | |
|
79 | |
public Long getStatusTransitionId() { |
80 | 0 | return this.statusTransitionId; |
81 | |
} |
82 | |
|
83 | |
public void setStatusTransitionId(Long statusTransitionId) { |
84 | 0 | this.statusTransitionId = statusTransitionId; |
85 | 0 | } |
86 | |
|
87 | |
public Long getRouteHeaderId() { |
88 | 0 | return this.routeHeaderId; |
89 | |
} |
90 | |
|
91 | |
public void setRouteHeaderId(Long headerId) { |
92 | 0 | this.routeHeaderId = headerId; |
93 | 0 | } |
94 | |
|
95 | |
public String getOldAppDocStatus() { |
96 | 0 | return this.oldAppDocStatus; |
97 | |
} |
98 | |
|
99 | |
public void setOldAppDocStatus(String oldAppDocStatus) { |
100 | 0 | this.oldAppDocStatus = oldAppDocStatus; |
101 | 0 | } |
102 | |
|
103 | |
public String getNewAppDocStatus() { |
104 | 0 | return this.newAppDocStatus; |
105 | |
} |
106 | |
|
107 | |
public void setNewAppDocStatus(String newAppDocStatus) { |
108 | 0 | this.newAppDocStatus = newAppDocStatus; |
109 | 0 | } |
110 | |
|
111 | |
public java.sql.Timestamp getStatusTransitionDate() { |
112 | 0 | return this.statusTransitionDate; |
113 | |
} |
114 | |
|
115 | |
public void setStatusTransitionDate(java.sql.Timestamp statusTransitionDate) { |
116 | 0 | this.statusTransitionDate = statusTransitionDate; |
117 | 0 | } |
118 | |
} |