1 37 38 package com.sun.j2ee.blueprints.processmanager.manager.ejb; 39 40 import javax.ejb.*; 41 import java.util.*; 42 43 import com.sun.j2ee.blueprints.servicelocator.ejb.*; 44 45 public abstract class ManagerBean implements EntityBean { 46 47 private EntityContext context = null; 48 49 public abstract String getOrderId(); 51 public abstract void setOrderId(String orderId); 52 53 public abstract String getStatus(); 54 public abstract void setStatus(String status); 55 56 public abstract String getActivityOrderStatus(); 57 public abstract void setActivityOrderStatus(String status); 58 59 public abstract String getAirlineOrderStatus(); 60 public abstract void setAirlineOrderStatus(String status); 61 62 public abstract String getLodgingOrderStatus(); 63 public abstract void setLodgingOrderStatus(String status); 64 65 public abstract boolean getOrderError(); 66 public abstract void setOrderError(boolean orderError); 67 68 public String ejbCreate(String orderId, String status, 70 String actyOrderStatus, 71 String airlineOrderStatus, String lodgOrderStatus, 72 boolean orderError) throws CreateException { 73 setOrderId(orderId); 74 setStatus(status); 75 setActivityOrderStatus(actyOrderStatus); 76 setAirlineOrderStatus(airlineOrderStatus); 77 setLodgingOrderStatus(lodgOrderStatus); 78 setOrderError(orderError); 79 return null; 80 } 81 82 public void ejbPostCreate(String orderId, String status, String actyOrderStatus, 83 String airlineOrderStatus, String lodgOrderStatus,boolean orderError) throws CreateException {} 84 85 public void setEntityContext(EntityContext c) { 86 context = c; 87 } 88 public void unsetEntityContext() { 89 context = null; 90 } 91 public void ejbRemove() throws RemoveException { 92 } 93 public void ejbActivate() { 94 } 95 public void ejbPassivate() { 96 } 97 public void ejbStore() { 98 } 99 public void ejbLoad() { 100 } 101 } 102 | Popular Tags |