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

📄 salaryinfo.java

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

/**
 * 实体类 SalaryInfo
 *
 * @author Virlene Cheng
 */
public class SalaryInfo implements Serializable
{
    protected String employeeId;
    protected Double baseSalary;
    protected Double monthBonus;
    protected Double yearBonus;
    protected Double stationSalary;
    protected Double housingSubsidy;
    protected Double trafficSubsidy;
    protected Double telSubsidy;
    protected Double minusSalary;
    
    /** Creates a new instance of SalaryInfo */
    public SalaryInfo()
    {
    }
    
    /**
     * 使用指定的值创建 SalaryInfo 的新实例。
     * @param employeeId,SalaryInfo 的 employeeId
     */
    public SalaryInfo(String employeeId)
    {
	this.setEmployeeId(employeeId);
    }
    
    /**
     * 获取此 SalaryInfo 的 employeeId。
     * @return employeeId
     */
    public String getEmployeeId()
    {
	return this.employeeId;
    }
    
    /**
     * 将此 SalaryInfo 的 employeeId 设置为指定的值。
     * @param employeeId,新建 employeeId
     */
    public void setEmployeeId(String employeeId)
    {
	this.employeeId = employeeId;
    }
    
    /**
     * 获取此 SalaryInfo 的 baseSalary。
     * @return baseSalary
     */
    public Double getBaseSalary()
    {
	return this.baseSalary;
    }
    
    /**
     * 将此 SalaryInfo 的 baseSalary 设置为指定的值。
     * @param baseSalary,新建 baseSalary
     */
    public void setBaseSalary(Double baseSalary)
    {
	this.baseSalary = baseSalary;
    }
    
    /**
     * 获取此 SalaryInfo 的 monthBonus。
     * @return monthBonus
     */
    public Double getMonthBonus()
    {
	return this.monthBonus;
    }
    
    /**
     * 将此 SalaryInfo 的 monthBonus 设置为指定的值。
     * @param monthBonus,新建 monthBonus
     */
    public void setMonthBonus(Double monthBonus)
    {
	this.monthBonus = monthBonus;
    }
    
    /**
     * 获取此 SalaryInfo 的 yearBonus。
     * @return yearBonus
     */
    public Double getYearBonus()
    {
	return this.yearBonus;
    }
    
    /**
     * 将此 SalaryInfo 的 yearBonus 设置为指定的值。
     * @param yearBonus,新建 yearBonus
     */
    public void setYearBonus(Double yearBonus)
    {
	this.yearBonus = yearBonus;
    }
    
    /**
     * 获取此 SalaryInfo 的 stationSalary。
     * @return stationSalary
     */
    public Double getStationSalary()
    {
	return this.stationSalary;
    }
    
    /**
     * 将此 SalaryInfo 的 stationSalary 设置为指定的值。
     * @param stationSalary,新建 stationSalary
     */
    public void setStationSalary(Double stationSalary)
    {
	this.stationSalary = stationSalary;
    }
    
    /**
     * 获取此 SalaryInfo 的 housingSubsidy。
     * @return housingSubsidy
     */
    public Double getHousingSubsidy()
    {
	return this.housingSubsidy;
    }
    
    /**
     * 将此 SalaryInfo 的 housingSubsidy 设置为指定的值。
     * @param housingSubsidy,新建 housingSubsidy
     */
    public void setHousingSubsidy(Double housingSubsidy)
    {
	this.housingSubsidy = housingSubsidy;
    }
    
    /**
     * 获取此 SalaryInfo 的 trafficSubsidy。
     * @return trafficSubsidy
     */
    public Double getTrafficSubsidy()
    {
	return this.trafficSubsidy;
    }
    
    /**
     * 将此 SalaryInfo 的 trafficSubsidy 设置为指定的值。
     * @param trafficSubsidy,新建 trafficSubsidy
     */
    public void setTrafficSubsidy(Double trafficSubsidy)
    {
	this.trafficSubsidy = trafficSubsidy;
    }
    
    /**
     * 获取此 SalaryInfo 的 telSubsidy。
     * @return telSubsidy
     */
    public Double getTelSubsidy()
    {
	return this.telSubsidy;
    }
    
    /**
     * 将此 SalaryInfo 的 telSubsidy 设置为指定的值。
     * @param telSubsidy,新建 telSubsidy
     */
    public void setTelSubsidy(Double telSubsidy)
    {
	this.telSubsidy = telSubsidy;
    }
    
    /**
     * 获取此 SalaryInfo 的 minusSalary。
     * @return minusSalary
     */
    public Double getMinusSalary()
    {
	return this.minusSalary;
    }
    
    /**
     * 将此 SalaryInfo 的 minusSalary 设置为指定的值。
     * @param minusSalary,新建 minusSalary
     */
    public void setMinusSalary(Double minusSalary)
    {
	this.minusSalary = minusSalary;
    }
    
    /**
     * 返回对象的散列代码值。该实现根据此对象
     * 中 id 字段计算散列代码值。
     * @return 此对象的散列代码值。
     */
    @Override
    public int hashCode()
    {
	int hash = 0;
	hash += (this.getEmployeeId() != null ? this.getEmployeeId().hashCode() : 0);
	return hash;
    }
    
    /**
     * 确定其他对象是否等于此 SalaryInfo。当且仅当
     * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 SalaryInfo 对象时,
     * 结果才为 <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 SalaryInfo))
	{
	    return false;
	}
	SalaryInfo other = (SalaryInfo)object;
	if (this.getEmployeeId() != other.getEmployeeId() && (this.getEmployeeId() == null || !this.getEmployeeId().equals(other.getEmployeeId()))) return false;
	return true;
    }
    
    /**
     * 返回对象的字符串表示法。该实现根据 id 字段
     * 构造此表示法。
     * @return 对象的字符串表示法。
     */
    @Override
    public String toString()
    {
	return "vincent.SalaryInfo[employeeId=" + getEmployeeId() + "]";
    }
    
}

⌨️ 快捷键说明

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