📄 usercardmodel.java
字号:
package com.sxit.wap.usercard;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class UserCardModel implements java.io.Serializable { String userMdn = ""; String userName = ""; String userJob = ""; String userCom = ""; String userTel = ""; String userFax = ""; String userEmail = ""; String userAdress = ""; String userPost = ""; public UserCardModel(String userMdn, String userName, String userJob, String userCom, String userTel, String userFax, String userEmail, String userAdress, String userPost){ if (userMdn == null) userMdn = ""; this.userMdn = userMdn; if (userName == null) userName = ""; this.userName = userName; if (userJob == null) userJob = ""; this.userJob = userJob; if (userCom == null) userCom = ""; this.userCom = userCom; if (userTel == null) userTel = ""; this.userTel = userTel; if (userFax == null) userFax = ""; this.userFax = userFax; if (userEmail == null) userEmail = ""; this.userEmail = userEmail; if (userAdress == null) userAdress = ""; this.userAdress = userAdress; if (userPost == null) userPost = ""; this.userPost = userPost; } public UserCardModel(){ } public String getUserMdn() { if (userMdn == null) userMdn = ""; return userMdn; } public String getUserName() { if (userName == null) userName = ""; return userName; } public String getUserJob() { if (userJob == null) userJob = ""; return userJob; } public String getUserCom() { if (userCom == null) userCom = ""; return userCom; } public String getUserTel() { if (userTel == null) userTel = ""; return userTel; } public String getUserFax() { if (userFax == null) userFax = ""; return userFax; } public String getUserEmail() { if (userEmail == null) userEmail = ""; return userEmail; } public String getUserAdress() { if (userAdress == null) userAdress = ""; return userAdress; } public String getUserPost() { if (userPost == null) userPost = ""; return userPost; } public void setUserMdn(String userMdn) { this.userMdn = userMdn; } public void setUserName(String userName) { this.userName = userName; } public void setUserJob(String userJob) { this.userJob = userJob; } public void setUserCom(String userCom) { this.userCom = userCom; } public void setUserTel(String userTel) { this.userTel = userTel; } public void setUserFax(String userFax) { this.userFax = userFax; } public void setUserEmail(String userEmail) { this.userEmail = userEmail; } public void setUserAdress(String userAdress) { this.userAdress = userAdress; } public void setUserPost(String userPost) { this.userPost = userPost; } public String toString() { String value = ""; value+= "userMdn=" + userMdn + "\n"; value+= "userName=" + userName + "\n"; value+= "userJob=" + userJob + "\n"; value+= "userCom=" + userCom + "\n"; value+= "userTel=" + userTel + "\n"; value+= "userFax=" + userFax + "\n"; value+= "userEmail=" + userEmail + "\n"; value+= "userAdress=" + userAdress + "\n"; value+= "userPost=" + userPost + "\n"; return value; } public void copy(UserCardModel other) { this.setUserMdn(other.getUserMdn()); this.setUserName(other.getUserName()); this.setUserJob(other.getUserJob()); this.setUserCom(other.getUserCom()); this.setUserTel(other.getUserTel()); this.setUserFax(other.getUserFax()); this.setUserEmail(other.getUserEmail()); this.setUserAdress(other.getUserAdress()); this.setUserPost(other.getUserPost()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -