1 5 package com.opensymphony.workflow.spi.ejb; 6 7 import java.sql.Timestamp ; 8 9 import javax.ejb.CreateException ; 10 import javax.ejb.EntityBean ; 11 12 13 50 public abstract class HistoryStepEJB implements EntityBean { 51 53 public abstract void setActionId(int actionId); 54 55 59 public abstract int getActionId(); 60 61 public abstract void setCaller(String caller); 62 63 67 public abstract String getCaller(); 68 69 public abstract void setDueDate(Timestamp dueDate); 70 71 75 public abstract Timestamp getDueDate(); 76 77 public abstract void setEntryId(long entryId); 78 79 83 public abstract long getEntryId(); 84 85 public abstract void setFinishDate(Timestamp finishDate); 86 87 91 public abstract Timestamp getFinishDate(); 92 93 public abstract void setId(Long id); 94 95 100 public abstract Long getId(); 101 102 public abstract void setOwner(String owner); 103 104 108 public abstract String getOwner(); 109 110 public abstract void setStartDate(Timestamp startDate); 111 112 116 public abstract Timestamp getStartDate(); 117 118 public abstract void setStatus(String status); 119 120 124 public abstract String getStatus(); 125 126 public abstract void setStepId(int stepId); 127 128 132 public abstract int getStepId(); 133 134 137 public Long ejbCreate(long id, long entryId, int stepId, int actionId, String owner, Timestamp startDate, Timestamp dueDate, Timestamp finishDate, String status, String caller) throws CreateException { 138 try { 139 Long pk = new Long (id); 140 setId(pk); 141 setEntryId(entryId); 142 setStepId(stepId); 143 setActionId(actionId); 144 setOwner(owner); 145 setStartDate(startDate); 146 setFinishDate(finishDate); 147 setStatus(status); 148 setCaller(caller); 149 150 return pk; 151 } catch (Exception e) { 152 throw new CreateException (e.getMessage()); 153 } 154 } 155 156 public void ejbPostCreate(long id, long entryId, int stepId, int actionId, String owner, Timestamp startDate, Timestamp dueDate, Timestamp finishDate, String status, String caller) throws CreateException { 157 } 158 } 159 | Popular Tags |