📄 clientdto.java
字号:
package com.fund.client;
import java.io.Serializable;
import java.sql.Timestamp;
/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class ClientDto implements Serializable {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
/**
* client no.
*/
private Integer clientNo;
/**
*clientName
*/
private String clientName;
/**
*idCardNo
*/
private String idCardNo;
/**
*sex
*/
private String sex;
/**
*phone
*/
private String phone;
/**
*address
*/
private String address;
/**
*email
*/
private String email;
/**
*hobby
*/
private String hobby;
/**
*created date
*/
private Timestamp createdDate;
/**
*
* @return Integer
*/
public Integer getClientNo() {
return clientNo;
}
/**
*
* @param clientNo Integer
*/
public void setClientNo(Integer clientNo) {
this.clientNo = clientNo;
}
/**
*
* @return String
*/
public String getClientName() {
return clientName;
}
/**
*
* @param clientName String
*/
public void setClientName(String clientName) {
this.clientName = clientName.toUpperCase();
}
/**
*
* @return String
*/
public String getIdCardNo() {
return idCardNo;
}
/**
*
* @param idCardNo String
*/
public void setIdCardNo(String idCardNo) {
this.idCardNo = idCardNo;
}
/**
*
* @return String
*/
public String getSex() {
return sex;
}
/**
*
* @param sex String
*/
public void setSex(String sex) {
this.sex = sex;
}
/**
*
* @return String
*/
public String getPhone() {
return phone;
}
/**
*
* @param phone String
*/
public void setPhone(String phone) {
this.phone = phone;
}
/**
*
* @return String
*/
public String getAddress() {
return address;
}
/**
*
* @param address String
*/
public void setAddress(String address) {
this.address = address;
}
/**
*
* @return String
*/
public String getEmail() {
return email;
}
/**
*
* @param email String
*/
public void setEmail(String email) {
this.email = email;
}
/**
*
* @return String
*/
public String getHobby() {
return hobby;
}
/**
*
* @param hobby String
*/
public void setHobby(String hobby) {
this.hobby = hobby;
}
/**
*
* @return Timestamp
*/
public Timestamp getCreatedDate() {
return createdDate;
}
/**
*
* @param createdDate Timestamp
*/
public void setCreatedDate(Timestamp createdDate) {
this.createdDate = createdDate;
}
/**
*
* @param obj Object
* @return boolean
*/
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof ClientDto)) {
return false;
}
ClientDto that = (ClientDto) obj;
if (!(that.clientNo == null ? this.clientNo == null
: that.clientNo.equals(this.clientNo))) {
return false;
}
if (!(that.clientName == null ? this.clientName == null
: that.clientName.equals(this.clientName))) {
return false;
}
if (!(that.idCardNo == null ? this.idCardNo == null
: that.idCardNo.equals(this.idCardNo))) {
return false;
}
if (!(that.sex == null ? this.sex == null
: that.sex.equals(this.sex))) {
return false;
}
if (!(that.phone == null ? this.phone == null
: that.phone.equals(this.phone))) {
return false;
}
if (!(that.address == null ? this.address == null
: that.address.equals(this.address))) {
return false;
}
if (!(that.email == null ? this.email == null
: that.email.equals(this.email))) {
return false;
}
if (!(that.hobby == null ? this.hobby == null
: that.hobby.equals(this.hobby))) {
return false;
}
if (!(that.createdDate == null ? this.createdDate == null
: that.createdDate.equals(this.createdDate))) {
return false;
}
return true;
}
/**
*
* @return int
*/
public int hashCode() {
int result = 17;
final int var = 37;
result = var * result + this.clientNo.hashCode();
result = var * result + this.clientName.hashCode();
result = var * result + this.idCardNo.hashCode();
result = var * result + this.sex.hashCode();
result = var * result + this.phone.hashCode();
result = var * result + this.address.hashCode();
result = var * result + this.email.hashCode();
result = var * result + this.hobby.hashCode();
result = var * result + this.createdDate.hashCode();
return result;
}
/**
*
* @return String
*/
public String toString() {
String returnString = "";
returnString += "CLIENT NUMBER:" + clientNo;
returnString += " CLIENT NAME:" + clientName;
returnString += " IDENTITY CARD NUMBER:" + idCardNo;
returnString += " SEX:" + sex;
returnString += " PHONE:" + phone;
returnString += " ADDRESS:" + address;
returnString += " EMAIL:" + email;
returnString += " HOBBY:" + hobby;
returnString += " CREATED DATE:" + createdDate;
return returnString;
}
/**
*
* @param msg String
* @return String
*/
public String logData(String msg) {
String returnString = "\n[" + msg.toUpperCase() + "]\n";
returnString += toString() + "\n";
return returnString;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -