1 4 package test.ejb.cmr; 5 6 13 public abstract class EmployeeAddressCMP 14 extends test.ejb.cmr.EmployeeAddressBean 15 implements javax.ejb.EntityBean 16 { 17 18 public test.ejb.cmr.EmployeeAddressData getData() 19 { 20 test.ejb.cmr.EmployeeAddressData dataHolder = null; 21 try 22 { 23 dataHolder = new test.ejb.cmr.EmployeeAddressData(); 24 25 dataHolder.setId( getId() ); 26 dataHolder.setDescription( getDescription() ); 27 28 } 29 catch (RuntimeException e) 30 { 31 throw new javax.ejb.EJBException (e); 32 } 33 34 return dataHolder; 35 } 36 37 42 public void ejbPostCreate(test.ejb.cmr.EmployeeAddressValue eav) 43 { 44 } 45 46 public void ejbLoad() 47 { 48 } 49 50 public void ejbStore() 51 { 52 } 53 54 public void ejbActivate() 55 { 56 } 57 58 public void ejbPassivate() 59 { 60 61 EmployeeAddressValue = null; 62 } 63 64 public void setEntityContext(javax.ejb.EntityContext ctx) 65 { 66 } 67 68 public void unsetEntityContext() 69 { 70 } 71 72 public void ejbRemove() throws javax.ejb.RemoveException 73 { 74 75 } 76 77 78 79 private test.ejb.cmr.EmployeeAddressValue EmployeeAddressValue = null; 80 81 public test.ejb.cmr.EmployeeAddressValue getEmployeeAddressValue() 82 { 83 EmployeeAddressValue = new test.ejb.cmr.EmployeeAddressValue(); 84 try 85 { 86 EmployeeAddressValue.setId( getId() ); 87 EmployeeAddressValue.setDescription( getDescription() ); 88 89 } 90 catch (Exception e) 91 { 92 throw new javax.ejb.EJBException (e); 93 } 94 95 return EmployeeAddressValue; 96 } 97 98 public void setEmployeeAddressValue( test.ejb.cmr.EmployeeAddressValue valueHolder ) 99 { 100 101 try 102 { 103 setDescription( valueHolder.getDescription() ); 104 105 } 106 catch (Exception e) 107 { 108 throw new javax.ejb.EJBException (e); 109 } 110 } 111 112 113 114 public abstract java.lang.Integer getId() ; 115 116 public abstract void setId( java.lang.Integer id ) ; 117 118 public abstract java.lang.String getDescription() ; 119 120 public abstract void setDescription( java.lang.String description ) ; 121 122 } 123 | Popular Tags |