BocipMsSchrgEdateImpl.java
1 |
package test.pprog.dmo.uat9ampf3.impl; |
---|---|
2 |
|
3 |
import java.io.Serializable; |
4 |
import java.util.ArrayList; |
5 |
import java.util.List; |
6 |
import com.goldencode.p2j.persist.*; |
7 |
import com.goldencode.p2j.util.*; |
8 |
import test.pprog.dmo.uat9ampf3.*; |
9 |
|
10 |
/**
|
11 |
* Data Model Object corresponding with table <code>uat9ampf3.bocip_ms_schrg_edate</code>
|
12 |
* (previously <code>uat9ampf3.bocip-ms-schrg-edate</code>).
|
13 |
* <p>
|
14 |
* surcharge % and payment End date Input
|
15 |
*/
|
16 |
@LegacyTable(name = "bocip-ms-schrg-edate", table = "bocip_ms_schrg_edate") |
17 |
@LegacyIndexes(
|
18 |
{ |
19 |
@LegacyIndex(name = "bocip-ms-schrg-edate", converted = "bocip_ms_schrg_edate_bocip_ms_schrg_edate", primary = true, unique = true, components = |
20 |
{ |
21 |
@LegacyIndexComponent(fieldName = "policy-no"), |
22 |
@LegacyIndexComponent(fieldName = "seq-no"), |
23 |
@LegacyIndexComponent(fieldName = "cover-fr"), |
24 |
@LegacyIndexComponent(fieldName = "cover-to"), |
25 |
@LegacyIndexComponent(fieldName = "plan-no"), |
26 |
@LegacyIndexComponent(fieldName = "cert-no") |
27 |
}), |
28 |
@LegacyIndex(name = "batch-no", converted = "bocip_ms_schrg_edate_batch_no", components = |
29 |
{ |
30 |
@LegacyIndexComponent(fieldName = "batch-no"), |
31 |
@LegacyIndexComponent(fieldName = "pol-cnt") |
32 |
}), |
33 |
@LegacyIndex(name = "cont-amt", converted = "bocip_ms_schrg_edate_cont_amt", components = |
34 |
{ |
35 |
@LegacyIndexComponent(fieldName = "policy-no"), |
36 |
@LegacyIndexComponent(fieldName = "seq-no"), |
37 |
@LegacyIndexComponent(fieldName = "cover-to"), |
38 |
@LegacyIndexComponent(fieldName = "cal-surcharge"), |
39 |
@LegacyIndexComponent(fieldName = "cont-amount"), |
40 |
@LegacyIndexComponent(fieldName = "surchg-status") |
41 |
}), |
42 |
@LegacyIndex(name = "cov-paid", converted = "bocip_ms_schrg_edate_cov_paid", components = |
43 |
{ |
44 |
@LegacyIndexComponent(fieldName = "cover-to"), |
45 |
@LegacyIndexComponent(fieldName = "paid-surcharge") |
46 |
}), |
47 |
@LegacyIndex(name = "cover-period", converted = "bocip_ms_schrg_edate_cover_period", components = |
48 |
{ |
49 |
@LegacyIndexComponent(fieldName = "policy-no"), |
50 |
@LegacyIndexComponent(fieldName = "seq-no"), |
51 |
@LegacyIndexComponent(fieldName = "cover-fr"), |
52 |
@LegacyIndexComponent(fieldName = "cover-to"), |
53 |
@LegacyIndexComponent(fieldName = "plan-no"), |
54 |
@LegacyIndexComponent(fieldName = "cert-no"), |
55 |
@LegacyIndexComponent(fieldName = "surchg-status") |
56 |
}), |
57 |
@LegacyIndex(name = "idx-partab", converted = "bocip_ms_schrg_edate_idx_partab", components = |
58 |
{ |
59 |
@LegacyIndexComponent(fieldName = "policy-no"), |
60 |
@LegacyIndexComponent(fieldName = "cert-no"), |
61 |
@LegacyIndexComponent(fieldName = "cal-surcharge"), |
62 |
@LegacyIndexComponent(fieldName = "cover-to") |
63 |
}), |
64 |
@LegacyIndex(name = "mpfadate", converted = "bocip_ms_schrg_edate_mpfadate", components = |
65 |
{ |
66 |
@LegacyIndexComponent(fieldName = "sec-notify-mpfa-date"), |
67 |
@LegacyIndexComponent(fieldName = "first-pay-date"), |
68 |
@LegacyIndexComponent(fieldName = "cal-surcharge"), |
69 |
@LegacyIndexComponent(fieldName = "surchg-status") |
70 |
}), |
71 |
@LegacyIndex(name = "pol-cert", converted = "bocip_ms_schrg_edate_pol_cert", components = |
72 |
{ |
73 |
@LegacyIndexComponent(fieldName = "policy-no"), |
74 |
@LegacyIndexComponent(fieldName = "seq-no"), |
75 |
@LegacyIndexComponent(fieldName = "cover-to"), |
76 |
@LegacyIndexComponent(fieldName = "plan-no"), |
77 |
@LegacyIndexComponent(fieldName = "cert-no"), |
78 |
@LegacyIndexComponent(fieldName = "surchg-status") |
79 |
}), |
80 |
@LegacyIndex(name = "sch-ecode", converted = "bocip_ms_schrg_edate_sch_ecode", components = |
81 |
{ |
82 |
@LegacyIndexComponent(fieldName = "policy-no"), |
83 |
@LegacyIndexComponent(fieldName = "seq-no"), |
84 |
@LegacyIndexComponent(fieldName = "cover-fr"), |
85 |
@LegacyIndexComponent(fieldName = "cover-to"), |
86 |
@LegacyIndexComponent(fieldName = "first-notice-date") |
87 |
}), |
88 |
@LegacyIndex(name = "sts-cal", converted = "bocip_ms_schrg_edate_sts_cal", components = |
89 |
{ |
90 |
@LegacyIndexComponent(fieldName = "policy-no"), |
91 |
@LegacyIndexComponent(fieldName = "seq-no"), |
92 |
@LegacyIndexComponent(fieldName = "cover-to"), |
93 |
@LegacyIndexComponent(fieldName = "plan-no"), |
94 |
@LegacyIndexComponent(fieldName = "cert-no"), |
95 |
@LegacyIndexComponent(fieldName = "surchg-status"), |
96 |
@LegacyIndexComponent(fieldName = "cal-surcharge") |
97 |
}), |
98 |
@LegacyIndex(name = "third--mpfa-date", converted = "bocip_ms_schrg_edate_third_mpfa_date", components = |
99 |
{ |
100 |
@LegacyIndexComponent(fieldName = "third-notify-mpfa-date"), |
101 |
@LegacyIndexComponent(fieldName = "sec-pay-date"), |
102 |
@LegacyIndexComponent(fieldName = "cal-surcharge"), |
103 |
@LegacyIndexComponent(fieldName = "surchg-status") |
104 |
}) |
105 |
}) |
106 |
public class BocipMsSchrgEdateImpl |
107 |
implements Serializable, |
108 |
Persistable, |
109 |
BocipMsSchrgEdate |
110 |
{ |
111 |
/** Surrogate primary key */
|
112 |
private Long id = null; |
113 |
|
114 |
/** Scheme No.; 9 digits + 2 check digits */
|
115 |
@LegacyField(fieldId = 1, name = "policy-no", format = "X(11)", columnLabel = "Scheme No.", label = "Scheme No.", mandatory = true) |
116 |
private final character policyNo; |
117 |
|
118 |
/** Seq No.; Company branch code. */
|
119 |
@LegacyField(fieldId = 2, name = "seq-no", format = ">>9", initial = "0", label = "Seq No.") |
120 |
private final integer seqNo; |
121 |
|
122 |
/** Cover from; Date which contribution covered from. */
|
123 |
@LegacyField(fieldId = 3, name = "cover-fr", format = "99/99/9999", initial = "?", label = "Cover from") |
124 |
private final date coverFr; |
125 |
|
126 |
/** Cover To; Date which contribution cover to. */
|
127 |
@LegacyField(fieldId = 4, name = "cover-to", format = "99/99/9999", initial = "?", label = "Cover To") |
128 |
private final date coverTo; |
129 |
|
130 |
/** First pay end date; First Payment End date */
|
131 |
@LegacyField(fieldId = 5, name = "first-pay-date", format = "99/99/9999", initial = "?", columnLabel = "First pay end date", label = "First pay end date") |
132 |
private final date firstPayDate; |
133 |
|
134 |
/** First pay surcharge; First payment Surcharge % */
|
135 |
@LegacyField(fieldId = 6, name = "first-pay-sur%", format = ">>9.99", initial = "0", columnLabel = "First pay surcharge", label = "First pay surcharge") |
136 |
private final decimal firstPaySurPercent; |
137 |
|
138 |
/** Second pay end date; second payment end date */
|
139 |
@LegacyField(fieldId = 7, name = "sec-pay-date", format = "99/99/9999", columnLabel = "Second pay end date", label = "Second pay end date") |
140 |
private final date secPayDate; |
141 |
|
142 |
/** Second pay surcharge; Second payment surcharge */
|
143 |
@LegacyField(fieldId = 8, name = "sec-pay-sur%", format = ">>9.99", initial = "0", columnLabel = "Second pay surcharge", label = "Second pay surcharge") |
144 |
private final decimal secPaySurPercent; |
145 |
|
146 |
/** Plan# */
|
147 |
@LegacyField(fieldId = 9, name = "plan-no", format = "X(4)", label = "Plan#") |
148 |
private final character planNo; |
149 |
|
150 |
/** Certificate No. */
|
151 |
@LegacyField(fieldId = 10, name = "cert-no", format = ">>>>9", initial = "0", label = "Certificate No.", mandatory = true) |
152 |
private final integer certNo; |
153 |
|
154 |
/** Cont. Amount; EE cont. + ER cont. (exclude admin. charge) */
|
155 |
@LegacyField(fieldId = 11, name = "cont-amount", format = ">>>,>>>,>>9.99", initial = "0", columnLabel = "Cont. Amount", label = "Cont. Amount") |
156 |
private final decimal contAmount; |
157 |
|
158 |
/** Paid Surcharge; paid surcharge amount */
|
159 |
@LegacyField(fieldId = 12, name = "paid-surcharge", format = ">>>,>>>,>>9.99", initial = "0", columnLabel = "Paid Surcharge", label = "Paid Surcharge") |
160 |
private final decimal paidSurcharge; |
161 |
|
162 |
/**
|
163 |
* Calculated Surcharge; cont. amount x surcharge% x (first or second payment date -
|
164 |
* contribution day) / 356 days
|
165 |
*/
|
166 |
@LegacyField(fieldId = 13, name = "cal-surcharge", format = ">>>,>>>,>>9.99", initial = "0", columnLabel = "Calculated Surcharge", label = "Calculated Surcharge") |
167 |
private final decimal calSurcharge; |
168 |
|
169 |
/** 2nd Notification to MPFA Date; 2nd Notification to MPFA Date */
|
170 |
@LegacyField(fieldId = 14, name = "sec-notify-mpfa-date", format = "99/99/9999", initial = "?", columnLabel = "2nd Notification to MPFA Date", label = "2nd Notification to MPFA Date") |
171 |
private final date secNotifyMpfaDate; |
172 |
|
173 |
/** 3rd Notification to MPFA Date; 3rd Notification to MPFA Date */
|
174 |
@LegacyField(fieldId = 15, name = "third-notify-mpfa-date", format = "99/99/9999", initial = "?", columnLabel = "3rd Notification to MPFA Date", label = "3rd Notification to MPFA Date") |
175 |
private final date thirdNotifyMpfaDate; |
176 |
|
177 |
/** Surcharge Status; C - created, V- void, D - day end */
|
178 |
@LegacyField(fieldId = 16, name = "surchg-status", format = "X(1)", initial = "C", columnLabel = "Surcharge Status", label = "Surcharge Status") |
179 |
private final character surchgStatus; |
180 |
|
181 |
/**
|
182 |
* Batch No; Contribution Update Batch running no / bill no. self bill: batch-no auto-bill :
|
183 |
* bill no
|
184 |
*/
|
185 |
@LegacyField(fieldId = 17, name = "batch-no", format = "X(12)", columnLabel = "Batch No", label = "Batch No") |
186 |
private final character batchNo; |
187 |
|
188 |
/**
|
189 |
* Policy Count; Recid for this policy+branch+covering period in the batch. This recid together
|
190 |
* with batch no. will duplicate in cont-upd-dtl file. format: 'G' +nnnnnnnnn where 'G' is a
|
191 |
* hard coded prefix to avoid duplicate record after conversion (since this field is an integer
|
192 |
* in the TG version) and n is a 9 digits sequence number
|
193 |
*/
|
194 |
@LegacyField(fieldId = 18, name = "pol-cnt", format = "X(10)", columnLabel = "Policy Count", label = "Policy Count") |
195 |
private final character polCnt; |
196 |
|
197 |
/** MPFA first notice date; MPFA first notice date */
|
198 |
@LegacyField(fieldId = 19, name = "first-notice-date", format = "99/99/9999", initial = "?", columnLabel = "MPFA first notice date", label = "MPFA first notice date") |
199 |
private final date firstNoticeDate; |
200 |
|
201 |
/** Surcharge Factor; Surcharge Factor */
|
202 |
@LegacyField(fieldId = 20, name = "surchg-factor", format = ">>9.99999", initial = "0", columnLabel = "Surcharge Factor", label = "Surcharge Factor") |
203 |
private final decimal surchgFactor; |
204 |
|
205 |
/**
|
206 |
* 2nd Surcharge Factor; 2nd Surcharge Factor it can only be updated after the 2nd Notification
|
207 |
* to MPFA has been generated
|
208 |
*/
|
209 |
@LegacyField(fieldId = 21, name = "sec-surchg-factor", format = ">>9.99999", initial = "0", columnLabel = "2nd Surcharge Factor", label = "2nd Surcharge Factor") |
210 |
private final decimal secSurchgFactor; |
211 |
|
212 |
/**
|
213 |
* Default constructor.
|
214 |
*/
|
215 |
public BocipMsSchrgEdateImpl()
|
216 |
{ |
217 |
policyNo = new character(""); |
218 |
seqNo = new integer(0); |
219 |
coverFr = new date();
|
220 |
coverTo = new date();
|
221 |
firstPayDate = new date();
|
222 |
firstPaySurPercent = new decimal(0, 2); |
223 |
secPayDate; |
224 |
secPaySurPercent = new decimal(0, 2); |
225 |
planNo = new character(""); |
226 |
certNo = new integer(0); |
227 |
contAmount = new decimal(0, 2); |
228 |
paidSurcharge = new decimal(0, 2); |
229 |
calSurcharge = new decimal(0, 2); |
230 |
secNotifyMpfaDate = new date();
|
231 |
thirdNotifyMpfaDate = new date();
|
232 |
surchgStatus = new character("C"); |
233 |
batchNo = new character(""); |
234 |
polCnt = new character(""); |
235 |
firstNoticeDate = new date();
|
236 |
surchgFactor = new decimal(0, 5); |
237 |
secSurchgFactor = new decimal(0, 5); |
238 |
} |
239 |
|
240 |
/**
|
241 |
* Make a deep copy of the current DMO instance and return it.
|
242 |
*
|
243 |
* @return A new instance of this class whose data is identical to that of this instance.
|
244 |
*/
|
245 |
public Undoable deepCopy()
|
246 |
{ |
247 |
Undoable copy = new BocipMsSchrgEdateImpl();
|
248 |
copy.assign(this);
|
249 |
return copy;
|
250 |
} |
251 |
|
252 |
/**
|
253 |
* Modify the contained data of the instance to copy the instance data from the given, backup
|
254 |
* instance.
|
255 |
*
|
256 |
* @param old
|
257 |
* The backup instance from which to copy data.
|
258 |
*/
|
259 |
public void assign(Undoable old) |
260 |
{ |
261 |
BocipMsSchrgEdateImpl from = (BocipMsSchrgEdateImpl) old; |
262 |
setId(from.id); |
263 |
setPolicyNo(from.policyNo); |
264 |
setSeqNo(from.seqNo); |
265 |
setCoverFr(from.coverFr); |
266 |
setCoverTo(from.coverTo); |
267 |
setFirstPayDate(from.firstPayDate); |
268 |
setFirstPaySurPercent(from.firstPaySurPercent); |
269 |
setSecPayDate(from.secPayDate); |
270 |
setSecPaySurPercent(from.secPaySurPercent); |
271 |
setPlanNo(from.planNo); |
272 |
setCertNo(from.certNo); |
273 |
setContAmount(from.contAmount); |
274 |
setPaidSurcharge(from.paidSurcharge); |
275 |
setCalSurcharge(from.calSurcharge); |
276 |
setSecNotifyMpfaDate(from.secNotifyMpfaDate); |
277 |
setThirdNotifyMpfaDate(from.thirdNotifyMpfaDate); |
278 |
setSurchgStatus(from.surchgStatus); |
279 |
setBatchNo(from.batchNo); |
280 |
setPolCnt(from.polCnt); |
281 |
setFirstNoticeDate(from.firstNoticeDate); |
282 |
setSurchgFactor(from.surchgFactor); |
283 |
setSecSurchgFactor(from.secSurchgFactor); |
284 |
} |
285 |
|
286 |
/**
|
287 |
* Getter: Surrogate primary key
|
288 |
*
|
289 |
* @return Primary key
|
290 |
*/
|
291 |
public Long getId() |
292 |
{ |
293 |
return id;
|
294 |
} |
295 |
|
296 |
/**
|
297 |
* Setter: Surrogate primary key
|
298 |
*
|
299 |
* @param id
|
300 |
* Primary key
|
301 |
*/
|
302 |
public void setId(Long id) |
303 |
{ |
304 |
this.id = id;
|
305 |
} |
306 |
|
307 |
/**
|
308 |
* Getter: 9 digits + 2 check digits
|
309 |
*
|
310 |
* @return Scheme No.
|
311 |
*/
|
312 |
public character getPolicyNo()
|
313 |
{ |
314 |
return (new character(policyNo)); |
315 |
} |
316 |
|
317 |
/**
|
318 |
* Setter: 9 digits + 2 check digits
|
319 |
*
|
320 |
* @param policyNo
|
321 |
* Scheme No.
|
322 |
*/
|
323 |
public void setPolicyNo(Text policyNo) |
324 |
{ |
325 |
this.policyNo.assign(policyNo, true); |
326 |
} |
327 |
|
328 |
/**
|
329 |
* Getter: Company branch code.
|
330 |
*
|
331 |
* @return Seq No.
|
332 |
*/
|
333 |
public integer getSeqNo()
|
334 |
{ |
335 |
return (new integer(seqNo)); |
336 |
} |
337 |
|
338 |
/**
|
339 |
* Setter: Company branch code.
|
340 |
*
|
341 |
* @param seqNo
|
342 |
* Seq No.
|
343 |
*/
|
344 |
public void setSeqNo(NumberType seqNo) |
345 |
{ |
346 |
this.seqNo.assign(seqNo, true); |
347 |
} |
348 |
|
349 |
/**
|
350 |
* Getter: Date which contribution covered from.
|
351 |
*
|
352 |
* @return Cover from
|
353 |
*/
|
354 |
public date getCoverFr()
|
355 |
{ |
356 |
return (new date(coverFr)); |
357 |
} |
358 |
|
359 |
/**
|
360 |
* Setter: Date which contribution covered from.
|
361 |
*
|
362 |
* @param coverFr
|
363 |
* Cover from
|
364 |
*/
|
365 |
public void setCoverFr(date coverFr) |
366 |
{ |
367 |
this.coverFr.assign(coverFr, true); |
368 |
} |
369 |
|
370 |
/**
|
371 |
* Getter: Date which contribution cover to.
|
372 |
*
|
373 |
* @return Cover To
|
374 |
*/
|
375 |
public date getCoverTo()
|
376 |
{ |
377 |
return (new date(coverTo)); |
378 |
} |
379 |
|
380 |
/**
|
381 |
* Setter: Date which contribution cover to.
|
382 |
*
|
383 |
* @param coverTo
|
384 |
* Cover To
|
385 |
*/
|
386 |
public void setCoverTo(date coverTo) |
387 |
{ |
388 |
this.coverTo.assign(coverTo, true); |
389 |
} |
390 |
|
391 |
/**
|
392 |
* Getter: First Payment End date
|
393 |
*
|
394 |
* @return First pay end date
|
395 |
*/
|
396 |
public date getFirstPayDate()
|
397 |
{ |
398 |
return (new date(firstPayDate)); |
399 |
} |
400 |
|
401 |
/**
|
402 |
* Setter: First Payment End date
|
403 |
*
|
404 |
* @param firstPayDate
|
405 |
* First pay end date
|
406 |
*/
|
407 |
public void setFirstPayDate(date firstPayDate) |
408 |
{ |
409 |
this.firstPayDate.assign(firstPayDate, true); |
410 |
} |
411 |
|
412 |
/**
|
413 |
* Getter: First payment Surcharge %
|
414 |
*
|
415 |
* @return First pay surcharge
|
416 |
*/
|
417 |
public decimal getFirstPaySurPercent()
|
418 |
{ |
419 |
return (new decimal(firstPaySurPercent)); |
420 |
} |
421 |
|
422 |
/**
|
423 |
* Setter: First payment Surcharge %
|
424 |
*
|
425 |
* @param firstPaySurPercent
|
426 |
* First pay surcharge
|
427 |
*/
|
428 |
public void setFirstPaySurPercent(NumberType firstPaySurPercent) |
429 |
{ |
430 |
this.firstPaySurPercent.assign(firstPaySurPercent, true); |
431 |
} |
432 |
|
433 |
/**
|
434 |
* Getter: second payment end date
|
435 |
*
|
436 |
* @return Second pay end date
|
437 |
*/
|
438 |
public date getSecPayDate()
|
439 |
{ |
440 |
return (new date(secPayDate)); |
441 |
} |
442 |
|
443 |
/**
|
444 |
* Setter: second payment end date
|
445 |
*
|
446 |
* @param secPayDate
|
447 |
* Second pay end date
|
448 |
*/
|
449 |
public void setSecPayDate(date secPayDate) |
450 |
{ |
451 |
this.secPayDate.assign(secPayDate, true); |
452 |
} |
453 |
|
454 |
/**
|
455 |
* Getter: Second payment surcharge
|
456 |
*
|
457 |
* @return Second pay surcharge
|
458 |
*/
|
459 |
public decimal getSecPaySurPercent()
|
460 |
{ |
461 |
return (new decimal(secPaySurPercent)); |
462 |
} |
463 |
|
464 |
/**
|
465 |
* Setter: Second payment surcharge
|
466 |
*
|
467 |
* @param secPaySurPercent
|
468 |
* Second pay surcharge
|
469 |
*/
|
470 |
public void setSecPaySurPercent(NumberType secPaySurPercent) |
471 |
{ |
472 |
this.secPaySurPercent.assign(secPaySurPercent, true); |
473 |
} |
474 |
|
475 |
/**
|
476 |
* Getter: Plan#
|
477 |
*
|
478 |
* @return Plan#
|
479 |
*/
|
480 |
public character getPlanNo()
|
481 |
{ |
482 |
return (new character(planNo)); |
483 |
} |
484 |
|
485 |
/**
|
486 |
* Setter: Plan#
|
487 |
*
|
488 |
* @param planNo
|
489 |
* Plan#
|
490 |
*/
|
491 |
public void setPlanNo(Text planNo) |
492 |
{ |
493 |
this.planNo.assign(planNo, true); |
494 |
} |
495 |
|
496 |
/**
|
497 |
* Getter: Certificate No.
|
498 |
*
|
499 |
* @return Certificate No.
|
500 |
*/
|
501 |
public integer getCertNo()
|
502 |
{ |
503 |
return (new integer(certNo)); |
504 |
} |
505 |
|
506 |
/**
|
507 |
* Setter: Certificate No.
|
508 |
*
|
509 |
* @param certNo
|
510 |
* Certificate No.
|
511 |
*/
|
512 |
public void setCertNo(NumberType certNo) |
513 |
{ |
514 |
this.certNo.assign(certNo, true); |
515 |
} |
516 |
|
517 |
/**
|
518 |
* Getter: EE cont. + ER cont. (exclude admin. charge)
|
519 |
*
|
520 |
* @return Cont. Amount
|
521 |
*/
|
522 |
public decimal getContAmount()
|
523 |
{ |
524 |
return (new decimal(contAmount)); |
525 |
} |
526 |
|
527 |
/**
|
528 |
* Setter: EE cont. + ER cont. (exclude admin. charge)
|
529 |
*
|
530 |
* @param contAmount
|
531 |
* Cont. Amount
|
532 |
*/
|
533 |
public void setContAmount(NumberType contAmount) |
534 |
{ |
535 |
this.contAmount.assign(contAmount, true); |
536 |
} |
537 |
|
538 |
/**
|
539 |
* Getter: paid surcharge amount
|
540 |
*
|
541 |
* @return Paid Surcharge
|
542 |
*/
|
543 |
public decimal getPaidSurcharge()
|
544 |
{ |
545 |
return (new decimal(paidSurcharge)); |
546 |
} |
547 |
|
548 |
/**
|
549 |
* Setter: paid surcharge amount
|
550 |
*
|
551 |
* @param paidSurcharge
|
552 |
* Paid Surcharge
|
553 |
*/
|
554 |
public void setPaidSurcharge(NumberType paidSurcharge) |
555 |
{ |
556 |
this.paidSurcharge.assign(paidSurcharge, true); |
557 |
} |
558 |
|
559 |
/**
|
560 |
* Getter: cont. amount x surcharge% x (first or second payment date - contribution day) / 356
|
561 |
* days
|
562 |
*
|
563 |
* @return Calculated Surcharge
|
564 |
*/
|
565 |
public decimal getCalSurcharge()
|
566 |
{ |
567 |
return (new decimal(calSurcharge)); |
568 |
} |
569 |
|
570 |
/**
|
571 |
* Setter: cont. amount x surcharge% x (first or second payment date - contribution day) / 356
|
572 |
* days
|
573 |
*
|
574 |
* @param calSurcharge
|
575 |
* Calculated Surcharge
|
576 |
*/
|
577 |
public void setCalSurcharge(NumberType calSurcharge) |
578 |
{ |
579 |
this.calSurcharge.assign(calSurcharge, true); |
580 |
} |
581 |
|
582 |
/**
|
583 |
* Getter: 2nd Notification to MPFA Date
|
584 |
*
|
585 |
* @return 2nd Notification to MPFA Date
|
586 |
*/
|
587 |
public date getSecNotifyMpfaDate()
|
588 |
{ |
589 |
return (new date(secNotifyMpfaDate)); |
590 |
} |
591 |
|
592 |
/**
|
593 |
* Setter: 2nd Notification to MPFA Date
|
594 |
*
|
595 |
* @param secNotifyMpfaDate
|
596 |
* 2nd Notification to MPFA Date
|
597 |
*/
|
598 |
public void setSecNotifyMpfaDate(date secNotifyMpfaDate) |
599 |
{ |
600 |
this.secNotifyMpfaDate.assign(secNotifyMpfaDate, true); |
601 |
} |
602 |
|
603 |
/**
|
604 |
* Getter: 3rd Notification to MPFA Date
|
605 |
*
|
606 |
* @return 3rd Notification to MPFA Date
|
607 |
*/
|
608 |
public date getThirdNotifyMpfaDate()
|
609 |
{ |
610 |
return (new date(thirdNotifyMpfaDate)); |
611 |
} |
612 |
|
613 |
/**
|
614 |
* Setter: 3rd Notification to MPFA Date
|
615 |
*
|
616 |
* @param thirdNotifyMpfaDate
|
617 |
* 3rd Notification to MPFA Date
|
618 |
*/
|
619 |
public void setThirdNotifyMpfaDate(date thirdNotifyMpfaDate) |
620 |
{ |
621 |
this.thirdNotifyMpfaDate.assign(thirdNotifyMpfaDate, true); |
622 |
} |
623 |
|
624 |
/**
|
625 |
* Getter: C - created, V- void, D - day end
|
626 |
*
|
627 |
* @return Surcharge Status
|
628 |
*/
|
629 |
public character getSurchgStatus()
|
630 |
{ |
631 |
return (new character(surchgStatus)); |
632 |
} |
633 |
|
634 |
/**
|
635 |
* Setter: C - created, V- void, D - day end
|
636 |
*
|
637 |
* @param surchgStatus
|
638 |
* Surcharge Status
|
639 |
*/
|
640 |
public void setSurchgStatus(Text surchgStatus) |
641 |
{ |
642 |
this.surchgStatus.assign(surchgStatus, true); |
643 |
} |
644 |
|
645 |
/**
|
646 |
* Getter: Contribution Update Batch running no / bill no. self bill: batch-no auto-bill : bill
|
647 |
* no
|
648 |
*
|
649 |
* @return Batch No
|
650 |
*/
|
651 |
public character getBatchNo()
|
652 |
{ |
653 |
return (new character(batchNo)); |
654 |
} |
655 |
|
656 |
/**
|
657 |
* Setter: Contribution Update Batch running no / bill no. self bill: batch-no auto-bill : bill
|
658 |
* no
|
659 |
*
|
660 |
* @param batchNo
|
661 |
* Batch No
|
662 |
*/
|
663 |
public void setBatchNo(Text batchNo) |
664 |
{ |
665 |
this.batchNo.assign(batchNo, true); |
666 |
} |
667 |
|
668 |
/**
|
669 |
* Getter: Recid for this policy+branch+covering period in the batch. This recid together with
|
670 |
* batch no. will duplicate in cont-upd-dtl file. format: 'G' +nnnnnnnnn where 'G' is a hard
|
671 |
* coded prefix to avoid duplicate record after conversion (since this field is an integer in
|
672 |
* the TG version) and n is a 9 digits sequence number
|
673 |
*
|
674 |
* @return Policy Count
|
675 |
*/
|
676 |
public character getPolCnt()
|
677 |
{ |
678 |
return (new character(polCnt)); |
679 |
} |
680 |
|
681 |
/**
|
682 |
* Setter: Recid for this policy+branch+covering period in the batch. This recid together with
|
683 |
* batch no. will duplicate in cont-upd-dtl file. format: 'G' +nnnnnnnnn where 'G' is a hard
|
684 |
* coded prefix to avoid duplicate record after conversion (since this field is an integer in
|
685 |
* the TG version) and n is a 9 digits sequence number
|
686 |
*
|
687 |
* @param polCnt
|
688 |
* Policy Count
|
689 |
*/
|
690 |
public void setPolCnt(Text polCnt) |
691 |
{ |
692 |
this.polCnt.assign(polCnt, true); |
693 |
} |
694 |
|
695 |
/**
|
696 |
* Getter: MPFA first notice date
|
697 |
*
|
698 |
* @return MPFA first notice date
|
699 |
*/
|
700 |
public date getFirstNoticeDate()
|
701 |
{ |
702 |
return (new date(firstNoticeDate)); |
703 |
} |
704 |
|
705 |
/**
|
706 |
* Setter: MPFA first notice date
|
707 |
*
|
708 |
* @param firstNoticeDate
|
709 |
* MPFA first notice date
|
710 |
*/
|
711 |
public void setFirstNoticeDate(date firstNoticeDate) |
712 |
{ |
713 |
this.firstNoticeDate.assign(firstNoticeDate, true); |
714 |
} |
715 |
|
716 |
/**
|
717 |
* Getter: Surcharge Factor
|
718 |
*
|
719 |
* @return Surcharge Factor
|
720 |
*/
|
721 |
public decimal getSurchgFactor()
|
722 |
{ |
723 |
return (new decimal(surchgFactor)); |
724 |
} |
725 |
|
726 |
/**
|
727 |
* Setter: Surcharge Factor
|
728 |
*
|
729 |
* @param surchgFactor
|
730 |
* Surcharge Factor
|
731 |
*/
|
732 |
public void setSurchgFactor(NumberType surchgFactor) |
733 |
{ |
734 |
this.surchgFactor.assign(surchgFactor, true); |
735 |
} |
736 |
|
737 |
/**
|
738 |
* Getter: 2nd Surcharge Factor it can only be updated after the 2nd Notification to MPFA has
|
739 |
* been generated
|
740 |
*
|
741 |
* @return 2nd Surcharge Factor
|
742 |
*/
|
743 |
public decimal getSecSurchgFactor()
|
744 |
{ |
745 |
return (new decimal(secSurchgFactor)); |
746 |
} |
747 |
|
748 |
/**
|
749 |
* Setter: 2nd Surcharge Factor it can only be updated after the 2nd Notification to MPFA has
|
750 |
* been generated
|
751 |
*
|
752 |
* @param secSurchgFactor
|
753 |
* 2nd Surcharge Factor
|
754 |
*/
|
755 |
public void setSecSurchgFactor(NumberType secSurchgFactor) |
756 |
{ |
757 |
this.secSurchgFactor.assign(secSurchgFactor, true); |
758 |
} |
759 |
} |