001: /*
002: * This program is free software; you can redistribute it and/or modify
003: * it under the terms of the GNU General Public License as published by
004: * the Free Software Foundation; either version 2 of the License, or
005: * (at your option) any later version.
006: *
007: * This program is distributed in the hope that it will be useful,
008: * but WITHOUT ANY WARRANTY; without even the implied warranty of
009: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
010: * GNU Library General Public License for more details.
011: *
012: * You should have received a copy of the GNU General Public License
013: * along with this program; if not, write to the Free Software
014: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
015: */
016: package dlog4j.formbean;
017:
018: import java.io.Serializable;
019: import java.util.Date;
020:
021: /**
022: * 日记书签
023: * 该对象对应表dlog_bookmark中的一条记录
024: * @author Liudong
025: */
026: public class BookMarkBean implements Serializable {
027:
028: public final static int BM_LOG = 0x00; //日记书签
029:
030: int id;
031: int type;
032: int order;
033: SiteForm site;
034: LogForm log;
035: UserForm user;
036: Date createTime;
037:
038: public BookMarkBean() {
039: }
040:
041: public BookMarkBean(SiteForm site, UserForm user, LogForm log) {
042: this .site = site;
043: this .user = user;
044: this .log = log;
045: }
046:
047: public Date getCreateTime() {
048: return createTime;
049: }
050:
051: public void setCreateTime(Date createTime) {
052: this .createTime = createTime;
053: }
054:
055: public int getId() {
056: return id;
057: }
058:
059: public void setId(int id) {
060: this .id = id;
061: }
062:
063: public LogForm getLog() {
064: return log;
065: }
066:
067: public void setLog(LogForm log) {
068: this .log = log;
069: }
070:
071: public int getOrder() {
072: return order;
073: }
074:
075: public void setOrder(int order) {
076: this .order = order;
077: }
078:
079: public SiteForm getSite() {
080: return site;
081: }
082:
083: public void setSite(SiteForm site) {
084: this .site = site;
085: }
086:
087: public int getType() {
088: return type;
089: }
090:
091: public void setType(int type) {
092: this .type = type;
093: }
094:
095: public UserForm getUser() {
096: return user;
097: }
098:
099: public void setUser(UserForm user) {
100: this.user = user;
101: }
102: }
|