1 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 16 public class HibernateProcessMgr extends HibernateObjectUtil implements ProcessMgrPersistenceInterface, HibernateGeneric { 17 18 private String name; 19 private String packageId; 20 private String processDefinitionId; 21 private int state; 22 private String version; 23 private String 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 name) { 36 this.name = name; 37 } 38 39 public String getName() { 40 return name; 41 } 42 43 public void setPackageId(String pkgId) { 44 this.packageId = pkgId; 45 } 46 47 public String getPackageId() { 48 return packageId; 49 } 50 51 public void setProcessDefinitionId(String pdId) { 52 this.processDefinitionId = pdId; 53 } 54 55 public String 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 getVersion() { 68 return version; 69 } 70 71 public void setVersion(String version) { 72 this.version = version; 73 } 74 75 public String getCreated() { 76 return created; 77 } 78 79 public void setCreated(String created) { 80 this.created = created; 81 } 82 83 public String toString() { 84 StringBuffer strBuffer = new StringBuffer (); 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 |