1 22 package org.jboss.test.readahead.ejb; 23 24 import javax.ejb.EntityBean ; 25 import javax.ejb.CreateException ; 26 import javax.ejb.RemoveException ; 27 import javax.ejb.EntityContext ; 28 import org.jboss.test.readahead.interfaces.AddressPK; 29 30 39 public class Address implements EntityBean { 40 EntityContext entityContext; 41 public String key; 42 public String addressId; 43 public String address; 44 public String city; 45 public String state; 46 public String zip; 47 48 public AddressPK ejbCreate(String key, String addressId, String address, 49 String city, String state, String zip) 50 throws CreateException 51 { 52 this.key = key; 53 this.addressId = addressId; 54 this.address = address; 55 this.city = city; 56 this.state = state; 57 this.zip = zip; 58 return new AddressPK(key, addressId); 59 } 60 public void ejbPostCreate(String key, String addressId, String address, 61 String city, String state, String zip) throws CreateException { 62 } 63 public void ejbRemove() throws RemoveException { 64 } 65 public void ejbActivate() { 66 } 67 public void ejbPassivate() { 68 } 69 public void ejbLoad() { 70 } 71 public void ejbStore() { 72 } 73 public void setEntityContext(EntityContext entityContext) { 74 this.entityContext = entityContext; 75 } 76 public void unsetEntityContext() { 77 entityContext = null; 78 } 79 public void setKey(String newKey) { 80 key = newKey; 81 } 82 public String getKey() { 83 return key; 84 } 85 public void setAddressId(String newAddressId) { 86 addressId = newAddressId; 87 } 88 public String getAddressId() { 89 return addressId; 90 } 91 public void setAddress(String newAddress) { 92 address = newAddress; 93 } 94 public String getAddress() { 95 return address; 96 } 97 public void setCity(String newCity) { 98 city = newCity; 99 } 100 public String getCity() { 101 return city; 102 } 103 public void setState(String newState) { 104 state = newState; 105 } 106 public String getState() { 107 return state; 108 } 109 public void setZip(String newZip) { 110 zip = newZip; 111 } 112 public String getZip() { 113 return zip; 114 } 115 } | Popular Tags |