1 22 package org.jboss.test.cmp2.cmrstress.ejb; 23 24 import javax.ejb.EntityBean ; 25 import javax.ejb.EntityContext ; 26 import javax.ejb.RemoveException ; 27 28 import org.jboss.logging.Logger; 29 30 61 public abstract class ChildBean implements EntityBean 62 { 63 70 public abstract String getId(); 71 72 77 public abstract void setId(String id); 78 79 86 public abstract String getName(); 87 88 93 public abstract void setName(String name); 94 95 102 public abstract String getValue(); 103 104 109 public abstract void setValue(String value); 110 111 116 public String ejbCreate(String id, String name, String value) throws javax.ejb.CreateException 117 { 118 msLog.debug("Created with pk: " + id); 119 setId(id); 120 setName(name); 121 setValue(value); 122 return null; 123 } 124 125 public void ejbPostCreate(String id, String name, String value) 126 { 127 } 128 129 132 public void ejbActivate() 133 { 134 } 135 136 139 public void ejbLoad() 140 { 141 } 142 143 146 public void ejbPassivate() 147 { 148 } 149 150 153 public void ejbRemove() throws RemoveException 154 { 155 } 156 157 160 public void ejbStore() 161 { 162 } 163 164 167 public void setEntityContext(EntityContext arg0) 168 { 169 } 170 171 174 public void unsetEntityContext() 175 { 176 } 177 178 private static final Logger msLog = Logger.getLogger(ChildBean.class); 179 180 } 181 | Popular Tags |