1 4 package test.ejb; 5 6 13 public abstract class AddressCMP 14 extends test.ejb.AddressBean 15 implements javax.ejb.EntityBean 16 { 17 18 public test.interfaces.AddressData getData() 19 { 20 test.interfaces.AddressData dataHolder = null; 21 try 22 { 23 dataHolder = new test.interfaces.AddressData(); 24 25 dataHolder.setId( getId() ); 26 dataHolder.setStreet( getStreet() ); 27 dataHolder.setCity( getCity() ); 28 dataHolder.setReadOnly( getReadOnly() ); 29 dataHolder.setCreationDate( getCreationDate() ); 30 31 } 32 catch (RuntimeException e) 33 { 34 throw new javax.ejb.EJBException (e); 35 } 36 37 return dataHolder; 38 } 39 40 public void ejbLoad() throws javax.ejb.EJBException 41 { 42 super.ejbLoad(); 43 } 44 45 public void ejbStore() throws javax.ejb.EJBException 46 { 47 super.ejbStore(); 48 } 49 50 public void ejbActivate() throws javax.ejb.EJBException 51 { 52 super.ejbActivate(); 53 } 54 55 public void ejbPassivate() throws javax.ejb.EJBException 56 { 57 super.ejbPassivate(); 58 59 AddressValue = null; 60 } 61 62 public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException 63 { 64 super.setEntityContext(ctx); 65 } 66 67 public void unsetEntityContext() throws javax.ejb.EJBException 68 { 69 super.unsetEntityContext(); 70 } 71 72 public void ejbRemove() throws javax.ejb.EJBException , javax.ejb.RemoveException 73 { 74 super.ejbRemove(); 75 76 } 77 78 79 80 private test.interfaces.AddressValue AddressValue = null; 81 82 public test.interfaces.AddressValue getAddressValue() 83 { 84 AddressValue = new test.interfaces.AddressValue(); 85 try 86 { 87 AddressValue.setId( getId() ); 88 89 } 90 catch (Exception e) 91 { 92 throw new javax.ejb.EJBException (e); 93 } 94 95 return AddressValue; 96 } 97 98 public void setAddressValue( test.interfaces.AddressValue valueHolder ) 99 { 100 101 try 102 { 103 104 } 105 catch (Exception e) 106 { 107 throw new javax.ejb.EJBException (e); 108 } 109 } 110 111 112 113 public abstract java.lang.String getId() ; 114 115 public abstract void setId( java.lang.String id ) ; 116 117 public abstract java.lang.String getStreet() ; 118 119 public abstract void setStreet( java.lang.String street ) ; 120 121 public abstract java.lang.String getCity() ; 122 123 public abstract void setCity( java.lang.String city ) ; 124 125 public abstract int getReadOnly() ; 126 127 public abstract void setReadOnly( int readOnly ) ; 128 129 public abstract java.util.Date getCreationDate() ; 130 131 public abstract void setCreationDate( java.util.Date creationDate ) ; 132 133 } 134 | Popular Tags |