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