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 EjbCreateModifiersRuleFixTestCase 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 77 public Integer ejbCreate() throws CreateException , RemoteException { 78 79 this.mProdSubmissionID = new Integer (0); 80 return this.mProdSubmissionID; 81 } 82 83 84 public void ejbPostCreate() { 85 } 86 87 89 public Integer ejbCreate(final int pProdSubmissionID) 90 throws CreateException , RemoteException { 91 92 return new Integer (pProdSubmissionID); 93 } 94 95 96 public void ejbPostCreate(final int pProdSubmissionID) { 97 } 98 99 101 public Integer ejbCreate(final Integer pProdSubmissionID) 102 throws CreateException , RemoteException { 103 104 this.mProdSubmissionID = pProdSubmissionID; 105 return this.mProdSubmissionID; 106 } 107 108 109 public void ejbPostCreate(final Integer pProdSubmissionID) { 110 } 111 } 112 113 | Popular Tags |