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

📄 rpinfo.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * RPInfo.java
 *
 * Created on 2007年5月23日, 上午12:15
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package vincent;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类 RPInfo
 *
 * @author Virlene Cheng
 */
public class RPInfo implements Serializable
{
    protected Integer rpId;
    protected String rpType;
    protected Double rpMoney;
    protected String rpItem;
    protected String description;
    protected String executorId;
    protected Date executeDate;
    protected String remark;
    
    /** Creates a new instance of RPInfo */
    public RPInfo()
    {
    }
    
    /**
     * 使用指定的值创建 RPInfo 的新实例。
     * @param rPId,RPInfo 的 rPId
     */
    public RPInfo(Integer rpId)
    {
	this.setRPId(rpId);
    }
    
    /**
     * 使用指定的值创建 RPInfo 的新实例。
     * @param rPId,RPInfo 的 rPId
     * @param rPType,RPInfo 的 rPType
     */
    public RPInfo(Integer rpId, String rpType)
    {
	this.setRPId(rpId);
	this.setRPType(rpType);
    }
    
    /**
     * 获取此 RPInfo 的 rPId。
     * @return rPId
     */
    public Integer getRPId()
    {
	return this.getRPId();
    }
    
    /**
     * 将此 RPInfo 的 rPId 设置为指定的值。
     * @param rPId,新建 rPId
     */
    public void setRPId(Integer rpId)
    {
	this.setRPId(rpId);
    }
    
    /**
     * 获取此 RPInfo 的 rPType。
     * @return rPType
     */
    public String getRPType()
    {
	return this.getRPType();
    }
    
    /**
     * 将此 RPInfo 的 rPType 设置为指定的值。
     * @param rPType,新建 rPType
     */
    public void setRPType(String rpType)
    {
	this.setRPType(rpType);
    }
    
    /**
     * 获取此 RPInfo 的 rPMoney。
     * @return rPMoney
     */
    public Double getRPMoney()
    {
	return this.getRPMoney();
    }
    
    /**
     * 将此 RPInfo 的 rPMoney 设置为指定的值。
     * @param rPMoney,新建 rPMoney
     */
    public void setRPMoney(Double rpMoney)
    {
	this.setRPMoney(rpMoney);
    }
    
    /**
     * 获取此 RPInfo 的 rPItem。
     * @return rPItem
     */
    public String getRPItem()
    {
	return this.getRPItem();
    }
    
    /**
     * 将此 RPInfo 的 rPItem 设置为指定的值。
     * @param rPItem,新建 rPItem
     */
    public void setRPItem(String rpItem)
    {
	this.setRPItem(rpItem);
    }
    
    /**
     * 获取此 RPInfo 的 description。
     * @return description
     */
    public String getDescription()
    {
	return this.description;
    }
    
    /**
     * 将此 RPInfo 的 description 设置为指定的值。
     * @param description,新建 description
     */
    public void setDescription(String description)
    {
	this.description = description;
    }
    
    /**
     * 获取此 RPInfo 的 executorId。
     * @return executorId
     */
    public String getExecutorId()
    {
	return this.executorId;
    }
    
    /**
     * 将此 RPInfo 的 executorId 设置为指定的值。
     * @param executorId,新建 executorId
     */
    public void setExecutorId(String executorId)
    {
	this.executorId = executorId;
    }
    
    /**
     * 获取此 RPInfo 的 executeDate。
     * @return executeDate
     */
    public Date getExecuteDate()
    {
	return this.executeDate;
    }
    
    /**
     * 将此 RPInfo 的 executeDate 设置为指定的值。
     * @param executeDate,新建 executeDate
     */
    public void setExecuteDate(Date executeDate)
    {
	this.executeDate = executeDate;
    }
    
    /**
     * 获取此 RPInfo 的 remark。
     * @return remark
     */
    public String getRemark()
    {
	return this.remark;
    }
    
    /**
     * 将此 RPInfo 的 remark 设置为指定的值。
     * @param remark,新建 remark
     */
    public void setRemark(String remark)
    {
	this.remark = remark;
    }
    
    /**
     * 返回对象的散列代码值。该实现根据此对象
     * 中 id 字段计算散列代码值。
     * @return 此对象的散列代码值。
     */
    @Override
    public int hashCode()
    {
	int hash = 0;
	hash += (this.getRPId() != null ? this.getRPId().hashCode() : 0);
	return hash;
    }
    
    /**
     * 确定其他对象是否等于此 RPInfo。当且仅当
     * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 RPInfo 对象时,
     * 结果才为 <code>true</code>。
     * @param 对象,要比较的引用对象
     * 如果此对象与参数相同,则 @return <code>true</code>;
     * 否则为 <code>false</code>。
     */
    @Override
    public boolean equals(Object object)
    {
	// TODO: Warning - this method won't work in the case the id fields are not set
	if (!(object instanceof RPInfo))
	{
	    return false;
	}
	RPInfo other = (RPInfo)object;
	if (this.getRPId() != other.getRPId() && (this.getRPId() == null || !this.getRPId().equals(other.getRPId()))) return false;
	return true;
    }
    
    /**
     * 返回对象的字符串表示法。该实现根据 id 字段
     * 构造此表示法。
     * @return 对象的字符串表示法。
     */
    @Override
    public String toString()
    {
	return "vincent.RPInfo[rpId=" + rpId + "]";
    }

    
}

⌨️ 快捷键说明

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