Source Code Cross Referenced for PaymentGroup.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » pdp » bo » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.module.pdp.bo 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * Copyright 2007 The Kuali Foundation.
003:         * 
004:         * Licensed under the Educational Community License, Version 1.0 (the "License");
005:         * you may not use this file except in compliance with the License.
006:         * You may obtain a copy of the License at
007:         * 
008:         * http://www.opensource.org/licenses/ecl1.php
009:         * 
010:         * Unless required by applicable law or agreed to in writing, software
011:         * distributed under the License is distributed on an "AS IS" BASIS,
012:         * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013:         * See the License for the specific language governing permissions and
014:         * limitations under the License.
015:         */
016:        package org.kuali.module.pdp.bo;
017:
018:        import java.io.Serializable;
019:        import java.math.BigDecimal;
020:        import java.sql.Timestamp;
021:        import java.util.ArrayList;
022:        import java.util.Date;
023:        import java.util.Iterator;
024:        import java.util.List;
025:
026:        import org.apache.commons.lang.builder.EqualsBuilder;
027:        import org.apache.commons.lang.builder.HashCodeBuilder;
028:        import org.apache.commons.lang.builder.ToStringBuilder;
029:        import org.apache.ojb.broker.PersistenceBroker;
030:        import org.apache.ojb.broker.PersistenceBrokerAware;
031:        import org.apache.ojb.broker.PersistenceBrokerException;
032:
033:        public class PaymentGroup implements  Serializable,
034:                PersistenceBrokerAware {
035:            private static BigDecimal zero = new BigDecimal(0);
036:
037:            private Integer id; // PMT_GRP_ID
038:            private String payeeName; // PMT_PAYEE_NM
039:            private String payeeId; // PAYEE_ID
040:            private String payeeIdTypeCd; // PAYEE_ID_TYP_CD
041:            private String alternatePayeeId; // ALTRNT_PAYEE_ID
042:            private String alternatePayeeIdTypeCd; // ALTRNT_PAYEE_ID_TYP_CD
043:            private String payeeOwnerCd; // PAYEE_OWNR_CD
044:            private String customerInstitutionNumber; // CUST_IU_NBR
045:            private String line1Address; // PMT_LN1_ADDR
046:            private String line2Address; // PMT_LN2_ADDR
047:            private String line3Address; // PMT_LN3_ADDR
048:            private String line4Address; // PMT_LN4_ADDR
049:            private String city; // PMT_CTY_NM
050:            private String state; // PMT_ST_NM
051:            private String country; // PMT_CNTRY_NM
052:            private String zipCd; // PMT_ZIP_CD
053:            private Boolean campusAddress; // CMP_ADDR_IND
054:            private Timestamp paymentDate; // PMT_DT DATE
055:            private Boolean pymtAttachment; // PMT_ATTCHMNT_IND
056:            private Boolean pymtSpecialHandling; // PMT_SPCL_HANDLG_IND
057:            private Boolean taxablePayment; // PMT_TXBL_IND
058:            private Boolean nraPayment; // NRA_PMT_IND
059:            private Boolean processImmediate; // PROC_IMD_IND
060:            private Boolean combineGroups; // PMT_GRP_CMB_IND
061:            private String achBankRoutingNbr; // ACH_BNK_RTNG_NBR
062:            private String adviceEmailAddress; // ADV_EMAIL_ADDR
063:            private Boolean employeeIndicator; // EMP_IND
064:            private String creditMemoNbr; // PMT_CRDT_MEMO_NBR
065:            private BigDecimal creditMemoAmount; // PMT_CRDT_MEMO_AMT
066:            private Integer disbursementNbr; // DISB_NBR
067:            private Timestamp disbursementDate; // DISB_TS
068:            private String physCampusProcessCd; // PHYS_CMP_PROC_CD
069:            private String sortValue; // PMT_SORT_ORD_VAL
070:            private String achAccountType; // CUST_ACCT_TYP_CD
071:            private Timestamp epicPaymentCancelledExtractedDate; // PDP_EPIC_PMT_CNCL_EXTRT_TS
072:            private Timestamp epicPaymentPaidExtractedDate; // PDP_EPIC_PMT_PD_EXTRT_TS
073:            private Timestamp adviceEmailSentDate; // ADV_EMAIL_SNT_TS
074:            private Timestamp lastUpdate; // LST_UPDT_TS
075:            private Integer version; // VER_NBR
076:
077:            private Integer batchId;
078:            private Batch batch; // PMT_BATCH_ID
079:
080:            private Integer processId;
081:            private PaymentProcess process; // PROC_ID
082:
083:            private String paymentStatusCode;
084:            private PaymentStatus paymentStatus; // PMT_STAT_CD
085:
086:            private String disbursementTypeCode;
087:            private DisbursementType disbursementType; // DISB_TYP_CD
088:
089:            private Integer bankId;
090:            private Bank bank; // BNK_ID
091:
092:            private AchAccountNumber achAccountNumber;
093:
094:            private List paymentGroupHistory = new ArrayList();
095:
096:            private List paymentDetails = new ArrayList();
097:
098:            public PaymentGroup() {
099:                super ();
100:            }
101:
102:            public boolean isDailyReportSpecialHandling() {
103:                return pymtSpecialHandling.booleanValue()
104:                        && !processImmediate.booleanValue();
105:            }
106:
107:            public boolean isDailyReportAttachment() {
108:                return !pymtSpecialHandling && !processImmediate
109:                        && pymtAttachment;
110:            }
111:
112:            public String getDailyReportSortOrder() {
113:                if (processImmediate) {
114:                    return "Immediate       ";
115:                } else if (pymtSpecialHandling) {
116:                    return "Special Handling";
117:                } else if (pymtAttachment) {
118:                    return "Attachment      ";
119:                } else {
120:                    return "Other           ";
121:                }
122:            }
123:
124:            public String getPaymentStatusCode() {
125:                return paymentStatusCode;
126:            }
127:
128:            /**
129:             * WIDTH MUST BE LESS THAN THE # OF SPACES
130:             * 
131:             * @param width
132:             * @param val
133:             * @return
134:             */
135:            private String getWidthString(int width, String val) {
136:                return (val + "                                        ")
137:                        .substring(0, width - 1);
138:            }
139:
140:            public String getSortGroupId() {
141:                if (getProcessImmediate().booleanValue()) {
142:                    return "B";
143:                } else if (getPymtSpecialHandling().booleanValue()) {
144:                    return "C";
145:                } else if (getPymtAttachment().booleanValue()) {
146:                    return "D";
147:                } else {
148:                    return "E";
149:                }
150:            }
151:
152:            private boolean booleanValue(Boolean b) {
153:                boolean bv = false;
154:                if (b != null) {
155:                    bv = b.booleanValue();
156:                }
157:                return bv;
158:            }
159:
160:            /**
161:             * This field determines the sort order for the format. It packs all the relevant data into one field to make a field that order
162:             * by can use
163:             * 
164:             * @return sort order string
165:             */
166:            public String getFormatSortField() {
167:                StringBuffer sb = new StringBuffer();
168:
169:                sb.append(getSortGroupId());
170:
171:                CustomerProfile cp = this .getBatch().getCustomerProfile();
172:                sb.append(cp.getChartCode());
173:                sb.append(getWidthString(4, cp.getOrgCode()));
174:                sb.append(getWidthString(4, cp.getSubUnitCode()));
175:
176:                if ("E".equals(getSortGroupId())) {
177:                    sb.append(this .getPayeeId());
178:                    sb.append(this .getPayeeIdTypeCd());
179:                } else {
180:                    sb.append(this .getPayeeName());
181:                }
182:
183:                return sb.toString();
184:            }
185:
186:            public int getNoteLines() {
187:                int count = 0;
188:                for (Iterator iter = this .getPaymentDetails().iterator(); iter
189:                        .hasNext();) {
190:                    PaymentDetail element = (PaymentDetail) iter.next();
191:                    count++; // Add a line for the invoice #
192:                    count = count + element.getNotes().size();
193:                }
194:                return count;
195:            }
196:
197:            /**
198:             * Get the total of all the detail items
199:             * 
200:             * @return
201:             */
202:            public BigDecimal getNetPaymentAmount() {
203:                BigDecimal amt = new BigDecimal(0);
204:                for (Iterator iter = this .getPaymentDetails().iterator(); iter
205:                        .hasNext();) {
206:                    PaymentDetail element = (PaymentDetail) iter.next();
207:                    amt = amt.add(element.getNetPaymentAmount());
208:                }
209:                return amt;
210:            }
211:
212:            /**
213:             * @hibernate.set name="paymentDetail"
214:             * @hibernate.collection-key column="pmt_grp_id"
215:             * @hibernate.collection-one-to-many class="edu.iu.uis.pdp.bo.PaymentDetail"
216:             */
217:            public List<PaymentDetail> getPaymentDetails() {
218:                return paymentDetails;
219:            }
220:
221:            public void setPaymentDetails(List paymentDetail) {
222:                this .paymentDetails = paymentDetail;
223:            }
224:
225:            public void addPaymentDetails(PaymentDetail pgh) {
226:                pgh.setPaymentGroup(this );
227:                paymentDetails.add(pgh);
228:            }
229:
230:            public void deletePaymentDetails(PaymentDetail pgh) {
231:                paymentDetails.remove(pgh);
232:            }
233:
234:            /**
235:             * @hibernate.set name="paymentGroupHistory"
236:             * @hibernate.collection-key column="pmt_grp_id"
237:             * @hibernate.collection-one-to-many class="edu.iu.uis.pdp.bo.PaymentGroupHistory"
238:             */
239:            public List getPaymentGroupHistory() {
240:                return paymentGroupHistory;
241:            }
242:
243:            public void setPaymentGroupHistory(List paymentGroupHistory) {
244:                this .paymentGroupHistory = paymentGroupHistory;
245:            }
246:
247:            public void addPaymentGroupHistory(PaymentGroupHistory pd) {
248:                pd.setPaymentGroup(this );
249:                paymentGroupHistory.add(pd);
250:            }
251:
252:            public void deletePaymentGroupHistory(PaymentGroupHistory pd) {
253:                paymentGroupHistory.remove(pd);
254:            }
255:
256:            /**
257:             * @hibernate.id column="PMT_GRP_ID" generator-class="sequence"
258:             * @hibernate.generator-param name="sequence" value="PDP.PDP_PMT_GRP_ID_SEQ"
259:             * @return
260:             */
261:            public Integer getId() {
262:                return id;
263:            }
264:
265:            /**
266:             * @hibernate.one-to-one class="edu.iu.uis.pdp.bo.AchAccountNumber"
267:             * @return
268:             */
269:            public AchAccountNumber getAchAccountNumber() {
270:                return achAccountNumber;
271:            }
272:
273:            public void setAchAccountNumber(AchAccountNumber aan) {
274:                this .achAccountNumber = aan;
275:            }
276:
277:            public String getSortValue() {
278:                return sortValue;
279:            }
280:
281:            public void setSortValue(String sortValue) {
282:                this .sortValue = sortValue;
283:            }
284:
285:            /**
286:             * @hibernate.property column="PMT_CTY_NM" length="30"
287:             * @return Returns the city.
288:             */
289:            public String getCity() {
290:                return city;
291:            }
292:
293:            /**
294:             * @param city The city to set.
295:             */
296:            public void setCity(String city) {
297:                this .city = city;
298:            }
299:
300:            public Boolean getCombineGroups() {
301:                return combineGroups;
302:            }
303:
304:            public void setCombineGroups(Boolean combineGroups) {
305:                this .combineGroups = combineGroups;
306:            }
307:
308:            /**
309:             * @hibernate.property column="PMT_CNTRY_NM" length="30"
310:             * @return Returns the country.
311:             */
312:            public String getCountry() {
313:                return country;
314:            }
315:
316:            /**
317:             * @param country The country to set.
318:             */
319:            public void setCountry(String country) {
320:                this .country = country;
321:            }
322:
323:            /**
324:             * @hibernate.property column="PMT_ST_NM" length="30"
325:             * @return Returns the state.
326:             */
327:            public String getState() {
328:                return state;
329:            }
330:
331:            /**
332:             * @param state The state to set.
333:             */
334:            public void setState(String state) {
335:                this .state = state;
336:            }
337:
338:            /**
339:             * @return
340:             * @hibernate.version column="VER_NBR" not-null="true"
341:             */
342:            public Integer getVersion() {
343:                return version;
344:            }
345:
346:            /**
347:             * @return
348:             * @hibernate.property column="LST_UPDT_TS" length="7"
349:             */
350:            public Timestamp getLastUpdate() {
351:                return lastUpdate;
352:            }
353:
354:            /**
355:             * @return
356:             * @hibernate.property column="ACH_BNK_RTNG_NBR" length="9"
357:             */
358:            public String getAchBankRoutingNbr() {
359:                return achBankRoutingNbr;
360:            }
361:
362:            /**
363:             * @return
364:             * @hibernate.property column="ADV_EMAIL_ADDR" length="50"
365:             */
366:            public String getAdviceEmailAddress() {
367:                return adviceEmailAddress;
368:            }
369:
370:            /**
371:             * @return
372:             * @hibernate.property column="ALTRNT_PAYEE_ID" length="25"
373:             */
374:            public String getAlternatePayeeId() {
375:                return alternatePayeeId;
376:            }
377:
378:            /**
379:             * @return
380:             * @hibernate.property column="ALTRNT_PAYEE_ID_TYP_CD" length="2"
381:             */
382:            public String getAlternatePayeeIdTypeCd() {
383:                return alternatePayeeIdTypeCd;
384:            }
385:
386:            /**
387:             * @return
388:             * @hibernate.many-to-one column="BNK_ID" class="edu.iu.uis.pdp.bo.Bank" not-null="false"
389:             */
390:            public Bank getBank() {
391:                return bank;
392:            }
393:
394:            /**
395:             * @return
396:             * @hibernate.many-to-one column="PMT_BATCH_ID" class="edu.iu.uis.pdp.bo.Batch" not-null="true"
397:             */
398:            public Batch getBatch() {
399:                return batch;
400:            }
401:
402:            /**
403:             * @return
404:             * @hibernate.property column="CMP_ADDR_IND" type="yes_no"
405:             */
406:            public Boolean getCampusAddress() {
407:                return campusAddress;
408:            }
409:
410:            /**
411:             * @return
412:             * @hibernate.property column="PMT_CRDT_MEMO_AMT" length="14"
413:             */
414:            public BigDecimal getCreditMemoAmount() {
415:                return creditMemoAmount;
416:            }
417:
418:            /**
419:             * @return
420:             * @hibernate.property column="PMT_CRDT_MEMO_NBR" length="14"
421:             */
422:            public String getCreditMemoNbr() {
423:                return creditMemoNbr;
424:            }
425:
426:            public String getCustomerInstitutionNumber() {
427:                return customerInstitutionNumber;
428:            }
429:
430:            /**
431:             * @return
432:             * @hibernate.property column="DISB_TS" length="7"
433:             */
434:            public Timestamp getDisbursementDate() {
435:                return disbursementDate;
436:            }
437:
438:            /**
439:             * @return
440:             * @hibernate.property column="DISB_NBR" length="9"
441:             */
442:            public Integer getDisbursementNbr() {
443:                return disbursementNbr;
444:            }
445:
446:            /**
447:             * @return
448:             * @hibernate.many-to-one column="DISB_TYP_CD" class="edu.iu.uis.pdp.bo.DisbursementType" not-null="false"
449:             */
450:            public DisbursementType getDisbursementType() {
451:                return disbursementType;
452:            }
453:
454:            public Boolean getEmployeeIndicator() {
455:                return employeeIndicator;
456:            }
457:
458:            /**
459:             * @return
460:             * @hibernate.property column="PMT_LN1_ADDR" length="45"
461:             */
462:            public String getLine1Address() {
463:                return line1Address;
464:            }
465:
466:            /**
467:             * @return
468:             * @hibernate.property column="PMT_LN2_ADDR" length="45"
469:             */
470:            public String getLine2Address() {
471:                return line2Address;
472:            }
473:
474:            /**
475:             * @return
476:             * @hibernate.property column="PMT_LN3_ADDR" length="45"
477:             */
478:            public String getLine3Address() {
479:                return line3Address;
480:            }
481:
482:            /**
483:             * @return
484:             * @hibernate.property column="PMT_LN4_ADDR" length="45"
485:             */
486:            public String getLine4Address() {
487:                return line4Address;
488:            }
489:
490:            /**
491:             * @return
492:             * @hibernate.property column="NRA_PMT_IND" type="yes_no"
493:             */
494:            public Boolean getNraPayment() {
495:                return nraPayment;
496:            }
497:
498:            /**
499:             * @return
500:             * @hibernate.property column="PAYEE_ID" length="25"
501:             */
502:            public String getPayeeId() {
503:                return payeeId;
504:            }
505:
506:            /**
507:             * @return
508:             * @hibernate.property column="PAYEE_ID_TYP_CD" length="1"
509:             */
510:            public String getPayeeIdTypeCd() {
511:                return payeeIdTypeCd;
512:            }
513:
514:            /**
515:             * @return
516:             * @hibernate.property column="PMT_PAYEE_NM" length="40"
517:             */
518:            public String getPayeeName() {
519:                return payeeName;
520:            }
521:
522:            /**
523:             * @return
524:             * @hibernate.property column="PAYEE_OWNR_CD" length="2"
525:             */
526:            public String getPayeeOwnerCd() {
527:                return payeeOwnerCd;
528:            }
529:
530:            /**
531:             * @return
532:             * @hibernate.property column="PMT_DT"
533:             */
534:            public Timestamp getPaymentDate() {
535:                return paymentDate;
536:            }
537:
538:            /**
539:             * @return
540:             * @hibernate.many-to-one column="PMT_STAT_CD" class="edu.iu.uis.pdp.bo.PaymentStatus" not-null="true"
541:             */
542:            public PaymentStatus getPaymentStatus() {
543:                return paymentStatus;
544:            }
545:
546:            /**
547:             * @return
548:             * @hibernate.property column="PHYS_CMP_PROC_CD" length="2"
549:             */
550:            public String getPhysCampusProcessCd() {
551:                return physCampusProcessCd;
552:            }
553:
554:            /**
555:             * @return
556:             * @hibernate.many-to-one column="PROC_ID" class="edu.iu.uis.pdp.bo.PaymentProcess" not-null="false"
557:             */
558:            public PaymentProcess getProcess() {
559:                return process;
560:            }
561:
562:            /**
563:             * @return
564:             * @hibernate.property column="PROC_IMD_IND" type="yes_no" length="1"
565:             */
566:            public Boolean getProcessImmediate() {
567:                return processImmediate;
568:            }
569:
570:            /**
571:             * @return
572:             * @hibernate.property column="PMT_ATTCHMNT_IND" type="yes_no" length="1"
573:             */
574:            public Boolean getPymtAttachment() {
575:                return pymtAttachment;
576:            }
577:
578:            /**
579:             * @return
580:             * @hibernate.property column="PMT_SPCL_HANDLG_IND" type="yes_no" length="1"
581:             */
582:            public Boolean getPymtSpecialHandling() {
583:                return pymtSpecialHandling;
584:            }
585:
586:            /**
587:             * @return
588:             * @hibernate.property column="PMT_TXBL_IND" type="yes_no" length="1"
589:             */
590:            public Boolean getTaxablePayment() {
591:                return taxablePayment;
592:            }
593:
594:            /**
595:             * @return
596:             * @hibernate.property column="PMT_ZIP_CD" length="2"
597:             */
598:            public String getZipCd() {
599:                return zipCd;
600:            }
601:
602:            /**
603:             * @param integer
604:             */
605:            public void setAchBankRoutingNbr(String s) {
606:                achBankRoutingNbr = s;
607:            }
608:
609:            /**
610:             * @param string
611:             */
612:            public void setAdviceEmailAddress(String string) {
613:                adviceEmailAddress = string;
614:            }
615:
616:            /**
617:             * @param string
618:             */
619:            public void setAlternatePayeeId(String string) {
620:                alternatePayeeId = string;
621:            }
622:
623:            /**
624:             * @param string
625:             */
626:            public void setAlternatePayeeIdTypeCd(String string) {
627:                alternatePayeeIdTypeCd = string;
628:            }
629:
630:            /**
631:             * @param integer
632:             */
633:            public void setBank(Bank bank) {
634:                this .bank = bank;
635:            }
636:
637:            /**
638:             * @param integer
639:             */
640:            public void setBatch(Batch b) {
641:                batch = b;
642:            }
643:
644:            /**
645:             * @param boolean1
646:             */
647:            public void setCampusAddress(Boolean boolean1) {
648:                campusAddress = boolean1;
649:            }
650:
651:            /**
652:             * @param decimal
653:             */
654:            public void setCreditMemoAmount(BigDecimal decimal) {
655:                creditMemoAmount = decimal;
656:            }
657:
658:            /**
659:             * @param string
660:             */
661:            public void setCreditMemoNbr(String string) {
662:                creditMemoNbr = string;
663:            }
664:
665:            /**
666:             * @param string
667:             */
668:            public void setCustomerInstitutionNumber(String string) {
669:                customerInstitutionNumber = string;
670:            }
671:
672:            /**
673:             * @param timestamp
674:             */
675:            public void setDisbursementDate(Timestamp timestamp) {
676:                disbursementDate = timestamp;
677:            }
678:
679:            /**
680:             * @param integer
681:             */
682:            public void setDisbursementNbr(Integer integer) {
683:                disbursementNbr = integer;
684:            }
685:
686:            /**
687:             * @param string
688:             */
689:            public void setDisbursementType(DisbursementType dt) {
690:                disbursementType = dt;
691:            }
692:
693:            /**
694:             * @param integer
695:             */
696:            public void setId(Integer integer) {
697:                id = integer;
698:            }
699:
700:            /**
701:             * @param boolean1
702:             */
703:            public void setEmployeeIndicator(Boolean boolean1) {
704:                employeeIndicator = boolean1;
705:            }
706:
707:            /**
708:             * @param timestamp
709:             */
710:            public void setLastUpdate(Timestamp timestamp) {
711:                lastUpdate = timestamp;
712:            }
713:
714:            /**
715:             * @param string
716:             */
717:            public void setLine1Address(String string) {
718:                line1Address = string;
719:            }
720:
721:            /**
722:             * @param string
723:             */
724:            public void setLine2Address(String string) {
725:                line2Address = string;
726:            }
727:
728:            /**
729:             * @param string
730:             */
731:            public void setLine3Address(String string) {
732:                line3Address = string;
733:            }
734:
735:            /**
736:             * @param string
737:             */
738:            public void setLine4Address(String string) {
739:                line4Address = string;
740:            }
741:
742:            /**
743:             * @param boolean1
744:             */
745:            public void setNraPayment(Boolean boolean1) {
746:                nraPayment = boolean1;
747:            }
748:
749:            /**
750:             * @param string
751:             */
752:            public void setPayeeId(String string) {
753:                payeeId = string;
754:            }
755:
756:            /**
757:             * @param string
758:             */
759:            public void setPayeeIdTypeCd(String string) {
760:                payeeIdTypeCd = string;
761:            }
762:
763:            /**
764:             * @param string
765:             */
766:            public void setPayeeName(String string) {
767:                payeeName = string;
768:            }
769:
770:            /**
771:             * @param string
772:             */
773:            public void setPayeeOwnerCd(String string) {
774:                payeeOwnerCd = string;
775:            }
776:
777:            /**
778:             * @param timestamp
779:             */
780:            public void setPaymentDate(Timestamp timestamp) {
781:                paymentDate = timestamp;
782:            }
783:
784:            /**
785:             * @param string
786:             */
787:            public void setPaymentStatus(PaymentStatus stat) {
788:                paymentStatus = stat;
789:            }
790:
791:            /**
792:             * @param string
793:             */
794:            public void setPhysCampusProcessCd(String string) {
795:                physCampusProcessCd = string;
796:            }
797:
798:            /**
799:             * @param integer
800:             */
801:            public void setProcess(PaymentProcess p) {
802:                if (p != null) {
803:                    processId = p.getId();
804:                } else {
805:                    processId = null;
806:                }
807:                this .process = p;
808:            }
809:
810:            /**
811:             * @param boolean1
812:             */
813:            public void setProcessImmediate(Boolean boolean1) {
814:                processImmediate = boolean1;
815:            }
816:
817:            /**
818:             * @param boolean1
819:             */
820:            public void setPymtAttachment(Boolean boolean1) {
821:                pymtAttachment = boolean1;
822:            }
823:
824:            /**
825:             * @param boolean1
826:             */
827:            public void setTaxablePayment(Boolean boolean1) {
828:                taxablePayment = boolean1;
829:            }
830:
831:            /**
832:             * @param integer
833:             */
834:            public void setVersion(Integer integer) {
835:                version = integer;
836:            }
837:
838:            /**
839:             * @param string
840:             */
841:            public void setZipCd(String string) {
842:                zipCd = string;
843:            }
844:
845:            /**
846:             * @param string
847:             */
848:            public void setPymtSpecialHandling(Boolean pymtSpecialHandling) {
849:                this .pymtSpecialHandling = pymtSpecialHandling;
850:            }
851:
852:            public boolean equals(Object obj) {
853:                if (!(obj instanceof  PaymentGroup)) {
854:                    return false;
855:                }
856:                PaymentGroup o = (PaymentGroup) obj;
857:                return new EqualsBuilder().append(id, o.getId()).isEquals();
858:            }
859:
860:            public int hashCode() {
861:                return new HashCodeBuilder(61, 67).append(id).toHashCode();
862:            }
863:
864:            public String toString() {
865:                return new ToStringBuilder(this ).append("id", this .id)
866:                        .toString();
867:            }
868:
869:            public void beforeInsert(PersistenceBroker broker)
870:                    throws PersistenceBrokerException {
871:                lastUpdate = new Timestamp((new Date()).getTime());
872:            }
873:
874:            public void afterInsert(PersistenceBroker broker)
875:                    throws PersistenceBrokerException {
876:
877:            }
878:
879:            public void beforeUpdate(PersistenceBroker broker)
880:                    throws PersistenceBrokerException {
881:                lastUpdate = new Timestamp((new Date()).getTime());
882:            }
883:
884:            public void afterUpdate(PersistenceBroker broker)
885:                    throws PersistenceBrokerException {
886:
887:            }
888:
889:            public void beforeDelete(PersistenceBroker broker)
890:                    throws PersistenceBrokerException {
891:
892:            }
893:
894:            public void afterDelete(PersistenceBroker broker)
895:                    throws PersistenceBrokerException {
896:
897:            }
898:
899:            public void afterLookup(PersistenceBroker broker)
900:                    throws PersistenceBrokerException {
901:
902:            }
903:
904:            /**
905:             * @return Returns the achAccountType.
906:             */
907:            public String getAchAccountType() {
908:                return achAccountType;
909:            }
910:
911:            /**
912:             * @param achAccountType The achAccountType to set.
913:             */
914:            public void setAchAccountType(String achAccountType) {
915:                this .achAccountType = achAccountType;
916:            }
917:
918:            public Timestamp getEpicPaymentCancelledExtractedDate() {
919:                return epicPaymentCancelledExtractedDate;
920:            }
921:
922:            public void setEpicPaymentCancelledExtractedDate(
923:                    Timestamp epicPaymentCancelledExtractedDate) {
924:                this .epicPaymentCancelledExtractedDate = epicPaymentCancelledExtractedDate;
925:            }
926:
927:            public Timestamp getEpicPaymentPaidExtractedDate() {
928:                return epicPaymentPaidExtractedDate;
929:            }
930:
931:            public void setEpicPaymentPaidExtractedDate(
932:                    Timestamp epicPaymentPaidExtractedDate) {
933:                this.epicPaymentPaidExtractedDate = epicPaymentPaidExtractedDate;
934:            }
935:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.