01: /*
02: * Created on 16 juin 2005
03: */
04: package abook.data;
05:
06: /**
07: * Provides object of type User mapping the data stored in the sql database
08: */
09: public class User {
10:
11: private String lastName;
12: private String firstName;
13: private String login;
14: private String password;
15:
16: /**
17: * Constructs a new User object
18: * @param lastName The user last name.
19: * @param firstName The user first name.
20: * @param login The user login.
21: * @param password the user password.
22: */
23: public User(String lastName, String firstName, String login,
24: String password) {
25: this .lastName = lastName;
26: this .firstName = firstName;
27: this .login = login;
28: this .password = password;
29: }
30:
31: /**
32: * @return Returns the firstName.
33: */
34: public String getFirstName() {
35: return firstName;
36: }
37:
38: /**
39: * @param firstName The firstName to set.
40: */
41: public void setFirstName(String firstName) {
42: this .firstName = firstName;
43: }
44:
45: /**
46: * @return Returns the lastName.
47: */
48: public String getLastName() {
49: return lastName;
50: }
51:
52: /**
53: * @param lastName The lastName to set.
54: */
55: public void setLastName(String lastName) {
56: this .lastName = lastName;
57: }
58:
59: /**
60: * @return Returns the login.
61: */
62: public String getLogin() {
63: return login;
64: }
65:
66: /**
67: * @param login The login to set.
68: */
69: public void setLogin(String login) {
70: this .login = login;
71: }
72:
73: /**
74: * @return Returns the password.
75: */
76: public String getPassword() {
77: return password;
78: }
79:
80: /**
81: * @param password The password to set.
82: */
83: public void setPassword(String password) {
84: this.password = password;
85: }
86: }
|