1 22 package org.jboss.test.cts.ejb; 23 24 25 26 import org.jboss.test.cts.keys.*; 27 import java.rmi.RemoteException ; 28 import java.util.Vector ; 29 import java.util.Collection ; 30 import java.sql.*; 31 import javax.naming.*; 32 import javax.ejb.*; 33 import javax.sql.DataSource ; 34 35 36 public class BmpCallbackBean 37 implements EntityBean 38 { 39 org.jboss.logging.Logger log = org.jboss.logging.Logger.getLogger(getClass()); 40 41 EntityContext ctx; 42 43 58 59 public AccountPK ejbCreate (AccountPK pk, String personsName) 60 throws CreateException, DuplicateKeyException, EJBException, 61 RemoteException 62 { 63 log.debug("entry ejbCreate"); 64 65 return new AccountPK(pk.getKey()); 66 } 67 68 81 82 public AccountPK ejbFindByPrimaryKey (AccountPK pk) 83 throws FinderException, EJBException, RemoteException 84 { 85 log.debug("entry ejbFindByPrimaryKey"); 86 87 return new AccountPK(pk.getKey()); 88 } 89 90 103 104 public void ejbPostCreate (AccountPK pk, String personsName) 105 throws CreateException, DuplicateKeyException, EJBException, 106 RemoteException 107 { 108 log.debug("ejbPostCreate (AccountPK, String) called"); 109 } 110 111 119 120 public void ejbLoad () 121 throws EJBException, RemoteException 122 { 123 log.debug("ejbLoad () called"); 124 } 125 126 134 135 public void ejbStore () 136 throws EJBException, RemoteException 137 { 138 log.debug("ejbStore () called"); 139 140 } 141 142 150 151 public void ejbRemove () 152 throws EJBException, RemoteException 153 { 154 log.debug("ejbRemove () called"); 155 } 156 157 165 166 public void ejbActivate () 167 throws EJBException, RemoteException 168 { 169 log.debug("ejbActivate () called"); 170 } 171 172 180 181 public void ejbPassivate () 182 throws EJBException, RemoteException 183 { 184 log.debug("ejbPassivate () called"); 185 } 186 187 197 198 public void setEntityContext (EntityContext ctx) 199 throws EJBException, RemoteException 200 { 201 log.debug("setEntityContext () called"); 202 203 this.ctx = ctx; 204 205 } 206 207 215 216 public void unsetEntityContext () 217 throws EJBException, RemoteException 218 { 219 log.debug("unsetEntityContext () called"); 220 221 ctx = null; 222 } 223 224 } 225 226 227 228 229 230 | Popular Tags |