KickJava   Java API By Example, From Geeks To Geeks.

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


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.AndJoinEntryInterface;
8 import org.enhydra.shark.utilities.hibernate.HibernateGeneric;
9 import org.enhydra.shark.utilities.hibernate.HibernateObjectUtil;
10
11
12 /**
13  * Simple Hibernate POJO class
14  * @author Vladislav Pernin
15  */

16 public class HibernateAndJoinEntry extends HibernateObjectUtil implements AndJoinEntryInterface, HibernateGeneric {
17
18     private String JavaDoc processId;
19     private String JavaDoc activityDefinitionId;
20     private String JavaDoc activitySetDefinitionId;
21     private String JavaDoc activityId;
22     
23     private int dbId = -1;
24     
25     public int getDbId() {
26         return dbId;
27     }
28
29     public void setDbId(int dbId) {
30         this.dbId = dbId;
31     }
32
33     public void setActivitySetDefinitionId (String JavaDoc asdId) {
34         this.activitySetDefinitionId=asdId;
35     }
36
37     public String JavaDoc getActivitySetDefinitionId () {
38         return activitySetDefinitionId;
39     }
40     
41     public void setProcessId(String JavaDoc procId) {
42         this.processId = procId;
43     }
44
45     public String JavaDoc getProcessId() {
46         return processId;
47     }
48
49     public void setActivityDefinitionId(String JavaDoc adId) {
50         this.activityDefinitionId = adId;
51     }
52
53     public String JavaDoc getActivityDefinitionId() {
54         return activityDefinitionId;
55     }
56
57     public void setActivityId(String JavaDoc actId) {
58         activityId = actId;
59     }
60
61     public String JavaDoc getActivityId() {
62         return activityId;
63     }
64
65     public String JavaDoc toString(){
66         StringBuffer JavaDoc strBuffer = new StringBuffer JavaDoc();
67         strBuffer.append("idDB = " + this.dbId + "\n");
68         strBuffer.append("activityId = " + this.activityId + "\n");
69         strBuffer.append("activityDefinitionId = " + this.activityDefinitionId + "\n");
70         strBuffer.append("processId = " + this.processId + "\n");
71         return strBuffer.toString();
72     }
73
74 }
75
Popular Tags