Project

General

Profile

BocipSurchrgDtlImpl.java

Kenny Chan, 03/02/2018 05:42 AM

Download (21.9 KB)

 
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_surchrg_dtl</code> (previously
12
 * <code>uat9ampf3.bocip-surchrg-dtl</code>).
13
 */
14
@LegacyTable(name = "bocip-surchrg-dtl", table = "bocip_surchrg_dtl")
15
@LegacyIndexes(
16
{
17
   @LegacyIndex(name = "bocip-surchrg-dtl", converted = "bocip_surchrg_dtl_bocip_surchrg_dtl", primary = true, unique = true, components = 
18
   {
19
      @LegacyIndexComponent(fieldName = "policy-no"),
20
      @LegacyIndexComponent(fieldName = "seq-no"),
21
      @LegacyIndexComponent(fieldName = "cover-fr"),
22
      @LegacyIndexComponent(fieldName = "cover-to"),
23
      @LegacyIndexComponent(fieldName = "plan-no"),
24
      @LegacyIndexComponent(fieldName = "cert-no")
25
   }),
26
   @LegacyIndex(name = "batch-no", converted = "bocip_surchrg_dtl_batch_no", components = 
27
   {
28
      @LegacyIndexComponent(fieldName = "batch-no"),
29
      @LegacyIndexComponent(fieldName = "pol-cnt")
30
   }),
31
   @LegacyIndex(name = "cont-amt", converted = "bocip_surchrg_dtl_cont_amt", components = 
32
   {
33
      @LegacyIndexComponent(fieldName = "policy-no"),
34
      @LegacyIndexComponent(fieldName = "seq-no"),
35
      @LegacyIndexComponent(fieldName = "cover-to"),
36
      @LegacyIndexComponent(fieldName = "cal-surcharge"),
37
      @LegacyIndexComponent(fieldName = "cont-amount"),
38
      @LegacyIndexComponent(fieldName = "surchg-status")
39
   }),
40
   @LegacyIndex(name = "cov-paid", converted = "bocip_surchrg_dtl_cov_paid", components = 
41
   {
42
      @LegacyIndexComponent(fieldName = "cover-to"),
43
      @LegacyIndexComponent(fieldName = "paid-surcharge")
44
   }),
45
   @LegacyIndex(name = "cover-period", converted = "bocip_surchrg_dtl_cover_period", components = 
46
   {
47
      @LegacyIndexComponent(fieldName = "policy-no"),
48
      @LegacyIndexComponent(fieldName = "seq-no"),
49
      @LegacyIndexComponent(fieldName = "cover-fr"),
50
      @LegacyIndexComponent(fieldName = "cover-to"),
51
      @LegacyIndexComponent(fieldName = "plan-no"),
52
      @LegacyIndexComponent(fieldName = "cert-no"),
53
      @LegacyIndexComponent(fieldName = "surchg-status")
54
   }),
55
   @LegacyIndex(name = "idx-partab", converted = "bocip_surchrg_dtl_idx_partab", components = 
56
   {
57
      @LegacyIndexComponent(fieldName = "policy-no"),
58
      @LegacyIndexComponent(fieldName = "cert-no"),
59
      @LegacyIndexComponent(fieldName = "cal-surcharge"),
60
      @LegacyIndexComponent(fieldName = "cover-to")
61
   }),
62
   @LegacyIndex(name = "mpfadate", converted = "bocip_surchrg_dtl_mpfadate", components = 
63
   {
64
      @LegacyIndexComponent(fieldName = "sec-notify-mpfa-date"),
65
      @LegacyIndexComponent(fieldName = "first-pay-date"),
66
      @LegacyIndexComponent(fieldName = "cal-surcharge"),
67
      @LegacyIndexComponent(fieldName = "surchg-status")
68
   }),
69
   @LegacyIndex(name = "pol-cert", converted = "bocip_surchrg_dtl_pol_cert", components = 
70
   {
71
      @LegacyIndexComponent(fieldName = "policy-no"),
72
      @LegacyIndexComponent(fieldName = "seq-no"),
73
      @LegacyIndexComponent(fieldName = "cover-to"),
74
      @LegacyIndexComponent(fieldName = "plan-no"),
75
      @LegacyIndexComponent(fieldName = "cert-no"),
76
      @LegacyIndexComponent(fieldName = "surchg-status")
77
   }),
78
   @LegacyIndex(name = "sch-ecode", converted = "bocip_surchrg_dtl_sch_ecode", components = 
79
   {
80
      @LegacyIndexComponent(fieldName = "policy-no"),
81
      @LegacyIndexComponent(fieldName = "seq-no"),
82
      @LegacyIndexComponent(fieldName = "cover-fr"),
83
      @LegacyIndexComponent(fieldName = "cover-to"),
84
      @LegacyIndexComponent(fieldName = "first-notice-date")
85
   }),
86
   @LegacyIndex(name = "sts-cal", converted = "bocip_surchrg_dtl_sts_cal", components = 
87
   {
88
      @LegacyIndexComponent(fieldName = "policy-no"),
89
      @LegacyIndexComponent(fieldName = "seq-no"),
90
      @LegacyIndexComponent(fieldName = "cover-to"),
91
      @LegacyIndexComponent(fieldName = "plan-no"),
92
      @LegacyIndexComponent(fieldName = "cert-no"),
93
      @LegacyIndexComponent(fieldName = "surchg-status"),
94
      @LegacyIndexComponent(fieldName = "cal-surcharge")
95
   }),
96
   @LegacyIndex(name = "third--mpfa-date", converted = "bocip_surchrg_dtl_third_mpfa_date", components = 
97
   {
98
      @LegacyIndexComponent(fieldName = "third-notify-mpfa-date"),
99
      @LegacyIndexComponent(fieldName = "sec-pay-date"),
100
      @LegacyIndexComponent(fieldName = "cal-surcharge"),
101
      @LegacyIndexComponent(fieldName = "surchg-status")
102
   })
103
})
104
public class BocipSurchrgDtlImpl
105
implements Serializable,
106
           Persistable,
107
           BocipSurchrgDtl
108
{
109
   /** Surrogate primary key */
110
   private Long id = null;
111

    
112
   /** Scheme No.; 9 digits + 2 check digits */
113
   @LegacyField(fieldId = 1, name = "policy-no", format = "X(11)", columnLabel = "Scheme No.", label = "Scheme No.", mandatory = true)
114
   private final character policyNo;
115

    
116
   /** Seq No.; Company branch code. */
117
   @LegacyField(fieldId = 2, name = "seq-no", format = ">>9", initial = "0", label = "Seq No.")
118
   private final integer seqNo;
119

    
120
   /** Cover from; Date which contribution covered from. */
121
   @LegacyField(fieldId = 3, name = "cover-fr", format = "99/99/9999", initial = "?", label = "Cover from")
122
   private final date coverFr;
123

    
124
   /** Cover To; Date which contribution cover to. */
125
   @LegacyField(fieldId = 4, name = "cover-to", format = "99/99/9999", initial = "?", label = "Cover To")
126
   private final date coverTo;
127

    
128
   /** First pay end date; First Payment End date */
129
   @LegacyField(fieldId = 5, name = "first-pay-date", format = "99/99/9999", initial = "?", columnLabel = "First pay end date", label = "First pay end date")
130
   private final date firstPayDate;
131

    
132
   /** First pay surcharge; First payment Surcharge % */
133
   @LegacyField(fieldId = 6, name = "first-pay-sur%", format = ">>9.99", initial = "0", columnLabel = "First pay surcharge", label = "First pay surcharge")
134
   private final decimal firstPaySurPercent;
135

    
136
   /** Second pay end date; second payment end date */
137
   @LegacyField(fieldId = 7, name = "sec-pay-date", format = "99/99/9999", columnLabel = "Second pay end date", label = "Second pay end date")
138
   private final date secPayDate;
139

    
140
   /** Second pay surcharge; Second payment surcharge */
141
   @LegacyField(fieldId = 8, name = "sec-pay-sur%", format = ">>9.99", initial = "0", columnLabel = "Second pay surcharge", label = "Second pay surcharge")
142
   private final decimal secPaySurPercent;
143

    
144
   /** Plan# */
145
   @LegacyField(fieldId = 9, name = "plan-no", format = "X(4)", label = "Plan#")
146
   private final character planNo;
147

    
148
   /** Certificate No. */
149
   @LegacyField(fieldId = 10, name = "cert-no", format = ">>>>9", initial = "0", label = "Certificate No.", mandatory = true)
150
   private final integer certNo;
151

    
152
   /** Cont. Amount; EE cont. + ER cont. (exclude admin. charge) */
153
   @LegacyField(fieldId = 11, name = "cont-amount", format = ">>>,>>>,>>9.99", initial = "0", columnLabel = "Cont. Amount", label = "Cont. Amount")
154
   private final decimal contAmount;
155

    
156
   /** Paid Surcharge; paid surcharge amount */
157
   @LegacyField(fieldId = 12, name = "paid-surcharge", format = ">>>,>>>,>>9.99", initial = "0", columnLabel = "Paid Surcharge", label = "Paid Surcharge")
158
   private final decimal paidSurcharge;
159

    
160
   /**
161
    * Calculated Surcharge; cont. amount x surcharge% x (first or second payment date -
162
    * contribution day) / 356 days
163
    */
164
   @LegacyField(fieldId = 13, name = "cal-surcharge", format = ">>>,>>>,>>9.99", initial = "0", columnLabel = "Calculated Surcharge", label = "Calculated Surcharge")
165
   private final decimal calSurcharge;
166

    
167
   /** 2nd Notification to MPFA Date; 2nd Notification to MPFA Date */
168
   @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")
169
   private final date secNotifyMpfaDate;
170

    
171
   /** 3rd Notification to MPFA Date; 3rd Notification to MPFA Date */
172
   @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")
173
   private final date thirdNotifyMpfaDate;
174

    
175
   /** Surcharge Status */
176
   @LegacyField(fieldId = 16, name = "surchg-status", format = "X(1)", columnLabel = "Surcharge Status", label = "Surcharge Status")
177
   private final character surchgStatus;
178

    
179
   /**
180
    * Batch No; Contribution Update Batch running no / bill no. self bill: batch-no auto-bill :
181
    * bill no
182
    */
183
   @LegacyField(fieldId = 17, name = "batch-no", format = "X(12)", columnLabel = "Batch No", label = "Batch No")
184
   private final character batchNo;
185

    
186
   /**
187
    * Policy Count; Recid for this policy+branch+covering period in the batch. This recid together
188
    * with batch no. will duplicate in cont-upd-dtl file. format: 'G' +nnnnnnnnn where 'G' is a
189
    * hard coded prefix to avoid duplicate record after conversion (since this field is an integer
190
    * in the TG version) and n is a 9 digits sequence number
191
    */
192
   @LegacyField(fieldId = 18, name = "pol-cnt", format = "X(10)", columnLabel = "Policy Count", label = "Policy Count")
193
   private final character polCnt;
194

    
195
   /** MPFA first notice date; MPFA first notice date */
196
   @LegacyField(fieldId = 19, name = "first-notice-date", format = "99/99/9999", initial = "?", columnLabel = "MPFA first notice date", label = "MPFA first notice date")
197
   private final date firstNoticeDate;
198

    
199
   /** Surcharge Factor; Surcharge Factor */
200
   @LegacyField(fieldId = 20, name = "surchg-factor", format = ">>9.99999", initial = "0", columnLabel = "Surcharge Factor", label = "Surcharge Factor")
201
   private final decimal surchgFactor;
202

    
203
   /**
204
    * 2nd Surcharge Factor; 2nd Surcharge Factor it can only be updated after the 2nd Notification
205
    * to MPFA has been generated
206
    */
207
   @LegacyField(fieldId = 21, name = "sec-surchg-factor", format = ">>9.99999", initial = "0", columnLabel = "2nd Surcharge Factor", label = "2nd Surcharge Factor")
208
   private final decimal secSurchgFactor;
209

    
210
   /**
211
    * Default constructor.
212
    */
213
   public BocipSurchrgDtlImpl()
214
   {
215
      policyNo = new character("");
216
      seqNo = new integer(0);
217
      coverFr = new date();
218
      coverTo = new date();
219
      firstPayDate = new date();
220
      firstPaySurPercent = new decimal(0, 2);
221
      secPayDate;
222
      secPaySurPercent = new decimal(0, 2);
223
      planNo = new character("");
224
      certNo = new integer(0);
225
      contAmount = new decimal(0, 2);
226
      paidSurcharge = new decimal(0, 2);
227
      calSurcharge = new decimal(0, 2);
228
      secNotifyMpfaDate = new date();
229
      thirdNotifyMpfaDate = new date();
230
      surchgStatus = new character("");
231
      batchNo = new character("");
232
      polCnt = new character("");
233
      firstNoticeDate = new date();
234
      surchgFactor = new decimal(0, 5);
235
      secSurchgFactor = new decimal(0, 5);
236
   }
237

    
238
   /**
239
    * Make a deep copy of the current DMO instance and return it.
240
    * 
241
    * @return  A new instance of this class whose data is identical to that of this instance.
242
    */
243
   public Undoable deepCopy()
244
   {
245
      Undoable copy = new BocipSurchrgDtlImpl();
246
      copy.assign(this);
247
      return copy;
248
   }
249

    
250
   /**
251
    * Modify the contained data of the instance to copy the instance data from the given, backup
252
    * instance.
253
    * 
254
    * @param   old
255
    *          The backup instance from which to copy data.
256
    */
257
   public void assign(Undoable old)
258
   {
259
      BocipSurchrgDtlImpl from = (BocipSurchrgDtlImpl) old;
260
      setId(from.id);
261
      setPolicyNo(from.policyNo);
262
      setSeqNo(from.seqNo);
263
      setCoverFr(from.coverFr);
264
      setCoverTo(from.coverTo);
265
      setFirstPayDate(from.firstPayDate);
266
      setFirstPaySurPercent(from.firstPaySurPercent);
267
      setSecPayDate(from.secPayDate);
268
      setSecPaySurPercent(from.secPaySurPercent);
269
      setPlanNo(from.planNo);
270
      setCertNo(from.certNo);
271
      setContAmount(from.contAmount);
272
      setPaidSurcharge(from.paidSurcharge);
273
      setCalSurcharge(from.calSurcharge);
274
      setSecNotifyMpfaDate(from.secNotifyMpfaDate);
275
      setThirdNotifyMpfaDate(from.thirdNotifyMpfaDate);
276
      setSurchgStatus(from.surchgStatus);
277
      setBatchNo(from.batchNo);
278
      setPolCnt(from.polCnt);
279
      setFirstNoticeDate(from.firstNoticeDate);
280
      setSurchgFactor(from.surchgFactor);
281
      setSecSurchgFactor(from.secSurchgFactor);
282
   }
283

    
284
   /**
285
    * Getter: Surrogate primary key
286
    * 
287
    * @return  Primary key
288
    */
289
   public Long getId()
290
   {
291
      return id;
292
   }
293

    
294
   /**
295
    * Setter: Surrogate primary key
296
    * 
297
    * @param   id
298
    *          Primary key
299
    */
300
   public void setId(Long id)
301
   {
302
      this.id = id;
303
   }
304

    
305
   /**
306
    * Getter: 9 digits + 2 check digits
307
    * 
308
    * @return  Scheme No.
309
    */
310
   public character getPolicyNo()
311
   {
312
      return (new character(policyNo));
313
   }
314

    
315
   /**
316
    * Setter: 9 digits + 2 check digits
317
    * 
318
    * @param   policyNo
319
    *          Scheme No.
320
    */
321
   public void setPolicyNo(Text policyNo)
322
   {
323
      this.policyNo.assign(policyNo, true);
324
   }
325

    
326
   /**
327
    * Getter: Company branch code.
328
    * 
329
    * @return  Seq No.
330
    */
331
   public integer getSeqNo()
332
   {
333
      return (new integer(seqNo));
334
   }
335

    
336
   /**
337
    * Setter: Company branch code.
338
    * 
339
    * @param   seqNo
340
    *          Seq No.
341
    */
342
   public void setSeqNo(NumberType seqNo)
343
   {
344
      this.seqNo.assign(seqNo, true);
345
   }
346

    
347
   /**
348
    * Getter: Date which contribution covered from.
349
    * 
350
    * @return  Cover from
351
    */
352
   public date getCoverFr()
353
   {
354
      return (new date(coverFr));
355
   }
356

    
357
   /**
358
    * Setter: Date which contribution covered from.
359
    * 
360
    * @param   coverFr
361
    *          Cover from
362
    */
363
   public void setCoverFr(date coverFr)
364
   {
365
      this.coverFr.assign(coverFr, true);
366
   }
367

    
368
   /**
369
    * Getter: Date which contribution cover to.
370
    * 
371
    * @return  Cover To
372
    */
373
   public date getCoverTo()
374
   {
375
      return (new date(coverTo));
376
   }
377

    
378
   /**
379
    * Setter: Date which contribution cover to.
380
    * 
381
    * @param   coverTo
382
    *          Cover To
383
    */
384
   public void setCoverTo(date coverTo)
385
   {
386
      this.coverTo.assign(coverTo, true);
387
   }
388

    
389
   /**
390
    * Getter: First Payment End date
391
    * 
392
    * @return  First pay end date
393
    */
394
   public date getFirstPayDate()
395
   {
396
      return (new date(firstPayDate));
397
   }
398

    
399
   /**
400
    * Setter: First Payment End date
401
    * 
402
    * @param   firstPayDate
403
    *          First pay end date
404
    */
405
   public void setFirstPayDate(date firstPayDate)
406
   {
407
      this.firstPayDate.assign(firstPayDate, true);
408
   }
409

    
410
   /**
411
    * Getter: First payment Surcharge %
412
    * 
413
    * @return  First pay surcharge
414
    */
415
   public decimal getFirstPaySurPercent()
416
   {
417
      return (new decimal(firstPaySurPercent));
418
   }
419

    
420
   /**
421
    * Setter: First payment Surcharge %
422
    * 
423
    * @param   firstPaySurPercent
424
    *          First pay surcharge
425
    */
426
   public void setFirstPaySurPercent(NumberType firstPaySurPercent)
427
   {
428
      this.firstPaySurPercent.assign(firstPaySurPercent, true);
429
   }
430

    
431
   /**
432
    * Getter: second payment end date
433
    * 
434
    * @return  Second pay end date
435
    */
436
   public date getSecPayDate()
437
   {
438
      return (new date(secPayDate));
439
   }
440

    
441
   /**
442
    * Setter: second payment end date
443
    * 
444
    * @param   secPayDate
445
    *          Second pay end date
446
    */
447
   public void setSecPayDate(date secPayDate)
448
   {
449
      this.secPayDate.assign(secPayDate, true);
450
   }
451

    
452
   /**
453
    * Getter: Second payment surcharge
454
    * 
455
    * @return  Second pay surcharge
456
    */
457
   public decimal getSecPaySurPercent()
458
   {
459
      return (new decimal(secPaySurPercent));
460
   }
461

    
462
   /**
463
    * Setter: Second payment surcharge
464
    * 
465
    * @param   secPaySurPercent
466
    *          Second pay surcharge
467
    */
468
   public void setSecPaySurPercent(NumberType secPaySurPercent)
469
   {
470
      this.secPaySurPercent.assign(secPaySurPercent, true);
471
   }
472

    
473
   /**
474
    * Getter: Plan#
475
    * 
476
    * @return  Plan#
477
    */
478
   public character getPlanNo()
479
   {
480
      return (new character(planNo));
481
   }
482

    
483
   /**
484
    * Setter: Plan#
485
    * 
486
    * @param   planNo
487
    *          Plan#
488
    */
489
   public void setPlanNo(Text planNo)
490
   {
491
      this.planNo.assign(planNo, true);
492
   }
493

    
494
   /**
495
    * Getter: Certificate No.
496
    * 
497
    * @return  Certificate No.
498
    */
499
   public integer getCertNo()
500
   {
501
      return (new integer(certNo));
502
   }
503

    
504
   /**
505
    * Setter: Certificate No.
506
    * 
507
    * @param   certNo
508
    *          Certificate No.
509
    */
510
   public void setCertNo(NumberType certNo)
511
   {
512
      this.certNo.assign(certNo, true);
513
   }
514

    
515
   /**
516
    * Getter: EE cont. + ER cont. (exclude admin. charge)
517
    * 
518
    * @return  Cont. Amount
519
    */
520
   public decimal getContAmount()
521
   {
522
      return (new decimal(contAmount));
523
   }
524

    
525
   /**
526
    * Setter: EE cont. + ER cont. (exclude admin. charge)
527
    * 
528
    * @param   contAmount
529
    *          Cont. Amount
530
    */
531
   public void setContAmount(NumberType contAmount)
532
   {
533
      this.contAmount.assign(contAmount, true);
534
   }
535

    
536
   /**
537
    * Getter: paid surcharge amount
538
    * 
539
    * @return  Paid Surcharge
540
    */
541
   public decimal getPaidSurcharge()
542
   {
543
      return (new decimal(paidSurcharge));
544
   }
545

    
546
   /**
547
    * Setter: paid surcharge amount
548
    * 
549
    * @param   paidSurcharge
550
    *          Paid Surcharge
551
    */
552
   public void setPaidSurcharge(NumberType paidSurcharge)
553
   {
554
      this.paidSurcharge.assign(paidSurcharge, true);
555
   }
556

    
557
   /**
558
    * Getter: cont. amount x surcharge% x (first or second payment date - contribution day) / 356
559
    * days
560
    * 
561
    * @return  Calculated Surcharge
562
    */
563
   public decimal getCalSurcharge()
564
   {
565
      return (new decimal(calSurcharge));
566
   }
567

    
568
   /**
569
    * Setter: cont. amount x surcharge% x (first or second payment date - contribution day) / 356
570
    * days
571
    * 
572
    * @param   calSurcharge
573
    *          Calculated Surcharge
574
    */
575
   public void setCalSurcharge(NumberType calSurcharge)
576
   {
577
      this.calSurcharge.assign(calSurcharge, true);
578
   }
579

    
580
   /**
581
    * Getter: 2nd Notification to MPFA Date
582
    * 
583
    * @return  2nd Notification to MPFA Date
584
    */
585
   public date getSecNotifyMpfaDate()
586
   {
587
      return (new date(secNotifyMpfaDate));
588
   }
589

    
590
   /**
591
    * Setter: 2nd Notification to MPFA Date
592
    * 
593
    * @param   secNotifyMpfaDate
594
    *          2nd Notification to MPFA Date
595
    */
596
   public void setSecNotifyMpfaDate(date secNotifyMpfaDate)
597
   {
598
      this.secNotifyMpfaDate.assign(secNotifyMpfaDate, true);
599
   }
600

    
601
   /**
602
    * Getter: 3rd Notification to MPFA Date
603
    * 
604
    * @return  3rd Notification to MPFA Date
605
    */
606
   public date getThirdNotifyMpfaDate()
607
   {
608
      return (new date(thirdNotifyMpfaDate));
609
   }
610

    
611
   /**
612
    * Setter: 3rd Notification to MPFA Date
613
    * 
614
    * @param   thirdNotifyMpfaDate
615
    *          3rd Notification to MPFA Date
616
    */
617
   public void setThirdNotifyMpfaDate(date thirdNotifyMpfaDate)
618
   {
619
      this.thirdNotifyMpfaDate.assign(thirdNotifyMpfaDate, true);
620
   }
621

    
622
   /**
623
    * Getter: Surcharge Status
624
    * 
625
    * @return  Surcharge Status
626
    */
627
   public character getSurchgStatus()
628
   {
629
      return (new character(surchgStatus));
630
   }
631

    
632
   /**
633
    * Setter: Surcharge Status
634
    * 
635
    * @param   surchgStatus
636
    *          Surcharge Status
637
    */
638
   public void setSurchgStatus(Text surchgStatus)
639
   {
640
      this.surchgStatus.assign(surchgStatus, true);
641
   }
642

    
643
   /**
644
    * Getter: Contribution Update Batch running no / bill no. self bill: batch-no auto-bill : bill
645
    * no
646
    * 
647
    * @return  Batch No
648
    */
649
   public character getBatchNo()
650
   {
651
      return (new character(batchNo));
652
   }
653

    
654
   /**
655
    * Setter: Contribution Update Batch running no / bill no. self bill: batch-no auto-bill : bill
656
    * no
657
    * 
658
    * @param   batchNo
659
    *          Batch No
660
    */
661
   public void setBatchNo(Text batchNo)
662
   {
663
      this.batchNo.assign(batchNo, true);
664
   }
665

    
666
   /**
667
    * Getter: Recid for this policy+branch+covering period in the batch. This recid together with
668
    * batch no. will duplicate in cont-upd-dtl file. format: 'G' +nnnnnnnnn where 'G' is a hard
669
    * coded prefix to avoid duplicate record after conversion (since this field is an integer in
670
    * the TG version) and n is a 9 digits sequence number
671
    * 
672
    * @return  Policy Count
673
    */
674
   public character getPolCnt()
675
   {
676
      return (new character(polCnt));
677
   }
678

    
679
   /**
680
    * Setter: Recid for this policy+branch+covering period in the batch. This recid together with
681
    * batch no. will duplicate in cont-upd-dtl file. format: 'G' +nnnnnnnnn where 'G' is a hard
682
    * coded prefix to avoid duplicate record after conversion (since this field is an integer in
683
    * the TG version) and n is a 9 digits sequence number
684
    * 
685
    * @param   polCnt
686
    *          Policy Count
687
    */
688
   public void setPolCnt(Text polCnt)
689
   {
690
      this.polCnt.assign(polCnt, true);
691
   }
692

    
693
   /**
694
    * Getter: MPFA first notice date
695
    * 
696
    * @return  MPFA first notice date
697
    */
698
   public date getFirstNoticeDate()
699
   {
700
      return (new date(firstNoticeDate));
701
   }
702

    
703
   /**
704
    * Setter: MPFA first notice date
705
    * 
706
    * @param   firstNoticeDate
707
    *          MPFA first notice date
708
    */
709
   public void setFirstNoticeDate(date firstNoticeDate)
710
   {
711
      this.firstNoticeDate.assign(firstNoticeDate, true);
712
   }
713

    
714
   /**
715
    * Getter: Surcharge Factor
716
    * 
717
    * @return  Surcharge Factor
718
    */
719
   public decimal getSurchgFactor()
720
   {
721
      return (new decimal(surchgFactor));
722
   }
723

    
724
   /**
725
    * Setter: Surcharge Factor
726
    * 
727
    * @param   surchgFactor
728
    *          Surcharge Factor
729
    */
730
   public void setSurchgFactor(NumberType surchgFactor)
731
   {
732
      this.surchgFactor.assign(surchgFactor, true);
733
   }
734

    
735
   /**
736
    * Getter: 2nd Surcharge Factor it can only be updated after the 2nd Notification to MPFA has
737
    * been generated
738
    * 
739
    * @return  2nd Surcharge Factor
740
    */
741
   public decimal getSecSurchgFactor()
742
   {
743
      return (new decimal(secSurchgFactor));
744
   }
745

    
746
   /**
747
    * Setter: 2nd Surcharge Factor it can only be updated after the 2nd Notification to MPFA has
748
    * been generated
749
    * 
750
    * @param   secSurchgFactor
751
    *          2nd Surcharge Factor
752
    */
753
   public void setSecSurchgFactor(NumberType secSurchgFactor)
754
   {
755
      this.secSurchgFactor.assign(secSurchgFactor, true);
756
   }
757
}