log
Created by: kyungee
public static class Log implements Serializable {
private long ip;
private int app_id;
private int device_no;
private int os_no;
private int channel_no;
private java.sql.Timestamp click_time;
private long click_time_inSec;
//private Date attributed_time;
private int is_attributed;
private long delta;
public void setIp(long inp_ip){
this.ip = inp_ip;
}
public long getIp(){
return ip;
}
public void setApp_id(int inp_app_id){
this.app_id = inp_app_id;
}
public int getApp_id(){
return app_id;
}
public void setDevice_no(int inp_dev_no){
this.device_no = inp_dev_no;
}
public int getDevice_no(){
return device_no;
}
public void setOs_no(int inp_os_no){
this.os_no = inp_os_no;
}
public int getOs_no(){
return os_no;
}
public void setChannel_no(int inp_channel_no){
this.channel_no = inp_channel_no;
}
public int getChannel_no(){
return channel_no;
}
public void setClick_time(String inp_click_time) throws ParseException{
java.util.Date utilDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(inp_click_time);
this.click_time = new java.sql.Timestamp(utilDate.getTime());
setClick_time_inSec(utilDate);
}
public Timestamp getClick_time(){
return click_time;
}
public void setClick_time_inSec(java.util.Date utilDate){
this.click_time_inSec = (utilDate.getTime() / 1000);
}
public long getClick_time_inSec(){
return click_time_inSec;
}
/*
public void setAttributed_time(String inp_attributed_time) throws ParseException{
try {
this.attributed_time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(inp_attributed_time);
}catch (ParseException p){
inp_attributed_time = "2000-01-01 01:00:00";
this.attributed_time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(inp_attributed_time);
}
}
public Date getAttributed_time(){
return attributed_time;
}
*/
public void setIs_attributed(int inp_is_attributed) {
this.is_attributed = inp_is_attributed;
}
public int getIs_attributed(){
return is_attributed;
}
public void setDelta(long inp_delta){
this.delta = inp_delta;
}
public long getDelta(){
return delta;
}
}
-
Please register or login to post a comment