KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

16 public class HibernateActivityVariable extends HibernateObjectUtil implements ActivityVariablePersistenceInterface, HibernateGeneric {
17
18     private String JavaDoc activityId;
19     private String JavaDoc definitionId;
20     private Object JavaDoc value;
21     private boolean modified;
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 setActivityId(String JavaDoc actId) {
34         this.activityId = actId;
35     }
36
37     public String JavaDoc getActivityId() {
38         return activityId;
39     }
40
41     public void setDefinitionId(String JavaDoc dId) {
42         this.definitionId = dId;
43     }
44
45     public String JavaDoc getDefinitionId() {
46         return definitionId;
47     }
48
49     public Object JavaDoc getValue () {
50         return value;
51      }
52
53     public void setValue(Object JavaDoc val) {
54         this.value = val;
55     }
56
57     public void setResultVariable(boolean b) {
58         modified = b;
59     }
60
61     public boolean isResultVariable() {
62         return modified;
63     }
64
65     public String JavaDoc toString(){
66         StringBuffer JavaDoc strBuffer = new StringBuffer JavaDoc();
67         strBuffer.append("\tIdDB = " + this.dbId + "\n");
68         strBuffer.append("\tactivityId = " + this.activityId + "\n");
69         strBuffer.append("\tdefinitionId = " + this.definitionId + "\n");
70         strBuffer.append("\tvalue = " + this.value + "\n");
71         strBuffer.append("\tmodified = " + this.modified + "\n");
72         return strBuffer.toString();
73     }
74 }
75
Popular Tags