-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPDBHeader.java
153 lines (118 loc) · 3.79 KB
/
PDBHeader.java
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
package org.bandarra.mobireader;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author andreban
*/
public class PDBHeader {
private String databaseName;
private int attributes;
private int version;
private long creationDate;
private long modificationDate;
private long lastBackupDate;
private long modificationNumber;
private long appInfoId;
private long sortInfoId;
private String type;
private String creator;
private long uniqueSeedID;
private long nextRecordListID;
private int numberOfRecords;
private List<PDBRecordHeader> records = new ArrayList<>(numberOfRecords);
public String getDatabaseName() {
return databaseName;
}
public void setDatabaseName(String databaseName) {
this.databaseName = databaseName;
}
public int getAttributes() {
return attributes;
}
public void setAttributes(int attributes) {
this.attributes = attributes;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public long getCreationDate() {
return creationDate;
}
public void setCreationDate(long creationDate) {
this.creationDate = creationDate;
}
public long getModificationDate() {
return modificationDate;
}
public void setModificationDate(long modificationDate) {
this.modificationDate = modificationDate;
}
public long getLastBackupDate() {
return lastBackupDate;
}
public void setLastBackupDate(long lastBackupDate) {
this.lastBackupDate = lastBackupDate;
}
public long getModificationNumber() {
return modificationNumber;
}
public void setModificationNumber(long modificationNumber) {
this.modificationNumber = modificationNumber;
}
public long getAppInfoId() {
return appInfoId;
}
public void setAppInfoId(long appInfoId) {
this.appInfoId = appInfoId;
}
public long getSortInfoId() {
return sortInfoId;
}
public void setSortInfoId(long sortInfoId) {
this.sortInfoId = sortInfoId;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getCreator() {
return creator;
}
public void setCreator(String creator) {
this.creator = creator;
}
public long getUniqueSeedID() {
return uniqueSeedID;
}
public void setUniqueSeedID(long uniqueSeedID) {
this.uniqueSeedID = uniqueSeedID;
}
public int getNumberOfRecords() {
return numberOfRecords;
}
public void setNumberOfRecords(int numberOfRecords) {
this.numberOfRecords = numberOfRecords;
}
public long getNextRecordListID() {
return nextRecordListID;
}
public void setNextRecordListID(long nextRecordListID) {
this.nextRecordListID = nextRecordListID;
}
public void addPDBRecordHeader(PDBRecordHeader pdbRecordHeader) {
records.add(pdbRecordHeader);
}
public PDBRecordHeader getPDBRecordHeader(int pos) {
return records.get(pos);
}
@Override
public String toString() {
return "PDBHeader{" + "databaseName=" + databaseName + ", attributes=" + attributes + ", version=" + version + ", creationDate=" + creationDate + ", modificationDate=" + modificationDate + ", lastBackupDate=" + lastBackupDate + ", modificationNumber=" + modificationNumber + ", appInfoId=" + appInfoId + ", sortInfoId=" + sortInfoId + ", type=" + type + ", creator=" + creator + ", uniqueSeedID=" + uniqueSeedID + ", nextRecordListID=" + nextRecordListID + ", numberOfRecords=" + numberOfRecords + ", records=" + records + '}';
}
}