1 23 package org.hammurapi.inspectors.testcases.violations; 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 EjbPostCreateModifiersRuleViolationTestCase 37 implements EntityBean { 38 39 private static org.apache.log4j.Logger logger = 40 org.apache.log4j.Logger.getRootLogger(); 41 42 private transient EntityContext objcContext; 43 44 private Integer mProdSubmissionID = null; 45 46 47 public void setEntityContext(final EntityContext objaContext) { 48 this.objcContext = objaContext; 49 } 50 51 52 public void unsetEntityContext() { 53 objcContext = null; 54 } 55 56 57 public void ejbActivate() { 58 } 59 60 61 public void ejbPassivate() { 62 } 63 64 65 public void ejbLoad() { 66 } 67 68 69 public void ejbStore() { 70 } 71 72 73 public void ejbRemove() { 74 } 75 76 77 public Integer ejbCreate() throws CreateException , RemoteException { 78 this.mProdSubmissionID = new Integer (0); 79 return this.mProdSubmissionID; 80 } 81 82 void ejbPostCreate() { 84 } 85 86 87 public Integer ejbCreate(final int pProdSubmissionID) 88 throws CreateException , RemoteException { 89 return new Integer (pProdSubmissionID); 90 } 91 92 static void ejbPostCreate(final int pProdSubmissionID) { 94 } 95 96 97 public Integer ejbCreate(final Integer pProdSubmissionID) 98 throws CreateException , RemoteException { 99 100 this.mProdSubmissionID = pProdSubmissionID; 101 return this.mProdSubmissionID; 102 } 103 104 106 public final void ejbPostCreate(final Integer pProdSubmissionID) { 107 } 108 } 109 110 | Popular Tags |