📄 customer.java
字号:
package crm.object.unit;
import java.sql.ResultSet;
//针对Customer表的bean类
public class Customer
{
private String customerId = ""; //客户ID
private String realname = ""; //姓名
private String sex = ""; //性别
private String birthday = ""; //生日
private String phone = ""; //电话
private String cellphone = ""; //手机
private String address = ""; //地址
private String startDate = ""; //加入日期
private String memo = ""; //备注
//空的构造方法
public Customer()
{
}
//针对rs对象的构造方法
public Customer( ResultSet rs )
throws Exception
{
this.customerId = rs.getString("customer_id");
this.realname = rs.getString("realname");
this.sex = rs.getString("sex");
this.birthday = rs.getString("birthday");
this.phone = rs.getString("phone");
this.cellphone = rs.getString("cellphone");
this.address = rs.getString("address");
this.startDate = rs.getString("start_date");
this.memo = rs.getString("memo");
}
//get/set方法
public String getCustomerId()
{
return customerId;
}
public void setCustomerId( String customerId )
{
this.customerId = customerId;
}
public String getRealname()
{
return realname;
}
public void setRealname( String realname )
{
this.realname = realname;
}
public String getSex()
{
return sex;
}
public void setSex( String sex )
{
this.sex = sex;
}
public String getBirthday()
{
return birthday;
}
public void setBirthday( String birthday )
{
this.birthday = birthday;
}
public String getPhone()
{
return phone;
}
public void setPhone( String phone )
{
this.phone = phone;
}
public String getCellphone()
{
return cellphone;
}
public void setCellphone( String cellphone )
{
this.cellphone = cellphone;
}
public String getAddress()
{
return address;
}
public void setAddress( String address )
{
this.address = address;
}
public String getStartDate()
{
return startDate;
}
public void setStartDate( String startDate )
{
this.startDate = startDate;
}
public String getMemo()
{
return memo;
}
public void setMemo( String memo )
{
this.memo = memo;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -