1 5 package com.opensymphony.workflow.spi.ejb; 6 7 import com.opensymphony.ejb.ExceptionlessEntityAdapter; 8 9 import java.sql.Timestamp ; 10 11 import javax.ejb.CreateException ; 12 13 14 56 public abstract class CurrentStepEJB extends ExceptionlessEntityAdapter { 57 59 62 public abstract void setActionId(int actionId); 63 64 68 public abstract int getActionId(); 69 70 73 public abstract void setCaller(String caller); 74 75 79 public abstract String getCaller(); 80 81 84 public abstract void setDueDate(Timestamp dueDate); 85 86 90 public abstract Timestamp getDueDate(); 91 92 public abstract void setEntryId(long entryId); 93 94 98 public abstract long getEntryId(); 99 100 103 public abstract void setFinishDate(Timestamp finishDate); 104 105 109 public abstract Timestamp getFinishDate(); 110 111 public abstract void setId(Long id); 112 113 118 public abstract Long getId(); 119 120 public abstract void setOwner(String owner); 121 122 126 public abstract String getOwner(); 127 128 public abstract void setStartDate(Timestamp startDate); 129 130 134 public abstract Timestamp getStartDate(); 135 136 139 public abstract void setStatus(String status); 140 141 145 public abstract String getStatus(); 146 147 public abstract void setStepId(int stepId); 148 149 153 public abstract int getStepId(); 154 155 158 public Long ejbCreate(long entryId, int stepId, String owner, Timestamp startDate, Timestamp dueDate, String status) throws CreateException { 159 try { 160 Long id = new Long (nextLong()); 161 setId(id); 162 setEntryId(entryId); 163 setStepId(stepId); 164 setOwner(owner); 165 setStartDate(startDate); 166 setDueDate(dueDate); 167 setStatus(status); 168 169 return id; 170 } catch (Exception e) { 171 throw new CreateException (e.getMessage()); 172 } 173 } 174 175 public void ejbPostCreate(long entryId, int stepId, String owner, Timestamp startDate, Timestamp dueDate, String status) throws CreateException { 176 } 177 } 178 | Popular Tags |