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 FinderModifiersRuleViolationTestCase 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 83 public void ejbPostCreate() { 84 } 85 86 private static final String ERROR_TXT = 87 "Not yet implemented! - findByPrimaryKey"; 88 89 91 public final Integer ejbFindByPrimaryKey(final Integer key) 92 throws javax.ejb.FinderException { 93 94 throw new javax.ejb.FinderException (ERROR_TXT); 95 } 96 } 97 98 | Popular Tags |