KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dlog4j > formbean > BookMarkBean


1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */

16 package dlog4j.formbean;
17
18 import java.io.Serializable JavaDoc;
19 import java.util.Date JavaDoc;
20
21 /**
22  * 日记书签
23  * 该对象对应表dlog_bookmark中的一条记录
24  * @author Liudong
25  */

26 public class BookMarkBean implements Serializable JavaDoc {
27
28     public final static int BM_LOG = 0x00; //日记书签
29

30     int id;
31     int type;
32     int order;
33     SiteForm site;
34     LogForm log;
35     UserForm user;
36     Date JavaDoc createTime;
37         
38     public BookMarkBean() {
39     }
40     
41     public BookMarkBean(SiteForm site,UserForm user,LogForm log) {
42         this.site = site;
43         this.user = user;
44         this.log = log;
45     }
46
47     public Date JavaDoc getCreateTime() {
48         return createTime;
49     }
50     public void setCreateTime(Date JavaDoc createTime) {
51         this.createTime = createTime;
52     }
53     public int getId() {
54         return id;
55     }
56     public void setId(int id) {
57         this.id = id;
58     }
59     public LogForm getLog() {
60         return log;
61     }
62     public void setLog(LogForm log) {
63         this.log = log;
64     }
65     public int getOrder() {
66         return order;
67     }
68     public void setOrder(int order) {
69         this.order = order;
70     }
71     public SiteForm getSite() {
72         return site;
73     }
74     public void setSite(SiteForm site) {
75         this.site = site;
76     }
77     public int getType() {
78         return type;
79     }
80     public void setType(int type) {
81         this.type = type;
82     }
83     public UserForm getUser() {
84         return user;
85     }
86     public void setUser(UserForm user) {
87         this.user = user;
88     }
89 }
90
Popular Tags