1 package test.interfaces; 2 3 8 public class PersonFullForm 9 extends org.apache.struts.action.ActionForm 10 implements java.io.Serializable 11 { 12 protected java.lang.String id; 13 protected java.lang.String name; 14 protected java.lang.String firstName; 15 protected java.lang.String phone; 16 protected java.lang.String fax; 17 protected java.lang.Integer nonPersistentFormField; 18 protected java.lang.String computedField; 19 protected java.util.Date creationDate; 20 protected javax.ejb.EntityContext entityContext; 21 22 23 public PersonFullForm() {} 24 25 26 public PersonFullForm(test.interfaces.PersonData dataHolder) 27 { 28 this.setId(dataHolder.getId()); 29 this.setName(dataHolder.getName()); 30 this.setFirstName(dataHolder.getFirstName()); 31 this.setPhone(dataHolder.getPhone()); 32 this.setFax(dataHolder.getFax()); 33 this.setCreationDate(dataHolder.getCreationDate()); 34 } 35 36 public java.lang.String getId() 37 { 38 return this.id; 39 } 40 41 43 public void setId( java.lang.String id ) 44 { 45 this.id = id; 46 } 47 48 public java.lang.String getName() 49 { 50 return this.name; 51 } 52 53 56 public void setName( java.lang.String name ) 57 { 58 this.name = name; 59 } 60 61 public java.lang.String getFirstName() 62 { 63 return this.firstName; 64 } 65 66 68 public void setFirstName( java.lang.String firstName ) 69 { 70 this.firstName = firstName; 71 } 72 73 public java.lang.String getPhone() 74 { 75 return this.phone; 76 } 77 78 80 public void setPhone( java.lang.String phone ) 81 { 82 this.phone = phone; 83 } 84 85 public java.lang.String getFax() 86 { 87 return this.fax; 88 } 89 90 92 public void setFax( java.lang.String fax ) 93 { 94 this.fax = fax; 95 } 96 97 public java.lang.Integer getNonPersistentFormField() 98 { 99 return this.nonPersistentFormField; 100 } 101 102 104 public void setNonPersistentFormField( java.lang.Integer nonPersistentFormField ) 105 { 106 this.nonPersistentFormField = nonPersistentFormField; 107 } 108 109 public java.lang.String getComputedField() 110 { 111 return this.computedField; 112 } 113 114 116 public void setComputedField( java.lang.String computedField ) 117 { 118 this.computedField = computedField; 119 } 120 121 public java.util.Date getCreationDate() 122 { 123 return this.creationDate; 124 } 125 126 128 public void setCreationDate( java.util.Date creationDate ) 129 { 130 this.creationDate = creationDate; 131 } 132 133 public javax.ejb.EntityContext getEntityContext() 134 { 135 return this.entityContext; 136 } 137 138 140 public void setEntityContext( javax.ejb.EntityContext entityContext ) 141 { 142 this.entityContext = entityContext; 143 } 144 145 public test.interfaces.PersonData getData(test.interfaces.PersonData dataHolder) 146 { 147 test.interfaces.PersonData retData = new test.interfaces.PersonData(dataHolder); 148 149 retData.setId(this.getId()); 150 retData.setName(this.getName()); 151 retData.setFirstName(this.getFirstName()); 152 retData.setPhone(this.getPhone()); 153 retData.setFax(this.getFax()); 154 retData.setCreationDate(this.getCreationDate()); 155 156 return retData; 157 } 158 159 public test.interfaces.PersonData getData() 160 { 161 test.interfaces.PersonData retData = new test.interfaces.PersonData(); 162 163 retData.setId(this.getId()); 164 retData.setName(this.getName()); 165 retData.setFirstName(this.getFirstName()); 166 retData.setPhone(this.getPhone()); 167 retData.setFax(this.getFax()); 168 retData.setCreationDate(this.getCreationDate()); 169 170 return retData; 171 } 172 173 public void setData(test.interfaces.PersonData dataHolder) 174 { 175 this.setId (dataHolder.getId()); 176 this.setName (dataHolder.getName()); 177 this.setFirstName (dataHolder.getFirstName()); 178 this.setPhone (dataHolder.getPhone()); 179 this.setFax (dataHolder.getFax()); 180 this.setCreationDate (dataHolder.getCreationDate()); 181 } 182 183 } 184 | Popular Tags |