1 package org.objectweb.jonas.stests.appli; 3 4 import org.objectweb.jonas.common.Log; 5 import org.objectweb.util.monolog.api.Logger; 6 import org.objectweb.util.monolog.api.BasicLevel; 7 8 11 public abstract class ItemEC2R implements javax.ejb.EntityBean { 12 13 static private Logger logger = null; 14 javax.ejb.EntityContext ejbContext; 15 16 31 public String ejbCreate(Integer id, String name, float price, String data) throws javax.ejb.CreateException { 32 logger.log(BasicLevel.DEBUG, ""); 33 34 setItemID(id); 36 setItemName(name); 37 setItemPrice(price); 38 setItemInfo(data); 39 return null; 40 } 41 42 public void ejbPostCreate(Integer id, String name, float price, String data) { 43 logger.log(BasicLevel.DEBUG, ""); 44 } 45 46 public abstract Integer getItemID(); 51 public abstract void setItemID(Integer f1); 52 53 public abstract String getItemName(); 54 public abstract void setItemName(String f2); 55 56 public abstract float getItemPrice(); 57 public abstract void setItemPrice(float f2); 58 59 public abstract String getItemInfo(); 60 public abstract void setItemInfo(String f3); 61 62 66 67 public void setEntityContext(javax.ejb.EntityContext ctx) { 68 if (logger == null) { 69 logger = Log.getLogger("org.objectweb.jonas_tests"); 70 } 71 logger.log(BasicLevel.DEBUG, ""); 72 ejbContext = ctx; 73 } 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 86 public void ejbLoad() { 87 logger.log(BasicLevel.DEBUG, ""); 88 } 89 90 91 public void ejbStore() { 92 logger.log(BasicLevel.DEBUG, ""); 93 } 94 95 96 public void ejbPassivate() { 97 logger.log(BasicLevel.DEBUG, ""); 98 } 99 100 101 public void ejbActivate() { 102 logger.log(BasicLevel.DEBUG, ""); 103 } 104 105 } 106 107 108 109 | Popular Tags |