⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attachmentinfo.java

📁 个人认为是最好的Java论坛源码
💻 JAVA
字号:
/*
 * Copyright (c) 2003, Rafael Steil
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, 
 * with or without modification, are permitted provided 
 * that the following conditions are met:
 * 
 * 1) Redistributions of source code must retain the above 
 * copyright notice, this list of conditions and the 
 * following  disclaimer.
 * 2)  Redistributions in binary form must reproduce the 
 * above copyright notice, this list of conditions and 
 * the following disclaimer in the documentation and/or 
 * other materials provided with the distribution.
 * 3) Neither the name of "Rafael Steil" nor 
 * the names of its contributors may be used to endorse 
 * or promote products derived from this software without 
 * specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT 
 * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, 
 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
 * THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 
 * IN CONTRACT, STRICT LIABILITY, OR TORT 
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
 * 
 * Created on Jan 18, 2005 2:59:54 PM
  * The JForum Project
 * http://www.jforum.net
 */
package net.jforum.entities;

import java.util.Date;

/**
 * @author Rafael Steil
 * @version $Id: AttachmentInfo.java,v 1.1 2005/01/18 20:59:45 rafaelsteil Exp $
 */
public class AttachmentInfo
{
	private int id;
	private int attachId;
	private String physicalFilename;
	private String realFilename;
	private int downloadCount;
	private String comment;
	private String mimetype;
	private long filesize;
	private Date uploadTime;
	private long uploadTimeInMillis;
	private boolean hasThumb;
	private AttachmentExtension extension;
	
	/**
	 * @return Returns the attachId.
	 */
	public int getAttachId()
	{
		return this.attachId;
	}
	
	/**
	 * @param attachId The attachId to set.
	 */
	public void setAttachId(int attachId)
	{
		this.attachId = attachId;
	}
	
	/**
	 * @return Returns the comment.
	 */
	public String getComment()
	{
		return this.comment;
	}
	
	/**
	 * @param comment The comment to set.
	 */
	public void setComment(String comment)
	{
		this.comment = comment;
	}
	
	/**
	 * @return Returns the downloadCount.
	 */
	public int getDownloadCount()
	{
		return this.downloadCount;
	}
	
	/**
	 * @param downloadCount The downloadCount to set.
	 */
	public void setDownloadCount(int downloadCount)
	{
		this.downloadCount = downloadCount;
	}
	
	/**
	 * @return Returns the extension.
	 */
	public AttachmentExtension getExtension()
	{
		return this.extension;
	}
	
	/**
	 * @param extension The extension to set.
	 */
	public void setExtension(AttachmentExtension extension)
	{
		this.extension = extension;
	}
	
	/**
	 * @return Returns the filesize.
	 */
	public long getFilesize()
	{
		return this.filesize;
	}
	
	/**
	 * @param filesize The filesize to set.
	 */
	public void setFilesize(long filesize)
	{
		this.filesize = filesize;
	}
	
	/**
	 * @return Returns the hasThumb.
	 */
	public boolean isHasThumb()
	{
		return this.hasThumb;
	}
	
	/**
	 * @param hasThumb The hasThumb to set.
	 */
	public void setHasThumb(boolean hasThumb)
	{
		this.hasThumb = hasThumb;
	}
	
	/**
	 * @return Returns the id.
	 */
	public int getId()
	{
		return this.id;
	}
	
	/**
	 * @param id The id to set.
	 */
	public void setId(int id)
	{
		this.id = id;
	}
	
	/**
	 * @return Returns the mimetype.
	 */
	public String getMimetype()
	{
		return this.mimetype;
	}
	
	/**
	 * @param mimetype The mimetype to set.
	 */
	public void setMimetype(String mimetype)
	{
		this.mimetype = mimetype;
	}
	
	/**
	 * @return Returns the physicalFilename.
	 */
	public String getPhysicalFilename()
	{
		return this.physicalFilename;
	}
	
	/**
	 * @param physicalFilename The physicalFilename to set.
	 */
	public void setPhysicalFilename(String physicalFilename)
	{
		this.physicalFilename = physicalFilename;
	}
	
	/**
	 * @return Returns the realFilename.
	 */
	public String getRealFilename()
	{
		return this.realFilename;
	}
	
	/**
	 * @param realFilename The realFilename to set.
	 */
	public void setRealFilename(String realFilename)
	{
		this.realFilename = realFilename;
	}
	
	/**
	 * @return Returns the uploadTime.
	 */
	public Date getUploadTime()
	{
		return this.uploadTime;
	}
	
	/**
	 * @param uploadTime The uploadTime to set.
	 */
	public void setUploadTime(Date uploadTime)
	{
		this.uploadTime = uploadTime;
	}
	
	/**
	 * @return Returns the uploadTimeInMillis.
	 */
	public long getUploadTimeInMillis()
	{
		return this.uploadTimeInMillis;
	}
	
	/**
	 * @param uploadTimeInMillis The uploadTimeInMillis to set.
	 */
	public void setUploadTimeInMillis(long uploadTimeInMillis)
	{
		this.uploadTimeInMillis = uploadTimeInMillis;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -