1 4 5 6 package org.enhydra.shark.instancepersistence; 7 8 import org.enhydra.shark.api.internal.instancepersistence.ProcessPersistenceInterface; 9 import org.enhydra.shark.utilities.hibernate.HibernateGeneric; 10 import org.enhydra.shark.utilities.hibernate.HibernateObjectUtil; 11 12 16 public class HibernateProcess extends HibernateObjectUtil implements ProcessPersistenceInterface, HibernateGeneric { 17 18 private String idPro; 19 private String managerName; 20 private String actRequesterId; 21 private String actRequesterProcessId; 22 private String resRequesterId; 23 private String state; 24 private String name; 25 private String description; 26 private int priority; 27 private long startedTime; 28 private long lastStateTime; 29 30 private int stateId; 31 32 private int dbId = -1; 33 34 public int getDbId() { 35 return dbId; 36 } 37 38 public void setDbId(int dbId) { 39 this.dbId = dbId; 40 } 41 42 public void setId(String id) { 43 this.idPro = id; 44 } 45 46 public String getId() { 47 return idPro; 48 } 49 50 public void setProcessMgrName(String mgrName) { 51 this.managerName = mgrName; 52 } 53 54 public String getProcessMgrName() { 55 return managerName; 56 } 57 58 public void setActivityRequesterId(String actReqId) { 59 this.actRequesterId = actReqId; 60 } 61 62 public String getActivityRequesterId() { 63 return actRequesterId; 64 } 65 66 public void setActivityRequestersProcessId(String actReqProcId) { 67 this.actRequesterProcessId = actReqProcId; 68 } 69 70 public String getActivityRequestersProcessId() { 71 return actRequesterProcessId; 72 } 73 74 public void setResourceRequesterId(String resReqId) { 75 this.resRequesterId = resReqId; 76 } 77 78 public String getResourceRequesterId() { 79 return resRequesterId; 80 } 81 82 public String getName() { 83 return name; 84 } 85 86 public void setName(String name) { 87 this.name = name; 88 } 89 90 public String getDescription() { 91 return description; 92 } 93 94 public void setDescription(String desc) { 95 this.description = desc; 96 } 97 98 public int getPriority() { 99 return priority; 100 } 101 102 public void setPriority(int priority) { 103 this.priority = priority; 104 } 105 106 public String getState() { 107 return state; 108 } 109 110 public int getStateId() { 111 return stateId; 112 } 113 114 public void setState(String string) { 115 state = string; 116 } 117 118 public void setStateId(int i) { 119 stateId = i; 120 } 121 122 public long getLastStateTime() { 123 return lastStateTime; 124 } 125 126 public void setLastStateTime(long timestamp) { 127 lastStateTime = timestamp; 128 } 129 130 public long getStartedTime() { 131 return startedTime; 132 } 133 134 public void setStartedTime(long timestamp) { 135 startedTime = timestamp; 136 } 137 138 public String toString(){ 139 StringBuffer strBuffer = new StringBuffer (); 140 strBuffer.append("idDB = " + this.dbId + "\n"); 141 strBuffer.append("id = " + this.idPro + "\n"); 142 strBuffer.append("managerName = " + this.managerName + "\n"); 143 strBuffer.append("actRequesterId = " + this.actRequesterId + "\n"); 144 strBuffer.append("actRequesterProcessId = " + this.actRequesterProcessId + "\n"); 145 strBuffer.append("resRequesterId = " + this.resRequesterId + "\n"); 146 strBuffer.append("state = " + this.state + "\n"); 147 strBuffer.append("stateId = " + this.stateId + "\n"); 148 strBuffer.append("name = " + this.name + "\n"); 149 strBuffer.append("description = " + this.description + "\n"); 150 strBuffer.append("priority = " + this.priority + "\n"); 151 strBuffer.append("lastStateTime = " + this.lastStateTime + "\n"); 152 strBuffer.append("startedTime = " + this.startedTime + "\n"); 153 return strBuffer.toString(); 154 155 } 156 157 } 158 | Popular Tags |