1 22 package org.jboss.test.banknew.ejb; 23 24 27 public abstract class TransactionCMP 28 extends org.jboss.test.banknew.ejb.TransactionBean 29 implements javax.ejb.EntityBean 30 { 31 32 public org.jboss.test.banknew.interfaces.TransactionData getData() 33 { 34 org.jboss.test.banknew.interfaces.TransactionData dataHolder = null; 35 try 36 { 37 dataHolder = new org.jboss.test.banknew.interfaces.TransactionData(); 38 39 dataHolder.setId( getId() ); 40 dataHolder.setAcountId( getAcountId() ); 41 dataHolder.setType( getType() ); 42 dataHolder.setAmount( getAmount() ); 43 dataHolder.setDate( getDate() ); 44 dataHolder.setDescription( getDescription() ); 45 46 } 47 catch (RuntimeException e) 48 { 49 throw new javax.ejb.EJBException (e); 50 } 51 52 return dataHolder; 53 } 54 55 public void setData( org.jboss.test.banknew.interfaces.TransactionData dataHolder ) 56 { 57 try 58 { 59 setAcountId( dataHolder.getAcountId() ); 60 setType( dataHolder.getType() ); 61 setAmount( dataHolder.getAmount() ); 62 setDate( dataHolder.getDate() ); 63 setDescription( dataHolder.getDescription() ); 64 65 } 66 catch (Exception e) 67 { 68 throw new javax.ejb.EJBException (e); 69 } 70 } 71 72 public void ejbLoad() throws java.rmi.RemoteException 73 { 74 super.ejbLoad(); 75 } 76 77 public void ejbStore() throws java.rmi.RemoteException 78 { 79 super.ejbStore(); 80 } 81 82 public void ejbActivate() throws java.rmi.RemoteException 83 { 84 super.ejbActivate(); 85 } 86 87 public void ejbPassivate() throws java.rmi.RemoteException 88 { 89 super.ejbPassivate(); 90 91 } 92 93 public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException 94 { 95 super.setEntityContext(ctx); 96 } 97 98 public void unsetEntityContext() throws java.rmi.RemoteException 99 { 100 super.unsetEntityContext(); 101 } 102 103 public void ejbRemove() throws java.rmi.RemoteException , javax.ejb.RemoveException 104 { 105 super.ejbRemove(); 106 107 } 108 109 public abstract java.lang.String getId() ; 110 111 public abstract void setId( java.lang.String id ) ; 112 113 public abstract java.lang.String getAcountId() ; 114 115 public abstract void setAcountId( java.lang.String acountId ) ; 116 117 public abstract int getType() ; 118 119 public abstract void setType( int type ) ; 120 121 public abstract float getAmount() ; 122 123 public abstract void setAmount( float amount ) ; 124 125 public abstract java.util.Date getDate() ; 126 127 public abstract void setDate( java.util.Date date ) ; 128 129 public abstract java.lang.String getDescription() ; 130 131 public abstract void setDescription( java.lang.String description ) ; 132 133 } 134 | Popular Tags |