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

📄 article.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 Article implements Serializable
{
	/** 
	 * This attribute maps to the column ArticleID in the Article table.
	 */
	private int articleID;

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

	/** 
	 * This attribute maps to the column CategoryID in the Article 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 Subject in the Article 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 Article 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 Article 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 'Article'
	 * 
	 */
	public Article()
	{
	}

	/**
	 * Method 'getArticleID'
	 * 
	 * @return int
	 */
	public int getArticleID()
	{
		return articleID;
	}

	/**
	 * Method 'setArticleID'
	 * 
	 * @param articleID
	 */
	public void setArticleID(int articleID)
	{
		this.articleID = articleID;
		setArticleIDModified( true );
	}

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

	/** 
	 * Gets the value of articleIDModified
	 */
	public boolean isArticleIDModified()
	{
		return articleIDModified;
	}

	/**
	 * 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 '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 Article)) {
			return false;
		}
		
		final Article _cast = (Article) _other;
		if (articleID != _cast.articleID) {
			return false;
		}
		
		if (articleIDModified != _cast.articleIDModified) {
			return false;
		}
		
		if (categoryID != _cast.categoryID) {
			return false;
		}
		
		if (categoryIDNull != _cast.categoryIDNull) {
			return false;
		}
		
		if (categoryIDModified != _cast.categoryIDModified) {
			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 + articleID;
		_hashCode = 29 * _hashCode + (articleIDModified ? 1 : 0);
		_hashCode = 29 * _hashCode + categoryID;
		_hashCode = 29 * _hashCode + (categoryIDNull ? 1 : 0);
		_hashCode = 29 * _hashCode + (categoryIDModified ? 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 ArticlePk
	 */
	public ArticlePk createPk()
	{
		return new ArticlePk(articleID);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "cn.wanfeng.myblog.dto.Article: " );
		ret.append( "articleID='" + articleID + "'" );
		ret.append( ", categoryID='" + categoryID + "'" );
		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 + -