1 package org.apache.ojb.ejb; 2 3 17 18 import java.io.Serializable ; 19 20 import org.apache.commons.lang.builder.ToStringBuilder; 21 import org.apache.commons.lang.builder.ToStringStyle; 22 23 28 public class PersonVO implements Serializable 29 { 30 private Integer personId; 31 private String firstName; 32 private String lastName; 33 private String grade; 34 35 public PersonVO(Integer personId, String firstName, String lastName, String grade) 36 { 37 this.personId = personId; 38 this.firstName = firstName; 39 this.lastName = lastName; 40 this.grade = grade; 41 } 42 43 public PersonVO() 44 { 45 } 46 47 public Integer getPersonId() 48 { 49 return personId; 50 } 51 52 public void setPersonId(Integer personId) 53 { 54 this.personId = personId; 55 } 56 57 public String getFirstName() 58 { 59 return firstName; 60 } 61 62 public void setFirstName(String firstName) 63 { 64 this.firstName = firstName; 65 } 66 67 public String getLastName() 68 { 69 return lastName; 70 } 71 72 public void setLastName(String lastName) 73 { 74 this.lastName = lastName; 75 } 76 77 public String getGrade() 78 { 79 return grade; 80 } 81 82 public void setGrade(String grade) 83 { 84 this.grade = grade; 85 } 86 87 public String toString() 88 { 89 ToStringBuilder buf = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE); 90 buf.append("personId", personId). 91 append("firstName", firstName). 92 append("lastName", lastName). 93 append("grade", grade); 94 return buf.toString(); 95 } 96 } 97 | Popular Tags |