1 25 26 28 package org.objectweb.jonas.jtests.beans.inherit; 29 30 import javax.ejb.CreateException ; 31 import javax.ejb.EntityBean ; 32 import javax.ejb.EntityContext ; 33 import javax.ejb.RemoveException ; 34 35 import org.objectweb.jonas.common.Log; 36 import org.objectweb.util.monolog.api.Logger; 37 import org.objectweb.util.monolog.api.BasicLevel; 38 39 40 public class PersonEC extends PersonImpl implements EntityBean { 41 42 static protected Logger logger = null; 43 protected EntityContext entityContext; 44 45 public IdPK ejbCreate(int val_id, String val_name) throws CreateException { 46 47 logger.log(BasicLevel.DEBUG, 48 "PersonEC.ejbCreate(int " + val_id + " ,String " + val_name + ")"); 49 id = val_id; 51 name = val_name; 52 age = 1; 53 54 return(null); 55 } 56 57 public void ejbPostCreate(int val_id, String val_name) { 58 } 59 60 public void ejbActivate() { 61 } 62 63 public void ejbPassivate() { 64 } 65 66 public void ejbLoad() { 67 } 68 69 public void ejbStore() { 70 } 71 72 public void ejbRemove() { 74 } 75 76 public void setEntityContext(EntityContext ctx) { 77 if (logger == null) { 78 logger = Log.getLogger("org.objectweb.jonas_tests"); 79 } 80 logger.log(BasicLevel.DEBUG, ""); 81 entityContext = ctx; 82 } 83 84 public void unsetEntityContext() { 85 } 86 87 } 88 | Popular Tags |