KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > jforum > entities > AttachmentInfo


1 /*
2  * Copyright (c) 2003, Rafael Steil
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms,
6  * with or without modification, are permitted provided
7  * that the following conditions are met:
8  *
9  * 1) Redistributions of source code must retain the above
10  * copyright notice, this list of conditions and the
11  * following disclaimer.
12  * 2) Redistributions in binary form must reproduce the
13  * above copyright notice, this list of conditions and
14  * the following disclaimer in the documentation and/or
15  * other materials provided with the distribution.
16  * 3) Neither the name of "Rafael Steil" nor
17  * the names of its contributors may be used to endorse
18  * or promote products derived from this software without
19  * specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
22  * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
23  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
24  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR
26  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
27  * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
28  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
29  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
31  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
32  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
34  * IN CONTRACT, STRICT LIABILITY, OR TORT
35  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
36  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
38  *
39  * Created on Jan 18, 2005 2:59:54 PM
40   * The JForum Project
41  * http://www.jforum.net
42  */

43 package net.jforum.entities;
44
45 import java.util.Date JavaDoc;
46
47 /**
48  * @author Rafael Steil
49  * @version $Id: AttachmentInfo.java,v 1.4 2005/12/23 20:36:57 rafaelsteil Exp $
50  */

51 public class AttachmentInfo
52 {
53     private int id;
54     private int attachId;
55     private int downloadCount;
56     
57     private String JavaDoc physicalFilename;
58     private String JavaDoc realFilename;
59     private String JavaDoc comment;
60     private String JavaDoc mimetype;
61     
62     private long uploadTimeInMillis;
63     private long filesize;
64     
65     private boolean hasThumb;
66
67     private Date JavaDoc uploadTime;
68     private AttachmentExtension extension;
69     
70     /**
71      * @return Returns the attachId.
72      */

73     public int getAttachId()
74     {
75         return this.attachId;
76     }
77     
78     /**
79      * @param attachId The attachId to set.
80      */

81     public void setAttachId(int attachId)
82     {
83         this.attachId = attachId;
84     }
85     
86     /**
87      * @return Returns the comment.
88      */

89     public String JavaDoc getComment()
90     {
91         return this.comment;
92     }
93     
94     /**
95      * @param comment The comment to set.
96      */

97     public void setComment(String JavaDoc comment)
98     {
99         this.comment = comment;
100     }
101     
102     /**
103      * @return Returns the downloadCount.
104      */

105     public int getDownloadCount()
106     {
107         return this.downloadCount;
108     }
109     
110     /**
111      * @param downloadCount The downloadCount to set.
112      */

113     public void setDownloadCount(int downloadCount)
114     {
115         this.downloadCount = downloadCount;
116     }
117     
118     /**
119      * @return Returns the extension.
120      */

121     public AttachmentExtension getExtension()
122     {
123         return this.extension;
124     }
125     
126     /**
127      * @param extension The extension to set.
128      */

129     public void setExtension(AttachmentExtension extension)
130     {
131         this.extension = extension;
132     }
133     
134     /**
135      * @return Returns the filesize.
136      */

137     public long getFilesize()
138     {
139         return this.filesize;
140     }
141     
142     /**
143      * @param filesize The filesize to set.
144      */

145     public void setFilesize(long filesize)
146     {
147         this.filesize = filesize;
148     }
149     
150     /**
151      * @return Returns the hasThumb.
152      */

153     public boolean isHasThumb()
154     {
155         return this.hasThumb;
156     }
157     
158     /**
159      * @param hasThumb The hasThumb to set.
160      */

161     public void setHasThumb(boolean hasThumb)
162     {
163         this.hasThumb = hasThumb;
164     }
165     
166     /**
167      * @return Returns the id.
168      */

169     public int getId()
170     {
171         return this.id;
172     }
173     
174     /**
175      * @param id The id to set.
176      */

177     public void setId(int id)
178     {
179         this.id = id;
180     }
181     
182     /**
183      * @return Returns the mimetype.
184      */

185     public String JavaDoc getMimetype()
186     {
187         return this.mimetype;
188     }
189     
190     /**
191      * @param mimetype The mimetype to set.
192      */

193     public void setMimetype(String JavaDoc mimetype)
194     {
195         this.mimetype = mimetype;
196     }
197     
198     /**
199      * @return Returns the physicalFilename.
200      */

201     public String JavaDoc getPhysicalFilename()
202     {
203         return this.physicalFilename;
204     }
205     
206     /**
207      * @param physicalFilename The physicalFilename to set.
208      */

209     public void setPhysicalFilename(String JavaDoc physicalFilename)
210     {
211         this.physicalFilename = physicalFilename;
212     }
213     
214     /**
215      * @return Returns the realFilename.
216      */

217     public String JavaDoc getRealFilename()
218     {
219         return this.realFilename;
220     }
221     
222     /**
223      * @param realFilename The realFilename to set.
224      */

225     public void setRealFilename(String JavaDoc realFilename)
226     {
227         this.realFilename = realFilename;
228     }
229     
230     /**
231      * @return Returns the uploadTime.
232      */

233     public Date JavaDoc getUploadTime()
234     {
235         return this.uploadTime;
236     }
237     
238     /**
239      * @param uploadTime The uploadTime to set.
240      */

241     public void setUploadTime(Date JavaDoc uploadTime)
242     {
243         this.uploadTime = uploadTime;
244     }
245     
246     /**
247      * @return Returns the uploadTimeInMillis.
248      */

249     public long getUploadTimeInMillis()
250     {
251         return this.uploadTimeInMillis;
252     }
253     
254     /**
255      * @param uploadTimeInMillis The uploadTimeInMillis to set.
256      */

257     public void setUploadTimeInMillis(long uploadTimeInMillis)
258     {
259         this.uploadTimeInMillis = uploadTimeInMillis;
260     }
261 }
262
Popular Tags