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