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

📄 essay.java

📁 jsp网站开发四“酷”全书原码
💻 JAVA
字号:
/*
 * This source file was generated by FireStorm/DAO 3.0 (build 99)
 * on 26-十月-2005 at 09:50:56
 * 
 * If you purchase a full license for FireStorm/DAO you can customize this file header.
 * 
 * For more information please visit http://www.codefutures.com/products/firestorm
 */

package cn.wanfeng.myblog.dto;

import cn.wanfeng.myblog.dao.*;
import cn.wanfeng.myblog.factory.*;
import cn.wanfeng.myblog.exceptions.*;
import java.io.Serializable;
import java.util.*;
import java.util.Date;

public class Essay implements Serializable
{
	/** 
	 * This attribute maps to the column CategoryID in the Essay table.
	 */
	private int categoryID;

	/** 
	 * This attribute represents whether the primitive attribute categoryID is null.
	 */
	private boolean categoryIDNull = true;

	/** 
	 * This attribute represents whether the attribute categoryID has been modified since being read from the database.
	 */
	private boolean categoryIDModified = false;

	/** 
	 * This attribute maps to the column EssayID in the Essay table.
	 */
	private int essayID;

	/** 
	 * This attribute represents whether the attribute essayID has been modified since being read from the database.
	 */
	private boolean essayIDModified = false;

	/** 
	 * This attribute maps to the column Subject in the Essay table.
	 */
	private String subject;

	/** 
	 * This attribute represents whether the attribute subject has been modified since being read from the database.
	 */
	private boolean subjectModified = false;

	/** 
	 * This attribute maps to the column Content in the Essay table.
	 */
	private String content;

	/** 
	 * This attribute represents whether the attribute content has been modified since being read from the database.
	 */
	private boolean contentModified = false;

	/** 
	 * This attribute maps to the column PublishTime in the Essay table.
	 */
	private Date publishTime;

	/** 
	 * This attribute represents whether the attribute publishTime has been modified since being read from the database.
	 */
	private boolean publishTimeModified = false;

	/**
	 * Method 'Essay'
	 * 
	 */
	public Essay()
	{
	}

	/**
	 * Method 'getCategoryID'
	 * 
	 * @return int
	 */
	public int getCategoryID()
	{
		return categoryID;
	}

	/**
	 * Method 'setCategoryID'
	 * 
	 * @param categoryID
	 */
	public void setCategoryID(int categoryID)
	{
		this.categoryID = categoryID;
		setCategoryIDNull( false );
		setCategoryIDModified( true );
	}

	/** 
	 * Sets the value of categoryIDNull
	 */
	public void setCategoryIDNull(boolean categoryIDNull)
	{
		this.categoryIDNull = categoryIDNull;
	}

	/** 
	 * Gets the value of categoryIDNull
	 */
	public boolean isCategoryIDNull()
	{
		return categoryIDNull;
	}

	/** 
	 * Sets the value of categoryIDModified
	 */
	public void setCategoryIDModified(boolean categoryIDModified)
	{
		this.categoryIDModified = categoryIDModified;
	}

	/** 
	 * Gets the value of categoryIDModified
	 */
	public boolean isCategoryIDModified()
	{
		return categoryIDModified;
	}

	/**
	 * Method 'getEssayID'
	 * 
	 * @return int
	 */
	public int getEssayID()
	{
		return essayID;
	}

	/**
	 * Method 'setEssayID'
	 * 
	 * @param essayID
	 */
	public void setEssayID(int essayID)
	{
		this.essayID = essayID;
		setEssayIDModified( true );
	}

	/** 
	 * Sets the value of essayIDModified
	 */
	public void setEssayIDModified(boolean essayIDModified)
	{
		this.essayIDModified = essayIDModified;
	}

	/** 
	 * Gets the value of essayIDModified
	 */
	public boolean isEssayIDModified()
	{
		return essayIDModified;
	}

	/**
	 * Method 'getSubject'
	 * 
	 * @return String
	 */
	public String getSubject()
	{
		return subject;
	}

	/**
	 * Method 'setSubject'
	 * 
	 * @param subject
	 */
	public void setSubject(String subject)
	{
		this.subject = subject;
		setSubjectModified( true );
	}

	/** 
	 * Sets the value of subjectModified
	 */
	public void setSubjectModified(boolean subjectModified)
	{
		this.subjectModified = subjectModified;
	}

	/** 
	 * Gets the value of subjectModified
	 */
	public boolean isSubjectModified()
	{
		return subjectModified;
	}

	/**
	 * Method 'getContent'
	 * 
	 * @return String
	 */
	public String getContent()
	{
		return content;
	}

	/**
	 * Method 'setContent'
	 * 
	 * @param content
	 */
	public void setContent(String content)
	{
		this.content = content;
		setContentModified( true );
	}

	/** 
	 * Sets the value of contentModified
	 */
	public void setContentModified(boolean contentModified)
	{
		this.contentModified = contentModified;
	}

	/** 
	 * Gets the value of contentModified
	 */
	public boolean isContentModified()
	{
		return contentModified;
	}

	/**
	 * Method 'getPublishTime'
	 * 
	 * @return Date
	 */
	public Date getPublishTime()
	{
		return publishTime;
	}

	/**
	 * Method 'setPublishTime'
	 * 
	 * @param publishTime
	 */
	public void setPublishTime(Date publishTime)
	{
		this.publishTime = publishTime;
		setPublishTimeModified( true );
	}

	/** 
	 * Sets the value of publishTimeModified
	 */
	public void setPublishTimeModified(boolean publishTimeModified)
	{
		this.publishTimeModified = publishTimeModified;
	}

	/** 
	 * Gets the value of publishTimeModified
	 */
	public boolean isPublishTimeModified()
	{
		return publishTimeModified;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof Essay)) {
			return false;
		}
		
		final Essay _cast = (Essay) _other;
		if (categoryID != _cast.categoryID) {
			return false;
		}
		
		if (categoryIDNull != _cast.categoryIDNull) {
			return false;
		}
		
		if (categoryIDModified != _cast.categoryIDModified) {
			return false;
		}
		
		if (essayID != _cast.essayID) {
			return false;
		}
		
		if (essayIDModified != _cast.essayIDModified) {
			return false;
		}
		
		if (subject == null ? _cast.subject != subject : !subject.equals( _cast.subject )) {
			return false;
		}
		
		if (subjectModified != _cast.subjectModified) {
			return false;
		}
		
		if (content == null ? _cast.content != content : !content.equals( _cast.content )) {
			return false;
		}
		
		if (contentModified != _cast.contentModified) {
			return false;
		}
		
		if (publishTime == null ? _cast.publishTime != publishTime : !publishTime.equals( _cast.publishTime )) {
			return false;
		}
		
		if (publishTimeModified != _cast.publishTimeModified) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + categoryID;
		_hashCode = 29 * _hashCode + (categoryIDNull ? 1 : 0);
		_hashCode = 29 * _hashCode + (categoryIDModified ? 1 : 0);
		_hashCode = 29 * _hashCode + essayID;
		_hashCode = 29 * _hashCode + (essayIDModified ? 1 : 0);
		if (subject != null) {
			_hashCode = 29 * _hashCode + subject.hashCode();
		}
		
		_hashCode = 29 * _hashCode + (subjectModified ? 1 : 0);
		if (content != null) {
			_hashCode = 29 * _hashCode + content.hashCode();
		}
		
		_hashCode = 29 * _hashCode + (contentModified ? 1 : 0);
		if (publishTime != null) {
			_hashCode = 29 * _hashCode + publishTime.hashCode();
		}
		
		_hashCode = 29 * _hashCode + (publishTimeModified ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return EssayPk
	 */
	public EssayPk createPk()
	{
		return new EssayPk(essayID);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "cn.wanfeng.myblog.dto.Essay: " );
		ret.append( "categoryID='" + categoryID + "'" );
		ret.append( ", essayID='" + essayID + "'" );
		ret.append( ", subject='" + subject + "'" );
		ret.append( ", content='" + content + "'" );
		ret.append( ", publishTime='" + publishTime + "'" );
		return ret.toString();
	}

}

⌨️ 快捷键说明

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