📄 customerrecordinfo.java
字号:
/*
* CustomerRecord.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.Date;
/**
* 实体类 CustomerRecord
*
* @author Virlene Cheng
*/
public class CustomerRecordInfo implements Serializable
{
private String recordId;
private String consumeListId;
private Double consumeFee;
private Date consumeDate;
private double currentMark;
private String customerId;
/** Creates a new instance of CustomerRecord */
public CustomerRecordInfo()
{
}
/**
* 使用指定的值创建 CustomerRecord 的新实例。
* @param recordId,CustomerRecord 的 recordId
*/
public CustomerRecordInfo(String recordId)
{
this.recordId = recordId;
}
/**
* 使用指定的值创建 CustomerRecord 的新实例。
* @param recordId,CustomerRecord 的 recordId
* @param consumeListId,CustomerRecord 的 consumeListId
* @param currentMark,CustomerRecord 的 currentMark
*/
public CustomerRecordInfo(String recordId, String consumeListId, double currentMark)
{
this.recordId = recordId;
this.consumeListId = consumeListId;
this.currentMark = currentMark;
}
/**
* 获取此 CustomerRecord 的 recordId。
* @return recordId
*/
public String getRecordId()
{
return this.recordId;
}
/**
* 将此 CustomerRecord 的 recordId 设置为指定的值。
* @param recordId,新建 recordId
*/
public void setRecordId(String recordId)
{
this.recordId = recordId;
}
/**
* 获取此 CustomerRecord 的 consumeListId。
* @return consumeListId
*/
public String getConsumeListId()
{
return this.consumeListId;
}
/**
* 将此 CustomerRecord 的 consumeListId 设置为指定的值。
* @param consumeListId,新建 consumeListId
*/
public void setConsumeListId(String consumeListId)
{
this.consumeListId = consumeListId;
}
/**
* 获取此 CustomerRecord 的 consumeFee。
* @return consumeFee
*/
public Double getConsumeFee()
{
return this.consumeFee;
}
/**
* 将此 CustomerRecord 的 consumeFee 设置为指定的值。
* @param consumeFee,新建 consumeFee
*/
public void setConsumeFee(Double consumeFee)
{
this.consumeFee = consumeFee;
}
/**
* 获取此 CustomerRecord 的 consumeDate。
* @return consumeDate
*/
public Date getConsumeDate()
{
return this.consumeDate;
}
/**
* 将此 CustomerRecord 的 consumeDate 设置为指定的值。
* @param consumeDate,新建 consumeDate
*/
public void setConsumeDate(Date consumeDate)
{
this.consumeDate = consumeDate;
}
/**
* 获取此 CustomerRecord 的 currentMark。
* @return currentMark
*/
public double getCurrentMark()
{
return this.currentMark;
}
/**
* 将此 CustomerRecord 的 currentMark 设置为指定的值。
* @param currentMark,新建 currentMark
*/
public void setCurrentMark(double currentMark)
{
this.currentMark = currentMark;
}
/**
* 获取此 CustomerRecord 的 customerId。
* @return customerId
*/
public String getCustomerId()
{
return this.customerId;
}
/**
* 将此 CustomerRecord 的 customerId 设置为指定的值。
* @param customerId,新建 customerId
*/
public void setCustomerId(String customerId)
{
this.customerId = customerId;
}
/**
* 返回对象的散列代码值。该实现根据此对象
* 中 id 字段计算散列代码值。
* @return 此对象的散列代码值。
*/
@Override
public int hashCode()
{
int hash = 0;
hash += (this.recordId != null ? this.recordId.hashCode() : 0);
return hash;
}
/**
* 确定其他对象是否等于此 CustomerRecord。当且仅当
* 参数不为 null 且该参数是具有与此对象相同 id 字段值的 CustomerRecord 对象时,
* 结果才为 <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 CustomerRecordInfo)) {
return false;
}
CustomerRecordInfo other = (CustomerRecordInfo)object;
if (this.recordId != other.recordId && (this.recordId == null || !this.recordId.equals(other.recordId))) return false;
return true;
}
/**
* 返回对象的字符串表示法。该实现根据 id 字段
* 构造此表示法。
* @return 对象的字符串表示法。
*/
@Override
public String toString()
{
return "temp.CustomerRecord[recordId=" + recordId + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -