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

📄 customerinfo.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * CustomerInfo.java
 *
 * Created on 2007年6月4日, 下午10:07
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package evan;

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

/**
 * 实体类 CustomerInfo
 * 
 * @author Evan
 */
public class CustomerInfo implements Serializable
{
	private String customerId;
	private String name;
	private String englishName;
	private String sex;
	private String citizenship;
	private String nation;
	private String birthplace;
	private String id;
	private Date birthday;
	private String marriage;
	private String career;
	private String religion;
	private String customerType;
	private Boolean blacklist;
	private String cellphone;
	private String homeTel;
	private String officeTel;
	private String fax;
	private String msn;
	private String email;
	private String company;
	private String post;
	private String address;
        private String sourceId;
    
    /** Creates a new instance of CustomerInfo */
    public CustomerInfo()
    {
    }

	/**
	 * 使用指定的值创建 CustomerInfo 的新实例。
	 * @param customerId,CustomerInfo 的 customerId
	 */
	public CustomerInfo(String customerId)
	{
		this.customerId = customerId;
	}

	/**
	 * 使用指定的值创建 CustomerInfo 的新实例。
	 * @param customerId,CustomerInfo 的 customerId
	 * @param id,CustomerInfo 的 id
	 */
	public CustomerInfo(String customerId, String id)
	{
		this.customerId = customerId;
		this.id = id;
	}

	/**
	 * 获取此 CustomerInfo 的 customerId。
	 * @return customerId
	 */
	public String getCustomerId()
	{
		return this.customerId;
	}

	/**
	 * 将此 CustomerInfo 的 customerId 设置为指定的值。
	 * @param customerId,新建 customerId
	 */
	public void setCustomerId(String customerId)
	{
		this.customerId = customerId;
	}

	/**
	 * 获取此 CustomerInfo 的 name。
	 * @return name
	 */
	public String getName()
	{
		return this.name;
	}

	/**
	 * 将此 CustomerInfo 的 name 设置为指定的值。
	 * @param name,新建 name
	 */
	public void setName(String name)
	{
		this.name = name;
	}

	/**
	 * 获取此 CustomerInfo 的 englishName。
	 * @return englishName
	 */
	public String getEnglishName()
	{
		return this.englishName;
	}

	/**
	 * 将此 CustomerInfo 的 englishName 设置为指定的值。
	 * @param englishName,新建 englishName
	 */
	public void setEnglishName(String englishName)
	{
		this.englishName = englishName;
	}

	/**
	 * 获取此 CustomerInfo 的 sex。
	 * @return sex
	 */
	public String getSex()
	{
		return this.sex;
	}

	/**
	 * 将此 CustomerInfo 的 sex 设置为指定的值。
	 * @param sex,新建 sex
	 */
	public void setSex(String sex)
	{
		this.sex = sex;
	}

	/**
	 * 获取此 CustomerInfo 的 citizenship。
	 * @return citizenship
	 */
	public String getCitizenship()
	{
		return this.citizenship;
	}

	/**
	 * 将此 CustomerInfo 的 citizenship 设置为指定的值。
	 * @param citizenship,新建 citizenship
	 */
	public void setCitizenship(String citizenship)
	{
		this.citizenship = citizenship;
	}

	/**
	 * 获取此 CustomerInfo 的 nation。
	 * @return nation
	 */
	public String getNation()
	{
		return this.nation;
	}

	/**
	 * 将此 CustomerInfo 的 nation 设置为指定的值。
	 * @param nation,新建 nation
	 */
	public void setNation(String nation)
	{
		this.nation = nation;
	}

	/**
	 * 获取此 CustomerInfo 的 birthplace。
	 * @return birthplace
	 */
	public String getBirthplace()
	{
		return this.birthplace;
	}

	/**
	 * 将此 CustomerInfo 的 birthplace 设置为指定的值。
	 * @param birthplace,新建 birthplace
	 */
	public void setBirthplace(String birthplace)
	{
		this.birthplace = birthplace;
	}

	/**
	 * 获取此 CustomerInfo 的 id。
	 * @return id
	 */
	public String getId()
	{
		return this.id;
	}

	/**
	 * 将此 CustomerInfo 的 id 设置为指定的值。
	 * @param id,新建 id
	 */
	public void setId(String id)
	{
		this.id = id;
	}

	/**
	 * 获取此 CustomerInfo 的 birthday。
	 * @return birthday
	 */
	public Date getBirthday()
	{
		return this.birthday;
	}

	/**
	 * 将此 CustomerInfo 的 birthday 设置为指定的值。
	 * @param birthday,新建 birthday
	 */
	public void setBirthday(Date birthday)
	{
		this.birthday = birthday;
	}

	/**
	 * 获取此 CustomerInfo 的 marriage。
	 * @return marriage
	 */
	public String getMarriage()
	{
		return this.marriage;
	}

	/**
	 * 将此 CustomerInfo 的 marriage 设置为指定的值。
	 * @param marriage,新建 marriage
	 */
	public void setMarriage(String marriage)
	{
		this.marriage = marriage;
	}

	/**
	 * 获取此 CustomerInfo 的 career。
	 * @return career
	 */
	public String getCareer()
	{
		return this.career;
	}

	/**
	 * 将此 CustomerInfo 的 career 设置为指定的值。
	 * @param career,新建 career
	 */
	public void setCareer(String career)
	{
		this.career = career;
	}

	/**
	 * 获取此 CustomerInfo 的 religion。
	 * @return religion
	 */
	public String getReligion()
	{
		return this.religion;
	}

	/**
	 * 将此 CustomerInfo 的 religion 设置为指定的值。
	 * @param religion,新建 religion
	 */
	public void setReligion(String religion)
	{
		this.religion = religion;
	}

	/**
	 * 获取此 CustomerInfo 的 customerType。
	 * @return customerType
	 */
	public String getCustomerType()
	{
		return this.customerType;
	}

	/**
	 * 将此 CustomerInfo 的 customerType 设置为指定的值。
	 * @param customerType,新建 customerType
	 */
	public void setCustomerType(String customerType)
	{
		this.customerType = customerType;
	}

	/**
	 * 获取此 CustomerInfo 的 blacklist。
	 * @return blacklist
	 */
	public Boolean getBlacklist()
	{
		return this.blacklist;
	}

	/**
	 * 将此 CustomerInfo 的 blacklist 设置为指定的值。
	 * @param blacklist,新建 blacklist
	 */
	public void setBlacklist(Boolean blacklist)
	{
		this.blacklist = blacklist;
	}

	/**
	 * 获取此 CustomerInfo 的 cellphone。
	 * @return cellphone
	 */
	public String getCellphone()
	{
		return this.cellphone;
	}

	/**
	 * 将此 CustomerInfo 的 cellphone 设置为指定的值。
	 * @param cellphone,新建 cellphone
	 */
	public void setCellphone(String cellphone)
	{
		this.cellphone = cellphone;
	}

	/**
	 * 获取此 CustomerInfo 的 homeTel。
	 * @return homeTel
	 */
	public String getHomeTel()
	{
		return this.homeTel;
	}

	/**
	 * 将此 CustomerInfo 的 homeTel 设置为指定的值。
	 * @param homeTel,新建 homeTel
	 */
	public void setHomeTel(String homeTel)
	{
		this.homeTel = homeTel;
	}

	/**
	 * 获取此 CustomerInfo 的 officeTel。
	 * @return officeTel
	 */
	public String getOfficeTel()
	{
		return this.officeTel;
	}

	/**
	 * 将此 CustomerInfo 的 officeTel 设置为指定的值。
	 * @param officeTel,新建 officeTel
	 */
	public void setOfficeTel(String officeTel)
	{
		this.officeTel = officeTel;
	}

	/**
	 * 获取此 CustomerInfo 的 fax。
	 * @return fax
	 */
	public String getFax()
	{
		return this.fax;
	}

	/**
	 * 将此 CustomerInfo 的 fax 设置为指定的值。
	 * @param fax,新建 fax
	 */
	public void setFax(String fax)
	{
		this.fax = fax;
	}

	/**
	 * 获取此 CustomerInfo 的 msn。
	 * @return msn
	 */
	public String getMsn()
	{
		return this.msn;
	}

	/**
	 * 将此 CustomerInfo 的 msn 设置为指定的值。
	 * @param msn,新建 msn
	 */
	public void setMsn(String msn)
	{
		this.msn = msn;
	}

	/**
	 * 获取此 CustomerInfo 的 email。
	 * @return email
	 */
	public String getEmail()
	{
		return this.email;
	}

	/**
	 * 将此 CustomerInfo 的 email 设置为指定的值。
	 * @param email,新建 email
	 */
	public void setEmail(String email)
	{
		this.email = email;
	}

	/**
	 * 获取此 CustomerInfo 的 company。
	 * @return company
	 */
	public String getCompany()
	{
		return this.company;
	}

	/**
	 * 将此 CustomerInfo 的 company 设置为指定的值。
	 * @param company,新建 company
	 */
	public void setCompany(String company)
	{
		this.company = company;
	}

	/**
	 * 获取此 CustomerInfo 的 post。
	 * @return post
	 */
	public String getPost()
	{
		return this.post;
	}

	/**
	 * 将此 CustomerInfo 的 post 设置为指定的值。
	 * @param post,新建 post
	 */
	public void setPost(String post)
	{
		this.post = post;
	}

	/**
	 * 获取此 CustomerInfo 的 address。
	 * @return address
	 */
	public String getAddress()
	{
		return this.address;
	}

	/**
	 * 将此 CustomerInfo 的 address 设置为指定的值。
	 * @param address,新建 address
	 */
	public void setAddress(String address)
	{
		this.address = address;
	}

	/**
	 * 获取此 CustomerInfo 的 sourceId。
	 * @return sourceId
	 */
	public String getSourceId()
	{
		return this.sourceId;
	}

	/**
	 * 将此 CustomerInfo 的 sourceId 设置为指定的值。
	 * @param sourceId,新建 sourceId
	 */
	public void setSourceId(String sourceId)
	{
		this.sourceId = sourceId;
	}

	/**
	 * 返回对象的散列代码值。该实现根据此对象
	 * 中 id 字段计算散列代码值。
	 * @return 此对象的散列代码值。
	 */
	public int hashCode()
	{
		int hash = 0;
		hash += (this.customerId != null ? this.customerId.hashCode() : 0);
		return hash;
	}

	/**
	 * 确定其他对象是否等于此 CustomerInfo。当且仅当
	 * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 CustomerInfo 对象时,
	 * 结果才为 <code>true</code>。
	 * @param 对象,要比较的引用对象
	 * 如果此对象与参数相同,则 @return <code>true</code>;
	 * 否则为 <code>false</code>。
	 */
	public boolean equals(Object object)
	{
		// TODO: Warning - this method won't work in the case the id fields are not set
		if (!(object instanceof CustomerInfo)) {
			return false;
		}
		CustomerInfo other = (CustomerInfo)object;
		if (this.customerId != other.customerId && (this.customerId == null || !this.customerId.equals(other.customerId))) return false;
		return true;
	}

	/**
	 * 返回对象的字符串表示法。该实现根据 id 字段
	 * 构造此表示法。
	 * @return 对象的字符串表示法。
	 */
	public String toString()
	{
		return "temp.CustomerInfo[customerId=" + customerId + "]";
	}
    
}

⌨️ 快捷键说明

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