001: /*
002: * $Header: /cvsroot/mvnforum/mvnforum/src/com/mvnforum/db/AttachmentBean.java,v 1.11 2007/10/09 11:09:18 lexuanttkhtn Exp $
003: * $Author: lexuanttkhtn $
004: * $Revision: 1.11 $
005: * $Date: 2007/10/09 11:09:18 $
006: *
007: * ====================================================================
008: *
009: * Copyright (C) 2002-2007 by MyVietnam.net
010: *
011: * All copyright notices regarding mvnForum MUST remain
012: * intact in the scripts and in the outputted HTML.
013: * The "powered by" text/logo with a link back to
014: * http://www.mvnForum.com and http://www.MyVietnam.net in
015: * the footer of the pages MUST remain visible when the pages
016: * are viewed on the internet or intranet.
017: *
018: * This program is free software; you can redistribute it and/or modify
019: * it under the terms of the GNU General Public License as published by
020: * the Free Software Foundation; either version 2 of the License, or
021: * any later version.
022: *
023: * This program is distributed in the hope that it will be useful,
024: * but WITHOUT ANY WARRANTY; without even the implied warranty of
025: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
026: * GNU General Public License for more details.
027: *
028: * You should have received a copy of the GNU General Public License
029: * along with this program; if not, write to the Free Software
030: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
031: *
032: * Support can be obtained from support forums at:
033: * http://www.mvnForum.com/mvnforum/index
034: *
035: * Correspondence and Marketing Questions can be sent to:
036: * info at MyVietnam net
037: *
038: * @author: Minh Nguyen
039: * @author: Mai Nguyen
040: */
041: package com.mvnforum.db;
042:
043: import java.sql.Timestamp;
044:
045: import net.myvietnam.mvncore.util.StringUtil;
046:
047: /*
048: * Included columns: AttachID, PostID, MemberID, AttachFilename, AttachFileSize,
049: * AttachMimeType, AttachDesc, AttachCreationIP, AttachCreationDate, AttachModifiedDate,
050: * AttachDownloadCount, AttachOption, AttachStatus
051: * Excluded columns:
052: */
053: public class AttachmentBean {
054: private int attachID;
055: private int postID;
056: private int memberID;
057: private String attachFilename;
058: private int attachFileSize;
059: private String attachMimeType;
060: private String attachDesc;
061: private String attachCreationIP;
062: private Timestamp attachCreationDate;
063: private Timestamp attachModifiedDate;
064: private int attachDownloadCount;
065: private int attachOption;
066: private int attachStatus;
067:
068: public int getAttachID() {
069: return attachID;
070: }
071:
072: public void setAttachID(int attachID) {
073: this .attachID = attachID;
074: }
075:
076: public int getPostID() {
077: return postID;
078: }
079:
080: public void setPostID(int postID) {
081: this .postID = postID;
082: }
083:
084: public int getMemberID() {
085: return memberID;
086: }
087:
088: public void setMemberID(int memberID) {
089: this .memberID = memberID;
090: }
091:
092: public String getAttachFilename() {
093: return attachFilename;
094: }
095:
096: public void setAttachFilename(String attachFilename) {
097: this .attachFilename = StringUtil
098: .getEmptyStringIfNull(attachFilename);
099: }
100:
101: public int getAttachFileSize() {
102: return attachFileSize;
103: }
104:
105: public void setAttachFileSize(int attachFileSize) {
106: this .attachFileSize = attachFileSize;
107: }
108:
109: public String getAttachMimeType() {
110: return attachMimeType;
111: }
112:
113: public void setAttachMimeType(String attachMimeType) {
114: this .attachMimeType = StringUtil
115: .getEmptyStringIfNull(attachMimeType);
116: }
117:
118: public String getAttachDesc() {
119: return attachDesc;
120: }
121:
122: public void setAttachDesc(String attachDesc) {
123: this .attachDesc = StringUtil.getEmptyStringIfNull(attachDesc);
124: }
125:
126: public String getAttachCreationIP() {
127: return attachCreationIP;
128: }
129:
130: public void setAttachCreationIP(String attachCreationIP) {
131: this .attachCreationIP = StringUtil
132: .getEmptyStringIfNull(attachCreationIP);
133: }
134:
135: public Timestamp getAttachCreationDate() {
136: return attachCreationDate;
137: }
138:
139: public void setAttachCreationDate(Timestamp attachCreationDate) {
140: this .attachCreationDate = attachCreationDate;
141: }
142:
143: public Timestamp getAttachModifiedDate() {
144: return attachModifiedDate;
145: }
146:
147: public void setAttachModifiedDate(Timestamp attachModifiedDate) {
148: this .attachModifiedDate = attachModifiedDate;
149: }
150:
151: public int getAttachDownloadCount() {
152: return attachDownloadCount;
153: }
154:
155: public void setAttachDownloadCount(int attachDownloadCount) {
156: this .attachDownloadCount = attachDownloadCount;
157: }
158:
159: public int getAttachOption() {
160: return attachOption;
161: }
162:
163: public void setAttachOption(int attachOption) {
164: this .attachOption = attachOption;
165: }
166:
167: public int getAttachStatus() {
168: return attachStatus;
169: }
170:
171: public void setAttachStatus(int attachStatus) {
172: this .attachStatus = attachStatus;
173: }
174:
175: /////////////////////////////////////////////////////////////////
176: // utility methods
177: private int forumID;
178:
179: public int getForumID() {
180: return forumID;
181: }
182:
183: public void setForumID(int forumID) {
184: this .forumID = forumID;
185: }
186:
187: } //end of class AttachmentBean
|