1 24 25 package org.objectweb.jonas.jtests.beans.ebasic; 26 27 import org.objectweb.jonas.common.Log; 28 import org.objectweb.util.monolog.api.Logger; 29 import org.objectweb.util.monolog.api.BasicLevel; 30 31 36 public abstract class pkautoObjectEC2 implements javax.ejb.EntityBean { 37 38 static protected Logger logger = null; 39 javax.ejb.EntityContext ejbContext; 40 41 42 public java.lang.Object ejbCreate(int f1, int f2) throws javax.ejb.CreateException { 43 logger.log(BasicLevel.DEBUG, ""); 44 45 setField1(f1); 47 setField2(f2); 48 return null; 49 } 50 51 public void ejbPostCreate(int f1, int f2) { 52 logger.log(BasicLevel.DEBUG, ""); 53 } 54 55 public abstract int getField1(); 59 public abstract void setField1(int f1); 60 61 public abstract int getField2(); 62 public abstract void setField2(int f2); 63 64 68 public void setEntityContext(javax.ejb.EntityContext ctx) { 69 if (logger == null) { 70 logger = Log.getLogger("org.objectweb.jonas_tests"); 71 } 72 logger.log(BasicLevel.DEBUG, ""); 73 ejbContext = ctx; 74 } 75 76 public void unsetEntityContext() { 77 logger.log(BasicLevel.DEBUG, ""); 78 ejbContext = null; 79 } 80 81 public void ejbRemove() throws javax.ejb.RemoveException { 82 logger.log(BasicLevel.DEBUG, ""); 83 } 84 85 public void ejbLoad() { 86 logger.log(BasicLevel.DEBUG, ""); 87 } 88 89 public void ejbStore() { 90 logger.log(BasicLevel.DEBUG, ""); 91 } 92 93 public void ejbPassivate() { 94 logger.log(BasicLevel.DEBUG, ""); 95 } 96 97 public void ejbActivate() { 98 logger.log(BasicLevel.DEBUG, ""); 99 } 100 101 } 102 103 104 105 | Popular Tags |