1 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 16 public class HibernateActivityVariable extends HibernateObjectUtil implements ActivityVariablePersistenceInterface, HibernateGeneric { 17 18 private String activityId; 19 private String definitionId; 20 private Object 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 actId) { 34 this.activityId = actId; 35 } 36 37 public String getActivityId() { 38 return activityId; 39 } 40 41 public void setDefinitionId(String dId) { 42 this.definitionId = dId; 43 } 44 45 public String getDefinitionId() { 46 return definitionId; 47 } 48 49 public Object getValue () { 50 return value; 51 } 52 53 public void setValue(Object 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 toString(){ 66 StringBuffer strBuffer = new StringBuffer (); 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 |