1
zj
2025-05-25 370c0e6d54be9222fcaa416fdd605f09e3c49e8a
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
package db;
 
import java.util.Date;
 
import db.util.FileUtil;
 
 
public class DBBackupRecord {
 
    /**    
     * UUID
     */
    private String uuid;
 
    /**    
     * 备份名称
     */
    private String name;
 
    /** 
     * 备份时间
     */
    private Date backupTime;
 
    /**    
     * 备份文件路径
     */
    private String filePath;
 
    /**    
     * 备份文件大小(B)
     */
    private Long fileSize;
 
    /**    
     * 备注
     */
    private String description;
 
    /**
     * Gets the UUID.
     *
     * @return Returns the uuid.
     */
    public String getUuid() {
        return uuid;
    }
 
    /**
     * Sets the UUID.
     *
     * @param uuid The uuid to set.
     */
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
 
    /**
     * Gets the 备份名称.
     *
     * @return Returns the name.
     */
    public String getName() {
        return name;
    }
 
    /**
     * Sets the 备份名称.
     *
     * @param name The name to set.
     */
    public void setName(String name) {
        this.name = name;
    }
 
    /**
     * Gets the 备份时间.
     *
     * @return Returns the backupTime.
     */
    public Date getBackupTime() {
        return backupTime;
    }
 
    /**
     * Sets the 备份时间.
     *
     * @param backupTime The backupTime to set.
     */
    public void setBackupTime(Date backupTime) {
        this.backupTime = backupTime;
    }
 
    /**
     * Gets the 备份文件路径.
     *
     * @return Returns the filePath.
     */
    public String getFilePath() {
        return filePath;
    }
 
    /**
     * Sets the 备份文件路径.
     *
     * @param filePath The filePath to set.
     */
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
 
    /**
     * Gets the 备份文件大小(B).
     *
     * @return Returns the fileSize.
     */
    public Long getFileSize() {
        return fileSize;
    }
 
    /**
     * Sets the 备份文件大小(B).
     *
     * @param fileSize The fileSize to set.
     */
    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }
 
    /**
     * Gets the 备注.
     *
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }
 
    /**
     * Sets the 备注.
     *
     * @param description The description to set.
     */
    public void setDescription(String description) {
        this.description = description;
    }
 
    @Override
    public String toString() {
        StringBuffer str = new StringBuffer("\n");
        str.append("===============================================================================");
        str.append("\n");
        str.append("<< ").append(getClass().getSimpleName()).append(" >>");
        str.append("\n");
        str.append("-------------------------------------------------------------------------------");
        str.append("\n");
        str.append(" UUID: ").append(getUuid());
        str.append("\n");
        str.append(" Name: ").append(getName());
        str.append("\n");
        str.append(" BackupTime: ").append(getBackupTime());
        str.append("\n");
        str.append(" FilePath: ").append(getFilePath());
        str.append("\n");
        str.append(" FileSize: ").append(FileUtil.formetFileSize(getFileSize(), null));
        str.append("\n");
        str.append(" Description: ").append(getDescription());
        str.append("\n");
        str.append("-------------------------------------------------------------------------------");
        return str.toString();
    }
}