KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > ejb > PersonVO


1 package org.apache.ojb.ejb;
2
3 /* Copyright 2003-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 import java.io.Serializable JavaDoc;
19
20 import org.apache.commons.lang.builder.ToStringBuilder;
21 import org.apache.commons.lang.builder.ToStringStyle;
22
23 /**
24  *
25  * @author <a HREF="mailto:armin@codeAuLait.de">Armin Waibel</a>
26  * @version $Id: PersonVO.java,v 1.5.2.1 2005/12/21 22:21:38 tomdz Exp $
27  */

28 public class PersonVO implements Serializable JavaDoc
29 {
30     private Integer JavaDoc personId;
31     private String JavaDoc firstName;
32     private String JavaDoc lastName;
33     private String JavaDoc grade;
34
35     public PersonVO(Integer JavaDoc personId, String JavaDoc firstName, String JavaDoc lastName, String JavaDoc 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 JavaDoc getPersonId()
48     {
49         return personId;
50     }
51
52     public void setPersonId(Integer JavaDoc personId)
53     {
54         this.personId = personId;
55     }
56
57     public String JavaDoc getFirstName()
58     {
59         return firstName;
60     }
61
62     public void setFirstName(String JavaDoc firstName)
63     {
64         this.firstName = firstName;
65     }
66
67     public String JavaDoc getLastName()
68     {
69         return lastName;
70     }
71
72     public void setLastName(String JavaDoc lastName)
73     {
74         this.lastName = lastName;
75     }
76
77     public String JavaDoc getGrade()
78     {
79         return grade;
80     }
81
82     public void setGrade(String JavaDoc grade)
83     {
84         this.grade = grade;
85     }
86
87     public String JavaDoc 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