VehicleDataSyncLog.java
2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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;
}
}