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 EjbPostCreateModifiersRuleFixTestCase implements EntityBean { 37 38 private static 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 this.mProdSubmissionID = new Integer (0); 78 return this.mProdSubmissionID; 79 } 80 81 83 public void ejbPostCreate() { 84 } 85 86 87 public Integer ejbCreate(final int pProdSubmissionID) 88 throws CreateException , RemoteException { 89 return new Integer (pProdSubmissionID); 90 } 91 92 94 public void ejbPostCreate(final int pProdSubmissionID) { 95 } 96 97 98 public Integer ejbCreate(final Integer pProdSubmissionID) 99 throws CreateException , RemoteException { 100 101 this.mProdSubmissionID = pProdSubmissionID; 102 return this.mProdSubmissionID; 103 } 104 105 107 public void ejbPostCreate(final Integer pProdSubmissionID) { 108 } 109 } 110 111 | Popular Tags |