KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > ojb > samples > bean > User


1 /*
2  * Copyright 2005 The Apache Software Foundation.
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 package org.apache.cocoon.ojb.samples.bean;
17
18 /**
19  * @version $Id: User.java 234170 2005-08-21 10:00:44Z cziegeler $
20  */

21 public class User {
22     
23     private int uid;
24     private String JavaDoc lastname;
25     private String JavaDoc firstname;
26     private String JavaDoc username;
27     private String JavaDoc password;
28     private String JavaDoc role;
29
30     public String JavaDoc getFirstname() {
31         return firstname;
32     }
33
34     public void setFirstname(String JavaDoc firstname) {
35         this.firstname = firstname;
36     }
37
38     public String JavaDoc getLastname() {
39         return lastname;
40     }
41
42     public void setLastname(String JavaDoc lastname) {
43         this.lastname = lastname;
44     }
45
46     public String JavaDoc getPassword() {
47         return password;
48     }
49
50     public void setPassword(String JavaDoc password) {
51         this.password = password;
52     }
53
54     public String JavaDoc getRole() {
55         return role;
56     }
57
58     public void setRole(String JavaDoc role) {
59         this.role = role;
60     }
61
62     public int getUid() {
63         return uid;
64     }
65
66     public void setUid(int uid) {
67         this.uid = uid;
68     }
69
70     public String JavaDoc getUsername() {
71         return username;
72     }
73
74     public void setUsername(String JavaDoc username) {
75         this.username = username;
76     }
77 }
78
Popular Tags