📄 checkbill.java
字号:
/*
* CheckBill1.java
*
* Created on 2007年6月18日, 上午11:48
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package dennis;
import java.io.Serializable;
import java.util.Date;
/**
* 实体类 CheckBill1
*
* @author Administrator
*/
public class CheckBill implements Serializable {
private String menuId;
private String guestAccouts;
private String sumConsume;
private String checkoutType;
private Date checkoutDate;
private String handleName;
private String remark;
/** Creates a new instance of CheckBill1 */
public CheckBill() {
}
/**
* 使用指定的值创建 CheckBill1 的新实例。
* @param menuId,CheckBill1 的 menuId
*/
public CheckBill(String menuId) {
this.menuId = menuId;
}
/**
* 使用指定的值创建 CheckBill1 的新实例。
* @param menuId,CheckBill1 的 menuId
* @param guestAccouts,CheckBill1 的 guestAccouts
* @param sumConsume,CheckBill1 的 sumConsume
*/
public CheckBill(String menuId, String guestAccouts,String sumConsume) {
this.menuId = menuId;
this.guestAccouts = guestAccouts;
this.sumConsume = sumConsume;
}
/**
* 获取此 CheckBill1 的 menuId。
* @return menuId
*/
public String getMenuId() {
return this.menuId;
}
/**
* 将此 CheckBill1 的 menuId 设置为指定的值。
* @param menuId,新建 menuId
*/
public void setMenuId(String menuId) {
this.menuId = menuId;
}
/**
* 获取此 CheckBill1 的 guestAccouts。
* @return guestAccouts
*/
public String getGuestAccouts() {
return this.guestAccouts;
}
/**
* 将此 CheckBill1 的 guestAccouts 设置为指定的值。
* @param guestAccouts,新建 guestAccouts
*/
public void setGuestAccouts(String guestAccouts) {
this.guestAccouts = guestAccouts;
}
/**
* 获取此 CheckBill1 的 sumConsume。
* @return sumConsume
*/
public String getSumConsume() {
return this.sumConsume;
}
/**
* 将此 CheckBill1 的 sumConsume 设置为指定的值。
* @param sumConsume,新建 sumConsume
*/
public void setSumConsume(String sumConsume) {
this.sumConsume = sumConsume;
}
/**
* 获取此 CheckBill1 的 checkoutType。
* @return checkoutType
*/
public String getCheckoutType() {
return this.checkoutType;
}
/**
* 将此 CheckBill1 的 checkoutType 设置为指定的值。
* @param checkoutType,新建 checkoutType
*/
public void setCheckoutType(String checkoutType) {
this.checkoutType = checkoutType;
}
/**
* 获取此 CheckBill1 的 checkoutDate。
* @return checkoutDate
*/
public Date getCheckoutDate() {
return this.checkoutDate;
}
/**
* 将此 CheckBill1 的 checkoutDate 设置为指定的值。
* @param checkoutDate,新建 checkoutDate
*/
public void setCheckoutDate(Date checkoutDate) {
this.checkoutDate = checkoutDate;
}
/**
* 获取此 CheckBill1 的 handleName。
* @return handleName
*/
public String getHandleName() {
return this.handleName;
}
/**
* 将此 CheckBill1 的 handleName 设置为指定的值。
* @param handleName,新建 handleName
*/
public void setHandleName(String handleName) {
this.handleName = handleName;
}
/**
* 获取此 CheckBill1 的 remark。
* @return remark
*/
public String getRemark() {
return this.remark;
}
/**
* 将此 CheckBill1 的 remark 设置为指定的值。
* @param remark,新建 remark
*/
public void setRemark(String remark) {
this.remark = remark;
}
/**
* 返回对象的散列代码值。该实现根据此对象
* 中 id 字段计算散列代码值。
* @return 此对象的散列代码值。
*/
@Override
public int hashCode() {
int hash = 0;
hash += (this.menuId != null ? this.menuId.hashCode() : 0);
return hash;
}
/**
* 确定其他对象是否等于此 CheckBill1。当且仅当
* 参数不为 null 且该参数是具有与此对象相同 id 字段值的 CheckBill1 对象时,
* 结果才为 <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 CheckBill)) {
return false;
}
CheckBill other = (CheckBill)object;
if (this.menuId != other.menuId && (this.menuId == null || !this.menuId.equals(other.menuId))) return false;
return true;
}
/**
* 返回对象的字符串表示法。该实现根据 id 字段
* 构造此表示法。
* @return 对象的字符串表示法。
*/
@Override
public String toString() {
return "dennis.CheckBill1[menuId=" + menuId + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -