📄 userinfopo.java
字号:
package com.px1987.webbbs.dao;
import java.util.*;
public class UserInfoPO extends UserInfoBasePO {
private Map contactMethod = new HashMap();
private String userSign;
private int emailVisible;
private int acceptAdvise;
private Set allBBSInfo = new HashSet(); //在“一”端的PO类中增加一个“多(BBSInfoPO类)”端的集合对象的属性
public UserInfoPO()
{
// TODO 自动生成构造函数存根
}
public int getAcceptAdvise() {
return acceptAdvise;
}
public void setAcceptAdvise(int acceptAdvise) {
this.acceptAdvise = acceptAdvise;
}
public Set getAllBBSInfo() {
return allBBSInfo;
}
public void setAllBBSInfo(Set allBBSInfo) {
this.allBBSInfo = allBBSInfo;
}
public Map getContactMethod() {
return contactMethod;
}
public void setContactMethod(Map contactMethod) {
this.contactMethod = contactMethod;
}
public void addOneContactMethod(String oneContactMethodKey,String oneContactMethodValue) //该方法为“帮助方法”
{
contactMethod.put(oneContactMethodKey,oneContactMethodValue);
}
public String getOneContactMethod(String oneContactMethodKey) //该方法为“帮助方法”
{
return (String)contactMethod.get(oneContactMethodKey);
}
public int getEmailVisible() {
return emailVisible;
}
public void setEmailVisible(int emailVisible) {
this.emailVisible = emailVisible;
}
public String getUserSign() {
return userSign;
}
public void setUserSign(String userSign) {
this.userSign = userSign;
}
public boolean equals(Object other)
{
if (this == other) {
return true;
}
if (! (other instanceof UserInfoPO))
{
return false;
}
return true;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -