1 7 package com.inversoft.verge.mvc.test; 8 9 10 19 public class Customer { 20 21 private String firstName; 22 private String lastName; 23 private String phone; 24 private Address address; 25 private Integer userID; 26 private boolean male; 27 private int age; 28 private int testInt; 29 private float testFloat; 30 31 32 35 public Customer() { 36 super(); 37 } 38 39 40 45 public String getFirstName() { 46 return firstName; 47 } 48 49 54 public void setFirstName(String firstName) { 55 this.firstName = firstName; 56 } 57 58 63 public String getLastName() { 64 return lastName; 65 } 66 67 72 public void setLastName(String lastName) { 73 this.lastName = lastName; 74 } 75 76 81 public String getPhone() { 82 return phone; 83 } 84 85 90 public void setPhone(String phone) { 91 this.phone = phone; 92 } 93 94 99 public Address getAddress() { 100 return address; 101 } 102 103 108 public void setAddress(Address address) { 109 this.address = address; 110 } 111 112 117 public Integer getUserID() { 118 return userID; 119 } 120 121 126 public void setUserID(Integer userID) { 127 this.userID = userID; 128 } 129 130 135 public int getAge() { 136 return age; 137 } 138 139 144 public void setAge(int age) { 145 this.age = age; 146 } 147 148 153 public boolean isMale() { 154 return male; 155 } 156 157 162 public void setMale(boolean male) { 163 this.male = male; 164 } 165 166 171 public int getTestInt() { 172 return testInt; 173 } 174 175 180 public void setTestInt(int testInt) { 181 this.testInt = testInt; 182 } 183 184 189 public float getTestFloat() { 190 return testFloat; 191 } 192 193 198 public void setTestFloat(float testFloat) { 199 this.testFloat = testFloat; 200 } 201 202 207 public String toString() { 208 StringBuffer buf = new StringBuffer (); 209 buf.append("First name: ").append(firstName).append("\n"); 210 buf.append("Last name: ").append(lastName).append("\n"); 211 buf.append("Address: ").append(address).append("\n"); 212 buf.append("userID: ").append(userID).append("\n"); 213 buf.append("male: ").append(male).append("\n"); 214 buf.append("age: ").append(age).append("\n"); 215 buf.append("testInt: ").append(testInt).append("\n"); 216 buf.append("testFloat: ").append(testFloat).append("\n"); 217 return buf.toString(); 218 } 219 } 220 | Popular Tags |