01: package org.apache.ojb.ejb;
02:
03: /* Copyright 2003-2005 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * 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;
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 {
29: private Integer personId;
30: private String firstName;
31: private String lastName;
32: private String grade;
33:
34: public PersonVO(Integer personId, String firstName,
35: String lastName, String grade) {
36: this .personId = personId;
37: this .firstName = firstName;
38: this .lastName = lastName;
39: this .grade = grade;
40: }
41:
42: public PersonVO() {
43: }
44:
45: public Integer getPersonId() {
46: return personId;
47: }
48:
49: public void setPersonId(Integer personId) {
50: this .personId = personId;
51: }
52:
53: public String getFirstName() {
54: return firstName;
55: }
56:
57: public void setFirstName(String firstName) {
58: this .firstName = firstName;
59: }
60:
61: public String getLastName() {
62: return lastName;
63: }
64:
65: public void setLastName(String lastName) {
66: this .lastName = lastName;
67: }
68:
69: public String getGrade() {
70: return grade;
71: }
72:
73: public void setGrade(String grade) {
74: this .grade = grade;
75: }
76:
77: public String toString() {
78: ToStringBuilder buf = new ToStringBuilder(this ,
79: ToStringStyle.MULTI_LINE_STYLE);
80: buf.append("personId", personId).append("firstName", firstName)
81: .append("lastName", lastName).append("grade", grade);
82: return buf.toString();
83: }
84: }
|