1 22 package org.jboss.test.cmp2.distinct; 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 51 public abstract class ABean implements EntityBean 52 { 53 59 public abstract Integer getId(); 60 61 public abstract void setId(Integer id); 62 63 67 public abstract MyData getMyData(); 68 69 72 public abstract void setMyData(MyData data); 73 74 78 public abstract String getName(); 79 80 83 public abstract void setName(String name); 84 85 89 public Integer ejbCreate(Integer id, String name) 90 throws CreateException 91 { 92 setId(id); 93 setName(name); 94 return null; 95 } 96 97 public void ejbPostCreate(Integer id, String name) 98 { 99 } 100 101 104 public void setEntityContext(EntityContext ctx) 105 { 106 } 107 108 111 public void unsetEntityContext() 112 { 113 } 114 115 public void ejbActivate() 116 { 117 } 118 119 public void ejbLoad() 120 { 121 } 122 123 public void ejbPassivate() 124 { 125 } 126 127 public void ejbRemove() throws RemoveException 128 { 129 } 130 131 public void ejbStore() 132 { 133 } 134 } 135 | Popular Tags |