1 25 26 package org.objectweb.jonas.jtests.beans.ebasic; 27 28 import org.objectweb.jonas.common.Log; 29 import org.objectweb.util.monolog.api.Logger; 30 import org.objectweb.util.monolog.api.BasicLevel; 31 32 35 public abstract class BDateEC2 implements javax.ejb.EntityBean { 36 37 static private Logger logger = null; 38 javax.ejb.EntityContext ejbContext; 39 40 41 public java.util.Date ejbCreate(int f1, 42 int f2, 43 java.util.Date f3) throws javax.ejb.CreateException { 44 45 logger.log(BasicLevel.DEBUG, ""); 46 47 setField1(f1); 49 setField2(f2); 50 setField3(f3); 51 return null; 52 } 53 54 public void ejbPostCreate(int f1, int f2, java.util.Date f3) { 55 logger.log(BasicLevel.DEBUG, ""); 56 } 57 58 public abstract int getField1(); 63 public abstract void setField1(int f1); 64 65 public abstract int getField2(); 66 public abstract void setField2(int f2); 67 68 public abstract java.util.Date getField3(); 69 public abstract void setField3(java.util.Date f3); 70 71 75 76 public void setEntityContext(javax.ejb.EntityContext ctx) { 77 if (logger == null) { 78 logger = Log.getLogger("org.objectweb.jonas_tests"); 79 } 80 logger.log(BasicLevel.DEBUG, ""); 81 ejbContext = ctx; 82 } 83 84 85 public void unsetEntityContext() { 86 logger.log(BasicLevel.DEBUG, ""); 87 ejbContext = null; 88 } 89 90 public void ejbRemove() throws javax.ejb.RemoveException { 91 logger.log(BasicLevel.DEBUG, ""); 92 } 93 94 95 public void ejbLoad() { 96 logger.log(BasicLevel.DEBUG, ""); 97 } 98 99 100 public void ejbStore() { 101 logger.log(BasicLevel.DEBUG, ""); 102 } 103 104 105 public void ejbPassivate() { 106 logger.log(BasicLevel.DEBUG, ""); 107 } 108 109 110 public void ejbActivate() { 111 logger.log(BasicLevel.DEBUG, ""); 112 } 113 114 } 115 116 117 118 | Popular Tags |