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