VehicleDataSyncLog.java 2.94 KB
package com.bsth.entity.schedule.datasync;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 车辆数据同步日志。
 */
@Entity
@Table(name = "bsth_c_data_sync_cars")
public class VehicleDataSyncLog implements Serializable {
    private static final long serialVersionUID = -3042098095111282402L;
    /** 主键Id */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /** 待同步的记录数 */
    private Integer syncRowCounts;
    /** 同步-插入记录数 */
    private Integer syncInsertCounts;
    /** 同步-更新记录数 */
    private Integer syncUpdateCounts;
    /** 同步-错误记录数 */
    private Integer syncErrorCounts;

    /** 开始时间 */
    @Column(nullable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date startDate;
    /** 结束时间 */
    @Temporal(TemporalType.TIMESTAMP)
    private Date endDate;

    /** 同步状态 */
    @Column(nullable = false)
    @Convert(converter = VehicleDataSyncStatusEnumConverter.class)
    private VehicleDataSyncStatusEnum status;

    /** 执行结果信息 */
    @Column(length = 2000)
    private String processMsg;

    /** 执行耗时(秒) */
    private Integer processSeconds;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getSyncRowCounts() {
        return syncRowCounts;
    }

    public void setSyncRowCounts(Integer syncRowCounts) {
        this.syncRowCounts = syncRowCounts;
    }

    public Integer getSyncInsertCounts() {
        return syncInsertCounts;
    }

    public void setSyncInsertCounts(Integer syncInsertCounts) {
        this.syncInsertCounts = syncInsertCounts;
    }

    public Integer getSyncUpdateCounts() {
        return syncUpdateCounts;
    }

    public void setSyncUpdateCounts(Integer syncUpdateCounts) {
        this.syncUpdateCounts = syncUpdateCounts;
    }

    public Integer getSyncErrorCounts() {
        return syncErrorCounts;
    }

    public void setSyncErrorCounts(Integer syncErrorCounts) {
        this.syncErrorCounts = syncErrorCounts;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public VehicleDataSyncStatusEnum getStatus() {
        return status;
    }

    public void setStatus(VehicleDataSyncStatusEnum status) {
        this.status = status;
    }

    public String getProcessMsg() {
        return processMsg;
    }

    public void setProcessMsg(String processMsg) {
        this.processMsg = processMsg;
    }

    public Integer getProcessSeconds() {
        return processSeconds;
    }

    public void setProcessSeconds(Integer processSeconds) {
        this.processSeconds = processSeconds;
    }
}