1 package test.ejb; 2 3 import test.interfaces.PersonData; 4 5 import javax.ejb.*; 6 import java.util.Collection ; 7 8 64 65 public abstract class PersonBean 66 extends BaseEntityBean 67 implements EntityBean { 68 private EntityContext ctx; 69 70 84 public abstract String getId(); 85 86 91 public abstract void setId(String id); 92 93 117 public abstract String getName(); 118 119 123 public abstract void setName(String name); 124 125 147 public abstract String getFirstName(); 148 149 154 public abstract void setFirstName(String firstName); 155 156 176 public abstract String getPhone(); 177 178 183 public abstract void setPhone(String phone); 184 185 205 public abstract String getFax(); 206 207 212 public abstract void setFax(String fax); 213 214 222 public Integer getNonPersistentFormField() 223 { 224 return new Integer (0); 225 } 226 227 public void setNonPersistentFormField(Integer i) 228 { 229 230 } 231 232 236 public void setData(PersonData data) { 237 setId(data.getId()); 238 setName(data.getName()); 239 } 240 241 244 public void talkTo() { 245 ; 246 } 247 248 252 public void ejbPostCreate(PersonData data) 253 throws CreateException { 254 } 255 256 260 public Collection ejbFindCustomFinder(int a, String b) { 261 return null; 262 } 263 264 266 public java.util.Collection ejbFindCustomFinderInSuper() { 267 return null; 268 } 269 270 277 public java.util.Collection ejbFindByPhone(String phone) { 278 return null; 279 } 280 281 285 public String getComputedField() { 286 return "abc"; 287 } 288 289 } 290 | Popular Tags |