📄 netstatlogmodel.java
字号:
package com.sxit.wap.netstatlog;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class NetstatLogModel implements java.io.Serializable { int id = 0; String logIp = ""; Timestamp logStarttime = null; Timestamp logEndtime = null; String logMemo = ""; public NetstatLogModel(int id, String logIp, Timestamp logStarttime, Timestamp logEndtime, String logMemo){ this.id = id; if (logIp == null) logIp = ""; this.logIp = logIp; this.logStarttime = logStarttime; this.logEndtime = logEndtime; if (logMemo == null) logMemo = ""; this.logMemo = logMemo; } public NetstatLogModel(){ } public int getId() { return id; } public String getLogIp() { if (logIp == null) logIp = ""; return logIp; } public Timestamp getLogStarttime() { return logStarttime; } public Timestamp getLogEndtime() { return logEndtime; } public String getLogMemo() { if (logMemo == null) logMemo = ""; return logMemo; } public void setId(int id) { this.id = id; } public void setLogIp(String logIp) { this.logIp = logIp; } public void setLogStarttime(Timestamp logStarttime) { this.logStarttime = logStarttime; } public void setLogEndtime(Timestamp logEndtime) { this.logEndtime = logEndtime; } public void setLogMemo(String logMemo) { this.logMemo = logMemo; } public String toString() { String value = ""; value+= "id=" + id + "\n"; value+= "logIp=" + logIp + "\n"; value+= "logStarttime=" + logStarttime + "\n"; value+= "logEndtime=" + logEndtime + "\n"; value+= "logMemo=" + logMemo + "\n"; return value; } public void copy(NetstatLogModel other) { this.setId(other.getId()); this.setLogIp(other.getLogIp()); this.setLogStarttime(other.getLogStarttime()); this.setLogEndtime(other.getLogEndtime()); this.setLogMemo(other.getLogMemo()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -