1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.bitrepository.alarm.store;
23
24 import java.util.Date;
25
26 import org.bitrepository.bitrepositoryelements.AlarmCode;
27
28
29
30
31 public class AlarmDatabaseExtractionModel {
32
33 private String componentId;
34
35 private AlarmCode alarmCode;
36
37 private Date startDate;
38
39 private Date endDate;
40
41 private String fileID;
42
43 private int maxCount;
44
45 private boolean ascending;
46
47 private String collectionID;
48
49
50
51
52
53
54
55
56
57
58
59 public AlarmDatabaseExtractionModel(String collectionID, String componentId, AlarmCode alarmCode, Date startDate, Date endDate,
60 String fileID, Integer maxCount, boolean ascending) {
61 this.collectionID = collectionID;
62 this.componentId = componentId;
63 this.alarmCode = alarmCode;
64 this.startDate = startDate;
65 this.endDate = endDate;
66 this.fileID = fileID;
67 this.ascending = ascending;
68
69 if(maxCount != null) {
70 this.maxCount = maxCount;
71 } else {
72 this.maxCount = Integer.MAX_VALUE;
73 }
74 }
75
76
77
78
79 public String getComponentId() {
80 return componentId;
81 }
82
83
84
85
86
87 public void setComponentId(String componentId) {
88 this.componentId = componentId;
89 }
90
91
92
93
94 public AlarmCode getAlarmCode() {
95 return alarmCode;
96 }
97
98
99
100
101
102 public void setAlarmCode(AlarmCode alarmCode) {
103 this.alarmCode = alarmCode;
104 }
105
106
107
108
109 public Date getStartDate() {
110 return startDate;
111 }
112
113
114
115
116
117 public void setStartDate(Date startDate) {
118 this.startDate = startDate;
119 }
120
121
122
123
124 public Date getEndDate() {
125 return endDate;
126 }
127
128
129
130
131
132 public void setEndDate(Date endDate) {
133 this.endDate = endDate;
134 }
135
136
137
138
139 public String getFileID() {
140 return fileID;
141 }
142
143
144
145
146
147 public void setFileID(String fileID) {
148 this.fileID = fileID;
149 }
150
151
152
153
154 public Integer getMaxCount() {
155 return maxCount;
156 }
157
158
159
160
161
162 public void setMaxCount(Integer maxCount) {
163 this.maxCount = maxCount;
164 }
165
166
167
168
169 public boolean getAscending() {
170 return ascending;
171 }
172
173
174
175
176
177 public void setAscending(boolean ascending) {
178 this.ascending = ascending;
179 }
180
181
182
183
184 public String getCollectionID() {
185 return collectionID;
186 }
187
188
189
190
191
192 public void setCollectionID(String collectionID) {
193 this.collectionID = collectionID;
194 }
195 }