1 25 26 package xdoclet; 27 28 import javax.ejb.EntityContext; 29 import java.util.Date; 30 import javax.naming.InitialContext; 31 import javax.naming.NamingException; 32 59 60 public abstract class PhoneBean implements javax.ejb.EntityBean { 61 62 68 public Object ejbCreate( String number, byte type) throws javax.ejb.CreateException { 69 setNumber(number); 70 setType(type); 71 return null; 72 } 73 74 public void ejbPostCreate(String number, byte type) { 75 System.out.println("PhoneBean ejbPostCreate number= "+number); 76 } 77 78 79 80 87 public abstract String getNumber(); 88 92 public abstract void setNumber(String number); 93 97 public abstract byte getType(); 98 102 public abstract void setType(byte type); 103 104 106 public void setEntityContext(EntityContext ec){} 107 public void unsetEntityContext(){} 108 public void ejbLoad(){} 109 public void ejbStore(){} 110 public void ejbActivate(){} 111 public void ejbPassivate(){} 112 public void ejbRemove() throws javax.ejb.RemoveException{} 113 114 } 115 | Popular Tags |