channelmodel.java

来自「WAP PUSH后台源码,WAP PUSH后台源码」· Java 代码 · 共 200 行

JAVA
200
字号
package com.sxit.wap.channel;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class ChannelModel implements java.io.Serializable {  int id = 0;  int cpId = 0;  String channelName = "";  String channelDescribe = "";  String channelUrl = "";  int channelAccess = 0;  int channelSubscribe = 0;  int channelStatus = 0;  Timestamp channelRegdate = null;  int channelType = 0;  int channelAppear = 0;  int channelTrade = 0;  int channelFree = 0;  int channelTest = 0;  String channelCode = "";  int sendMobile = 0;  String channelRemark = "";  public ChannelModel(int id, int cpId, String channelName, String channelDescribe, String channelUrl, int channelAccess, int channelSubscribe, int channelStatus, Timestamp channelRegdate, int channelType, int channelAppear, int channelTrade, int channelFree, int channelTest, String channelCode, int sendMobile, String channelRemark){    this.id = id;    this.cpId = cpId;    if (channelName == null) channelName = "";    this.channelName = channelName;    if (channelDescribe == null) channelDescribe = "";    this.channelDescribe = channelDescribe;    if (channelUrl == null) channelUrl = "";    this.channelUrl = channelUrl;    this.channelAccess = channelAccess;    this.channelSubscribe = channelSubscribe;    this.channelStatus = channelStatus;    this.channelRegdate = channelRegdate;    this.channelType = channelType;    this.channelAppear = channelAppear;    this.channelTrade = channelTrade;    this.channelFree = channelFree;    this.channelTest = channelTest;    if (channelCode == null) channelCode = "";    this.channelCode = channelCode;    this.sendMobile = sendMobile;    if (channelRemark == null) channelRemark = "";    this.channelRemark = channelRemark;  }  public ChannelModel(){  }  public int getId() {     return id;  }  public int getCpId() {     return cpId;  }  public String getChannelName() {     if (channelName == null) channelName = "";     return channelName;  }  public String getChannelDescribe() {     if (channelDescribe == null) channelDescribe = "";     return channelDescribe;  }  public String getChannelUrl() {     if (channelUrl == null) channelUrl = "";     return channelUrl;  }  public int getChannelAccess() {     return channelAccess;  }  public int getChannelSubscribe() {     return channelSubscribe;  }  public int getChannelStatus() {     return channelStatus;  }  public Timestamp getChannelRegdate() {     return channelRegdate;  }  public int getChannelType() {     return channelType;  }  public int getChannelAppear() {     return channelAppear;  }  public int getChannelTrade() {     return channelTrade;  }  public int getChannelFree() {     return channelFree;  }  public int getChannelTest() {     return channelTest;  }  public String getChannelCode() {     if (channelCode == null) channelCode = "";     return channelCode;  }  public int getSendMobile() {     return sendMobile;  }  public String getChannelRemark() {     if (channelRemark == null) channelRemark = "";     return channelRemark;  }  public void setId(int id) {    this.id = id;  }  public void setCpId(int cpId) {    this.cpId = cpId;  }  public void setChannelName(String channelName) {    this.channelName = channelName;  }  public void setChannelDescribe(String channelDescribe) {    this.channelDescribe = channelDescribe;  }  public void setChannelUrl(String channelUrl) {    this.channelUrl = channelUrl;  }  public void setChannelAccess(int channelAccess) {    this.channelAccess = channelAccess;  }  public void setChannelSubscribe(int channelSubscribe) {    this.channelSubscribe = channelSubscribe;  }  public void setChannelStatus(int channelStatus) {    this.channelStatus = channelStatus;  }  public void setChannelRegdate(Timestamp channelRegdate) {    this.channelRegdate = channelRegdate;  }  public void setChannelType(int channelType) {    this.channelType = channelType;  }  public void setChannelAppear(int channelAppear) {    this.channelAppear = channelAppear;  }  public void setChannelTrade(int channelTrade) {    this.channelTrade = channelTrade;  }  public void setChannelFree(int channelFree) {    this.channelFree = channelFree;  }  public void setChannelTest(int channelTest) {    this.channelTest = channelTest;  }  public void setChannelCode(String channelCode) {    this.channelCode = channelCode;  }  public void setSendMobile(int sendMobile) {    this.sendMobile = sendMobile;  }  public void setChannelRemark(String channelRemark) {    this.channelRemark = channelRemark;  }  public String toString() {    String value = "";    value+= "id=" + id + "\n";    value+= "cpId=" + cpId + "\n";    value+= "channelName=" + channelName + "\n";    value+= "channelDescribe=" + channelDescribe + "\n";    value+= "channelUrl=" + channelUrl + "\n";    value+= "channelAccess=" + channelAccess + "\n";    value+= "channelSubscribe=" + channelSubscribe + "\n";    value+= "channelStatus=" + channelStatus + "\n";    value+= "channelRegdate=" + channelRegdate + "\n";    value+= "channelType=" + channelType + "\n";    value+= "channelAppear=" + channelAppear + "\n";    value+= "channelTrade=" + channelTrade + "\n";    value+= "channelFree=" + channelFree + "\n";    value+= "channelTest=" + channelTest + "\n";    value+= "channelCode=" + channelCode + "\n";    value+= "sendMobile=" + sendMobile + "\n";    value+= "channelRemark=" + channelRemark + "\n";    return value;  }  public void copy(ChannelModel other) {    this.setId(other.getId());    this.setCpId(other.getCpId());    this.setChannelName(other.getChannelName());    this.setChannelDescribe(other.getChannelDescribe());    this.setChannelUrl(other.getChannelUrl());    this.setChannelAccess(other.getChannelAccess());    this.setChannelSubscribe(other.getChannelSubscribe());    this.setChannelStatus(other.getChannelStatus());    this.setChannelRegdate(other.getChannelRegdate());    this.setChannelType(other.getChannelType());    this.setChannelAppear(other.getChannelAppear());    this.setChannelTrade(other.getChannelTrade());    this.setChannelFree(other.getChannelFree());    this.setChannelTest(other.getChannelTest());    this.setChannelCode(other.getChannelCode());    this.setSendMobile(other.getSendMobile());    this.setChannelRemark(other.getChannelRemark());  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?