1 4 package test.ejb.cmr; 5 6 13 public abstract class CountryCMP 14 extends test.ejb.cmr.CountryBean 15 implements javax.ejb.EntityBean 16 { 17 18 public test.ejb.cmr.CountryData getData() 19 { 20 test.ejb.cmr.CountryData dataHolder = null; 21 try 22 { 23 dataHolder = new test.ejb.cmr.CountryData(); 24 25 dataHolder.setCountryId( getCountryId() ); 26 dataHolder.setOwnerIdFk( getOwnerIdFk() ); 27 dataHolder.setName( getName() ); 28 29 } 30 catch (RuntimeException e) 31 { 32 throw new javax.ejb.EJBException (e); 33 } 34 35 return dataHolder; 36 } 37 38 public void ejbLoad() 39 { 40 super.ejbLoad(); 41 } 42 43 public void ejbStore() 44 { 45 super.ejbStore(); 46 } 47 48 public void ejbActivate() 49 { 50 super.ejbActivate(); 51 } 52 53 public void ejbPassivate() 54 { 55 super.ejbPassivate(); 56 57 } 58 59 public void setEntityContext(javax.ejb.EntityContext ctx) 60 { 61 super.setEntityContext(ctx); 62 } 63 64 public void unsetEntityContext() 65 { 66 super.unsetEntityContext(); 67 } 68 69 public void ejbRemove() throws javax.ejb.RemoveException 70 { 71 super.ejbRemove(); 72 73 } 74 75 76 77 78 79 public abstract java.lang.Integer getCountryId() ; 80 81 public abstract void setCountryId( java.lang.Integer countryId ) ; 82 83 public abstract java.lang.Integer getOwnerIdFk() ; 84 85 public abstract void setOwnerIdFk( java.lang.Integer ownerIdFk ) ; 86 87 public abstract java.lang.String getName() ; 88 89 public abstract void setName( java.lang.String name ) ; 90 91 } 92 | Popular Tags |