public void setTime(Timestamp newValue)

  this.time = newValue;
}
这样不行吗?

解决方案 »

  1.   

    import java.util.*;
    import java.sql.Timestamp;public class Log {
        public int getLogId() { return logId; }
        public void setLogId(int logId) { this.logId = logId; }
        public Timestamp getLogTime() { return logTime; }
        public void setLogTime(Timestamp logTime) { this.logTime = logTime; }
        public int getUserId() { return userId; }
        public void setUserId(int userId) { this.userId = userId; }
        public String getName() { return name;}
        public void setName(String name) { this.name = name; }
        public String getAccount() { return account; }
        public void setAccount(String account) { this.account = account; }
        public int getOpType() { return opType; }
        public void setOpType(int opType) { this.opType = opType; }
        public int getObjType() { return objType; }
        public void setObjType(int objType) { this.objType = objType; }
        public String getLogDescr() { return logDescr; }
        public void setLogDescr(String logDescr) { this.logDescr = logDescr; }    private int logId;
        private Timestamp logTime;
        private int userId;
        private String account;
        private String name;
        private int opType;
        private int objType;
        private String logDescr;
    }