KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > instancepersistence > HibernateProcessMgr


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

4
5 package org.enhydra.shark.instancepersistence;
6
7 import org.enhydra.shark.api.internal.instancepersistence.ProcessMgrPersistenceInterface;
8 import org.enhydra.shark.utilities.hibernate.HibernateGeneric;
9 import org.enhydra.shark.utilities.hibernate.HibernateObjectUtil;
10
11 /**
12  * Simple Hibernate POJO class
13  *
14  * @author Vladislav Pernin
15  */

16 public class HibernateProcessMgr extends HibernateObjectUtil implements ProcessMgrPersistenceInterface, HibernateGeneric {
17
18     private String JavaDoc name;
19     private String JavaDoc packageId;
20     private String JavaDoc processDefinitionId;
21     private int state;
22     private String JavaDoc version;
23     private String JavaDoc created;
24     
25     private int dbId = -1;
26     
27     public int getDbId() {
28         return dbId;
29     }
30
31     public void setDbId(int dbId) {
32         this.dbId = dbId;
33     }
34
35     public void setName(String JavaDoc name) {
36         this.name = name;
37     }
38
39     public String JavaDoc getName() {
40         return name;
41     }
42
43     public void setPackageId(String JavaDoc pkgId) {
44         this.packageId = pkgId;
45     }
46
47     public String JavaDoc getPackageId() {
48         return packageId;
49     }
50
51     public void setProcessDefinitionId(String JavaDoc pdId) {
52         this.processDefinitionId = pdId;
53     }
54
55     public String JavaDoc getProcessDefinitionId() {
56         return processDefinitionId;
57     }
58
59     public void setState(int state) {
60         this.state = state;
61     }
62
63     public int getState() {
64         return state;
65     }
66
67     public String JavaDoc getVersion() {
68         return version;
69     }
70
71     public void setVersion(String JavaDoc version) {
72         this.version = version;
73     }
74
75     public String JavaDoc getCreated() {
76         return created;
77     }
78
79     public void setCreated(String JavaDoc created) {
80         this.created = created;
81     }
82
83     public String JavaDoc toString() {
84         StringBuffer JavaDoc strBuffer = new StringBuffer JavaDoc();
85         strBuffer.append("idDB = " + this.dbId + "\n");
86         strBuffer.append("name = " + this.getName() + "\n");
87         strBuffer.append("packageId = " + this.getPackageId() + "\n");
88         strBuffer.append("processDefinitionId = " + this.getProcessDefinitionId() + "\n");
89         strBuffer.append("state = " + this.getState() + "\n");
90         strBuffer.append("created = " + this.getCreated() + "\n");
91         strBuffer.append("version = " + this.getVersion() + "\n");
92
93         return strBuffer.toString();
94
95     }
96
97 }
Popular Tags