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

📄 log.java

📁 STRUTS数据库项目开发宝典
💻 JAVA
字号:
/*
 * 
 * on 06-十月-2005 at 04:15:42
 * 
 * Mail:relationinfo@hotmail.com
 * 
 * visit:www.relaioninfo.com or www.helpsoft.org
 */

package org.helpsoft.helplog.dto;

import org.helpsoft.helplog.dao.*;
import org.helpsoft.helplog.factory.*;
import org.helpsoft.helplog.exceptions.*;
import java.io.Serializable;
import java.util.*;
import java.util.Date;

public class Log implements Serializable
{
	/** 
	 * This attribute maps to the column logid in the Log table.
	 */
	private String logid;

	/** 
	 * This attribute maps to the column logtypecode in the Log table.
	 */
	private String logtypecode;

	/** 
	 * This attribute maps to the column title in the Log table.
	 */
	private String title;

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

	/** 
	 * This attribute maps to the column author in the Log table.
	 */
	private String author;

	/** 
	 * This attribute maps to the column date in the Log table.
	 */
	private Date date;

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

	/**
	 * Method 'getLogid'
	 * 
	 * @return String
	 */
	public String getLogid()
	{
		return logid;
	}

	/**
	 * Method 'setLogid'
	 * 
	 * @param logid
	 */
	public void setLogid(String logid)
	{
		this.logid = logid;
	}

	/**
	 * Method 'getLogtypecode'
	 * 
	 * @return String
	 */
	public String getLogtypecode()
	{
		return logtypecode;
	}

	/**
	 * Method 'setLogtypecode'
	 * 
	 * @param logtypecode
	 */
	public void setLogtypecode(String logtypecode)
	{
		this.logtypecode = logtypecode;
	}

	/**
	 * Method 'getTitle'
	 * 
	 * @return String
	 */
	public String getTitle()
	{
		return title;
	}

	/**
	 * Method 'setTitle'
	 * 
	 * @param title
	 */
	public void setTitle(String title)
	{
		this.title = title;
	}

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

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

	/**
	 * Method 'getAuthor'
	 * 
	 * @return String
	 */
	public String getAuthor()
	{
		return author;
	}

	/**
	 * Method 'setAuthor'
	 * 
	 * @param author
	 */
	public void setAuthor(String author)
	{
		this.author = author;
	}

	/**
	 * Method 'getDate'
	 * 
	 * @return Date
	 */
	public Date getDate()
	{
		return date;
	}

	/**
	 * Method 'setDate'
	 * 
	 * @param date
	 */
	public void setDate(Date date)
	{
		this.date = date;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof Log)) {
			return false;
		}
		
		final Log _cast = (Log) _other;
		if (logid == null ? _cast.logid != logid : !logid.equals( _cast.logid )) {
			return false;
		}
		
		if (logtypecode == null ? _cast.logtypecode != logtypecode : !logtypecode.equals( _cast.logtypecode )) {
			return false;
		}
		
		if (title == null ? _cast.title != title : !title.equals( _cast.title )) {
			return false;
		}
		
		if (content == null ? _cast.content != content : !content.equals( _cast.content )) {
			return false;
		}
		
		if (author == null ? _cast.author != author : !author.equals( _cast.author )) {
			return false;
		}
		
		if (date == null ? _cast.date != date : !date.equals( _cast.date )) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		if (logid != null) {
			_hashCode = 29 * _hashCode + logid.hashCode();
		}
		
		if (logtypecode != null) {
			_hashCode = 29 * _hashCode + logtypecode.hashCode();
		}
		
		if (title != null) {
			_hashCode = 29 * _hashCode + title.hashCode();
		}
		
		if (content != null) {
			_hashCode = 29 * _hashCode + content.hashCode();
		}
		
		if (author != null) {
			_hashCode = 29 * _hashCode + author.hashCode();
		}
		
		if (date != null) {
			_hashCode = 29 * _hashCode + date.hashCode();
		}
		
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return LogPk
	 */
	public LogPk createPk()
	{
		return new LogPk(logid);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "org.helpsoft.helplog.dto.Log: " );
		ret.append( "logid='" + logid + "'" );
		ret.append( ", logtypecode='" + logtypecode + "'" );
		ret.append( ", title='" + title + "'" );
		ret.append( ", content='" + content + "'" );
		ret.append( ", author='" + author + "'" );
		ret.append( ", date='" + date + "'" );
		return ret.toString();
	}

}

⌨️ 快捷键说明

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