📄 indexmenumodel.java
字号:
package com.sxit.wap.indexmenu;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class IndexMenuModel implements java.io.Serializable { int id = 0; String menuName = ""; String menuUrl = ""; int menuImg = 0; int dispOrder = 0; int menuType = 0; int dispFlag = 0; int channelId = 0; public IndexMenuModel(int id, String menuName, String menuUrl, int menuImg, int dispOrder, int menuType, int dispFlag, int channelId){ this.id = id; if (menuName == null) menuName = ""; this.menuName = menuName; if (menuUrl == null) menuUrl = ""; this.menuUrl = menuUrl; this.menuImg = menuImg; this.dispOrder = dispOrder; this.menuType = menuType; this.dispFlag = dispFlag; this.channelId = channelId; } public IndexMenuModel(){ } public int getId() { return id; } public String getMenuName() { if (menuName == null) menuName = ""; return menuName; } public String getMenuUrl() { if (menuUrl == null) menuUrl = ""; return menuUrl; } public int getMenuImg() { return menuImg; } public int getDispOrder() { return dispOrder; } public int getMenuType() { return menuType; } public int getDispFlag() { return dispFlag; } public int getChannelId() { return channelId; } public void setId(int id) { this.id = id; } public void setMenuName(String menuName) { this.menuName = menuName; } public void setMenuUrl(String menuUrl) { this.menuUrl = menuUrl; } public void setMenuImg(int menuImg) { this.menuImg = menuImg; } public void setDispOrder(int dispOrder) { this.dispOrder = dispOrder; } public void setMenuType(int menuType) { this.menuType = menuType; } public void setDispFlag(int dispFlag) { this.dispFlag = dispFlag; } public void setChannelId(int channelId) { this.channelId = channelId; } public String toString() { String value = ""; value+= "id=" + id + "\n"; value+= "menuName=" + menuName + "\n"; value+= "menuUrl=" + menuUrl + "\n"; value+= "menuImg=" + menuImg + "\n"; value+= "dispOrder=" + dispOrder + "\n"; value+= "menuType=" + menuType + "\n"; value+= "dispFlag=" + dispFlag + "\n"; value+= "channelId=" + channelId + "\n"; return value; } public void copy(IndexMenuModel other) { this.setId(other.getId()); this.setMenuName(other.getMenuName()); this.setMenuUrl(other.getMenuUrl()); this.setMenuImg(other.getMenuImg()); this.setDispOrder(other.getDispOrder()); this.setMenuType(other.getMenuType()); this.setDispFlag(other.getDispFlag()); this.setChannelId(other.getChannelId()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -