View Javadoc

1   /*
2    * Copyright 2006-2007 the original author or authors.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.springframework.batch.sample.domain.football;
18  
19  import java.io.Serializable;
20  
21  public class Player implements Serializable {
22  	
23  	private String id; 
24  	private String lastName; 
25  	private String firstName; 
26  	private String position; 
27  	private int birthYear; 
28  	private int debutYear;
29  	
30  	public String toString() {
31  		
32  		return "PLAYER:id=" + id + ",Last Name=" + lastName +
33  		",First Name=" + firstName + ",Position=" + position + 
34  		",Birth Year=" + birthYear + ",DebutYear=" + 
35  		debutYear;
36  	}
37  	
38  	public String getId() {
39  		return id;
40  	}
41  	public String getLastName() {
42  		return lastName;
43  	}
44  	public String getFirstName() {
45  		return firstName;
46  	}
47  	public String getPosition() {
48  		return position;
49  	}
50  	public int getBirthYear() {
51  		return birthYear;
52  	}
53  	public int getDebutYear() {
54  		return debutYear;
55  	}
56  	public void setId(String id) {
57  		this.id = id;
58  	}
59  	public void setLastName(String lastName) {
60  		this.lastName = lastName;
61  	}
62  	public void setFirstName(String firstName) {
63  		this.firstName = firstName;
64  	}
65  	public void setPosition(String position) {
66  		this.position = position;
67  	}
68  	public void setBirthYear(int birthYear) {
69  		this.birthYear = birthYear;
70  	}
71  	public void setDebutYear(int debutYear) {
72  		this.debutYear = debutYear;
73  	}
74  	
75  	
76  	
77  	
78  	
79  
80  }