KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > eventaudit > HibernateCreateProcessEventAudit


1 /*
2  * Shark Hibernate persistent layer - Open Wide
3  */

4
5 package org.enhydra.shark.eventaudit;
6
7 import org.enhydra.shark.api.internal.eventaudit.*;
8
9 /**
10  * Simple Hibernate POJO class
11  * @author Vladislav Pernin
12  */

13 public class HibernateCreateProcessEventAudit extends HibernateEventAudit
14         implements CreateProcessEventAuditPersistenceInterface {
15
16     private String JavaDoc pActivityId;
17     private String JavaDoc pProcessId;
18     private String JavaDoc pProcessName;
19     private String JavaDoc pProcessMgrName;
20     private String JavaDoc pProcessMgrVersion;
21     private String JavaDoc pActivityDefinitionId;
22     private String JavaDoc pActivitySetDefinitionId;
23     private String JavaDoc pProcessDefinitionId;
24     private String JavaDoc pPackageId;
25
26     public void setPActivityId(String JavaDoc paId) {
27         this.pActivityId = paId;
28     }
29
30     public String JavaDoc getPActivityId() {
31         return pActivityId;
32     }
33
34     public void setPProcessId(String JavaDoc ppId) {
35         this.pProcessId = ppId;
36     }
37
38     public String JavaDoc getPProcessId() {
39         return pProcessId;
40     }
41
42     public void setPProcessName(String JavaDoc ppn) {
43         this.pProcessName = ppn;
44     }
45
46     public String JavaDoc getPProcessName() {
47         return pProcessName;
48     }
49
50     public void setPProcessDefinitionName(String JavaDoc ppdn) {
51         this.pProcessMgrName = ppdn;
52     }
53
54     public String JavaDoc getPProcessDefinitionName() {
55         return pProcessMgrName;
56     }
57
58     public void setPProcessDefinitionVersion(String JavaDoc ppdv) {
59         this.pProcessMgrVersion = ppdv;
60     }
61
62     public String JavaDoc getPProcessDefinitionVersion() {
63         return pProcessMgrVersion;
64     }
65
66     public void setPActivityDefinitionId(String JavaDoc padId) {
67         pActivityDefinitionId = padId;
68     }
69
70     public String JavaDoc getPActivityDefinitionId() {
71         return pActivityDefinitionId;
72     }
73
74     public void setPActivitySetDefinitionId(String JavaDoc pasdId) {
75         pActivitySetDefinitionId = pasdId;
76     }
77
78     public String JavaDoc getPActivitySetDefinitionId() {
79         return pActivitySetDefinitionId;
80     }
81     public void setPProcessDefinitionId(String JavaDoc ppdId) {
82         this.pProcessDefinitionId = ppdId;
83     }
84
85     public String JavaDoc getPProcessDefinitionId() {
86         return pProcessDefinitionId;
87     }
88
89     public void setPPackageId(String JavaDoc ppkgId) {
90         this.pPackageId = ppkgId;
91     }
92
93     public String JavaDoc getPPackageId() {
94         return pPackageId;
95     }
96
97     public String JavaDoc toString() {
98         StringBuffer JavaDoc strBuffer = new StringBuffer JavaDoc();
99         strBuffer.append("IdDB = " + this.dbId + "\n");
100         strBuffer.append("timeStamp = " + this.getUTCTime() + "\n");
101         strBuffer.append("eventType = " + this.getType() + "\n");
102         strBuffer.append("processId = " + this.getProcessId() + "\n");
103         strBuffer.append("processName = " + this.getProcessName() + "\n");
104         strBuffer.append("processMgrName = " + this.getProcessDefinitionName()
105                 + "\n");
106         strBuffer.append("processMgrVersion = "
107                 + this.getProcessDefinitionVersion() + "\n");
108         strBuffer.append("processDefinitionId = "
109                 + this.getProcessDefinitionId() + "\n");
110         strBuffer.append("packageId = " + this.getPackageId() + "\n");
111         strBuffer.append("pActivityId = " + this.getPActivityId() + "\n");
112         strBuffer.append("pProcessId = " + this.getPProcessId() + "\n");
113         strBuffer.append("pProcessName = " + this.getPProcessName() + "\n");
114         strBuffer.append("pProcessMgrName = "
115                 + this.getPProcessDefinitionName() + "\n");
116         strBuffer.append("pProcessMgrVersion = "
117                 + this.getPProcessDefinitionVersion() + "\n");
118         strBuffer.append("pActivityDefinitionId = "
119                 + this.getPActivityDefinitionId() + "\n");
120         strBuffer.append("pProcessDefinitionId = "
121                 + this.getPProcessDefinitionId() + "\n");
122         strBuffer.append("pPackageId = " + this.getPPackageId() + "\n");
123
124         return strBuffer.toString();
125     }
126 }
127
Popular Tags