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

📄 salarychange.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * SalaryChange.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;

/**
 * 实体类 SalaryChange
 *
 * @author Virlene Cheng
 */
public class SalaryChange implements Serializable
{
    protected Integer changeId;
    protected String salaryType;
    protected Double beforeSalary;
    protected Double afterSalary;
    protected String reason;
    protected Date changeDate;
    protected String remark;
    protected String employeeId;
    protected String executorId;
    
    /** Creates a new instance of SalaryChange */
    public SalaryChange()
    {
    }
    
    /**
     * 使用指定的值创建 SalaryChange 的新实例。
     * @param changeId,SalaryChange 的 changeId
     */
    public SalaryChange(Integer changeId)
    {
	this.setChangeId(changeId);
    }
    
    /**
     * 获取此 SalaryChange 的 changeId。
     * @return changeId
     */
    public Integer getChangeId()
    {
	return this.changeId;
    }
    
    /**
     * 将此 SalaryChange 的 changeId 设置为指定的值。
     * @param changeId,新建 changeId
     */
    public void setChangeId(Integer changeId)
    {
	this.changeId = changeId;
    }
    
    /**
     * 获取此 SalaryChange 的 salaryType。
     * @return salaryType
     */
    public String getSalaryType()
    {
	return this.salaryType;
    }
    
    /**
     * 将此 SalaryChange 的 salaryType 设置为指定的值。
     * @param salaryType,新建 salaryType
     */
    public void setSalaryType(String salaryType)
    {
	this.salaryType = salaryType;
    }
    
    /**
     * 获取此 SalaryChange 的 beforeSalary。
     * @return beforeSalary
     */
    public Double getBeforeSalary()
    {
	return this.beforeSalary;
    }
    
    /**
     * 将此 SalaryChange 的 beforeSalary 设置为指定的值。
     * @param beforeSalary,新建 beforeSalary
     */
    public void setBeforeSalary(Double beforeSalary)
    {
	this.beforeSalary = beforeSalary;
    }
    
    /**
     * 获取此 SalaryChange 的 afterSalary。
     * @return afterSalary
     */
    public Double getAfterSalary()
    {
	return this.afterSalary;
    }
    
    /**
     * 将此 SalaryChange 的 afterSalary 设置为指定的值。
     * @param afterSalary,新建 afterSalary
     */
    public void setAfterSalary(Double afterSalary)
    {
	this.afterSalary = afterSalary;
    }
    
    /**
     * 获取此 SalaryChange 的 reason。
     * @return reason
     */
    public String getReason()
    {
	return this.reason;
    }
    
    /**
     * 将此 SalaryChange 的 reason 设置为指定的值。
     * @param reason,新建 reason
     */
    public void setReason(String reason)
    {
	this.reason = reason;
    }
    
    /**
     * 获取此 SalaryChange 的 changeDate。
     * @return changeDate
     */
    public Date getChangeDate()
    {
	return this.changeDate;
    }
    
    /**
     * 将此 SalaryChange 的 changeDate 设置为指定的值。
     * @param changeDate,新建 changeDate
     */
    public void setChangeDate(Date changeDate)
    {
	this.changeDate = changeDate;
    }
    
    /**
     * 获取此 SalaryChange 的 remark。
     * @return remark
     */
    public String getRemark()
    {
	return this.remark;
    }
    
    /**
     * 将此 SalaryChange 的 remark 设置为指定的值。
     * @param remark,新建 remark
     */
    public void setRemark(String remark)
    {
	this.remark = remark;
    }
    
    /**
     * 获取此 SalaryChange 的 employeeId。
     * @return employeeId
     */
    public String getEmployeeId()
    {
	return this.employeeId;
    }
    
    /**
     * 将此 SalaryChange 的 employeeId 设置为指定的值。
     * @param employeeId,新建 employeeId
     */
    public void setEmployeeId(String employeeId)
    {
	this.employeeId = employeeId;
    }
    
    /**
     * 获取此 SalaryChange 的 executorId。
     * @return executorId
     */
    public String getExecutorId()
    {
	return this.executorId;
    }
    
    /**
     * 将此 SalaryChange 的 executorId 设置为指定的值。
     * @param executorId,新建 executorId
     */
    public void setExecutorId(String executorId)
    {
	this.executorId = executorId;
    }
    
    /**
     * 返回对象的散列代码值。该实现根据此对象
     * 中 id 字段计算散列代码值。
     * @return 此对象的散列代码值。
     */
    @Override
    public int hashCode()
    {
	int hash = 0;
	hash += (this.getChangeId() != null ? this.getChangeId().hashCode() : 0);
	return hash;
    }
    
    /**
     * 确定其他对象是否等于此 SalaryChange。当且仅当
     * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 SalaryChange 对象时,
     * 结果才为 <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 SalaryChange))
	{
	    return false;
	}
	SalaryChange other = (SalaryChange)object;
	if (this.getChangeId() != other.getChangeId() && (this.getChangeId() == null || !this.getChangeId().equals(other.getChangeId()))) return false;
	return true;
    }
    
    /**
     * 返回对象的字符串表示法。该实现根据 id 字段
     * 构造此表示法。
     * @return 对象的字符串表示法。
     */
    @Override
    public String toString()
    {
	return "vincent.SalaryChange[changeId=" + getChangeId() + "]";
    }
    
}

⌨️ 快捷键说明

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