1 23 package org.hammurapi.inspectors.testcases.fixes; 24 25 import java.rmi.RemoteException ; 26 27 import javax.ejb.CreateException ; 28 import javax.ejb.EntityBean ; 29 import javax.ejb.EntityContext ; 30 31 36 public class EnsureEjbPostCreateRuleFixTestCase implements EntityBean { 37 38 private static final org.apache.log4j.Logger logger = 39 org.apache.log4j.Logger.getRootLogger(); 40 41 private transient EntityContext objcContext; 42 43 private Integer mProdSubmissionID = null; 44 45 46 public void setEntityContext(final EntityContext objaContext) { 47 this.objcContext = objaContext; 48 } 49 50 51 public void unsetEntityContext() { 52 objcContext = null; 53 } 54 55 56 public void ejbActivate() { 57 } 58 59 60 public void ejbPassivate() { 61 } 62 63 64 public void ejbLoad() { 65 } 66 67 68 public void ejbStore() { 69 } 70 71 72 public void ejbRemove() { 73 } 74 75 76 public Integer ejbCreate() throws CreateException , RemoteException { 77 78 this.mProdSubmissionID = new Integer (0); 79 return this.mProdSubmissionID; 80 } 81 82 84 public void ejbPostCreate() { 85 } 86 } 87 88 | Popular Tags |