alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

jforum example source code file (AttachmentInfo.java)

This example jforum source code file (AttachmentInfo.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - jforum tags/keywords

attachmentextension, attachmentextension, attachmentinfo, attachmentinfo, date, date, string, string, util

The jforum AttachmentInfo.java source code

/*
 * Copyright (c) JForum Team
 * 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.6 2006/08/20 22:47:36 rafaelsteil Exp $
 */
public class AttachmentInfo
{
	private int id;
	private int attachId;
	private int downloadCount;
	
	private String physicalFilename;
	private String realFilename;
	private String comment;
	private String mimetype;
	
	private long uploadTimeInMillis;
	private long filesize;
	
	private boolean hasThumb;

	private Date uploadTime;
	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;
	}
}

Other jforum examples (source code examples)

Here is a short list of links related to this jforum AttachmentInfo.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.