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 FinderModifiersRuleFixTestCase implements EntityBean { 37 38 private static final org.apache.log4j.Logger logger = 39 org.apache.log4j.Logger.getRootLogger(); 40 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 79 this.mProdSubmissionID = new Integer (0); 80 return this.mProdSubmissionID; 81 } 82 83 84 public void ejbPostCreate() { 85 } 86 87 private static final String ERROR_TXT = 88 "Not yet implemented! - findByPrimaryKey"; 89 90 92 public Integer ejbFindByPrimaryKey(final Integer key) 93 throws javax.ejb.FinderException { 94 95 throw new javax.ejb.FinderException (ERROR_TXT); 96 } 97 } 98 99 | Popular Tags |