1 22 package org.jboss.test.cmp2.jbas1361; 23 24 25 import javax.ejb.EntityBean ; 26 import javax.ejb.EntityContext ; 27 import javax.ejb.RemoveException ; 28 import javax.ejb.CreateException ; 29 30 31 48 public abstract class BBean 49 implements EntityBean 50 { 51 57 public abstract Integer getId(); 58 59 public abstract void setId(Integer id); 60 61 66 public abstract String getName(); 67 68 71 public abstract void setName(String id); 72 73 83 public abstract ALocal getA(); 84 87 public abstract void setA(ALocal a); 88 89 93 public BPK ejbCreate(Integer id, String name) 94 throws CreateException 95 { 96 setId(id); 97 setName(name); 98 return null; 99 } 100 101 public void ejbPostCreate(Integer id, String name) 102 { 103 } 104 105 108 public void setEntityContext(EntityContext ctx) 109 { 110 } 111 112 115 public void unsetEntityContext() 116 { 117 } 118 119 public void ejbActivate() 120 { 121 } 122 123 public void ejbLoad() 124 { 125 } 126 127 public void ejbPassivate() 128 { 129 } 130 131 public void ejbRemove() throws RemoveException 132 { 133 } 134 135 public void ejbStore() 136 { 137 } 138 } 139 | Popular Tags |