KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > javabb > vo > Session


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

22
23 /**
24  * $Id: Session.java,v 1.8.8.2 2006/04/17 17:46:55 daltoncamargo Exp $
25  * @author Dalton Camargo - <a HREF="mailto:dalton@javabb.org">dalton@javabb.org </a> <br>
26  * @author Ronald Tetsuo Miura
27  */

28 public class Session extends VOObject implements Serializable JavaDoc {
29     private Long JavaDoc idUser;
30
31     private String JavaDoc idSession;
32
33     private String JavaDoc ip;
34
35     private Date JavaDoc dataSession;
36
37     private User user;
38
39     /**
40      * @return Returns the ip.
41      */

42     public String JavaDoc getIp() {
43         return ip;
44     }
45
46     /**
47      * @param ip The ip to set.
48      */

49     public void setIp(String JavaDoc ip) {
50         this.ip = ip;
51     }
52
53     /**
54      * @return Returns the dataSession.
55      */

56     public Date JavaDoc getDataSession() {
57         return dataSession;
58     }
59
60     /**
61      * @param dataSession The dataSession to set.
62      */

63     public void setDataSession(Date JavaDoc dataSession) {
64         this.dataSession = dataSession;
65     }
66
67     /**
68      * @return Returns the idUser.
69      */

70     public Long JavaDoc getIdUser() {
71         return idUser;
72     }
73
74     /**
75      * @param idUser The idUser to set.
76      */

77     public void setIdUser(Long JavaDoc idUser) {
78         this.idUser = idUser;
79     }
80
81     /**
82      * @return Returns the idSession.
83      */

84     public String JavaDoc getIdSession() {
85         return idSession;
86     }
87
88     /**
89      * @param idSession The idSession to set.
90      */

91     public void setIdSession(String JavaDoc idSession) {
92         this.idSession = idSession;
93     }
94
95     /**
96      * @return Returns the idS.
97      */

98     public Long JavaDoc getIdS() {
99         return getId();
100     }
101
102     /**
103      * @param id The idS to set.
104      */

105     public void setIdS(Long JavaDoc id) {
106         this.setId(id);
107     }
108
109     /**
110      * @return Returns the usersPortal.
111      */

112     public User getUser() {
113         return user;
114     }
115
116     /**
117      * @param usersPortal The usersPortal to set.
118      */

119     public void setUser(User user) {
120         this.user = user;
121     }
122 }
123
Popular Tags