package com.njcn.pojo.data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


@Table(name = "OFFL_log")
public class OfflLog {
    @Id
    @Column(name = "LOGS_INDEX")
    private String logsIndex;

    @Column(name = "NAME")
    private String name;

    @Column(name = "LINE_INDEX")
    private Long lineIndex;

    @Column(name = "START_TIME")
    private Date startTime;

    @Column(name = "END_TIME")
    private Date endTime;

    @Column(name = "YEAR")
    private String year;

    @Column(name = "USER_INDEX")
    private String userIndex;

    @Column(name = "IMPORTTIME")
    private Date importtime;


    @Column(name = "DATA_PATH")
    private String dataPath;

    @Column(name = "STATE")
    private int state;  //0-未解析 1-解析成功 2-解析失败 3-文件不存在

    @Column(name = "ALLCOUNT")
    private int allCount;

    @Column(name = "REALCOUNT")
    private int realCount;

    @Column(name = "UPDATETIME")
    private Date updateTime;

    @Column(name = "OFFL_DESCRIBE")
    private String offlDescribe;

    public String getLogsIndex() {
        return logsIndex;
    }

    public void setLogsIndex(String logsIndex) {
        this.logsIndex = logsIndex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getLineIndex() {
        return lineIndex;
    }

    public void setLineIndex(Long lineIndex) {
        this.lineIndex = lineIndex;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getUserIndex() {
        return userIndex;
    }

    public void setUserIndex(String userIndex) {
        this.userIndex = userIndex;
    }

    public Date getImporttime() {
        return importtime;
    }

    public void setImporttime(Date importtime) {
        this.importtime = importtime;
    }

    public String getDataPath() {
        return dataPath;
    }

    public void setDataPath(String dataPath) {
        this.dataPath = dataPath;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getAllCount() {
        return allCount;
    }

    public void setAllCount(int allCount) {
        this.allCount = allCount;
    }

    public int getRealCount() {
        return realCount;
    }

    public void setRealCount(int realCount) {
        this.realCount = realCount;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getOfflDescribe() {
        return offlDescribe;
    }

    public void setOfflDescribe(String offlDescribe) {
        this.offlDescribe = offlDescribe;
    }

    @Override
    public String toString() {
        return "OfflLog{" +
            "logsIndex='" + logsIndex + '\'' +
            ", name='" + name + '\'' +
            ", lineIndex=" + lineIndex +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
            ", year='" + year + '\'' +
            ", userIndex='" + userIndex + '\'' +
            ", importtime=" + importtime +
            ", dataPath='" + dataPath + '\'' +
            ", state=" + state +
            ", allCount=" + allCount +
            ", realCount=" + realCount +
            ", updateTime=" + updateTime +
            ", offlDescribe='" + offlDescribe + '\'' +
            '}';
    }
}