1 package com.titan.phone; 2 3 import javax.ejb.EntityContext; 4 import java.util.Date; 5 import javax.naming.InitialContext; 6 import javax.naming.NamingException; 7 8 public abstract class PhoneBean implements javax.ejb.EntityBean { 9 10 public Object ejbCreate(String number, byte type) throws javax.ejb.CreateException { 11 setNumber(number); 12 setType(type); 13 14 return null; 15 } 16 17 public void ejbPostCreate(String number, byte type) { 18 } 19 20 public abstract String getNumber(); 22 public abstract void setNumber(String number); 23 public abstract byte getType(); 24 public abstract void setType(byte type); 25 26 28 public void setEntityContext(EntityContext ec){} 29 public void unsetEntityContext(){} 30 public void ejbLoad(){} 31 public void ejbStore(){} 32 public void ejbActivate(){} 33 public void ejbPassivate(){} 34 public void ejbRemove() throws javax.ejb.RemoveException{} 35 36 } 37 | Popular Tags |