1 22 package org.jboss.test.cmp2.fkmapping.ejb; 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 54 public abstract class ChildCMPUnknownPKBean 55 implements EntityBean 56 { 57 private EntityContext ctx; 59 60 66 public abstract String getFirstName(); 67 public abstract void setFirstName(String name); 68 69 85 public abstract ParentLocal getFather(); 86 89 public abstract void setFather(ParentLocal parent); 90 91 107 public abstract ParentLocal getMother(); 108 111 public abstract void setMother(ParentLocal parent); 112 113 117 public Object ejbCreate(String firstName) 118 throws CreateException 119 { 120 setFirstName(firstName); 121 return null; 122 } 123 124 public void ejbPostCreate(Long id, String firstName) {} 125 126 129 public void setEntityContext(EntityContext ctx) 130 { 131 this.ctx = ctx; 132 } 133 134 137 public void unsetEntityContext() 138 { 139 this.ctx = null; 140 } 141 142 public void ejbActivate() {} 143 public void ejbLoad() {} 144 public void ejbPassivate() {} 145 public void ejbRemove() throws RemoveException {} 146 public void ejbStore() {} 147 } 148 | Popular Tags |