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: /*
017: * Created on Jul 5, 2004
018: *
019: */
020: package org.kuali.module.pdp.bo;
021:
022: import java.io.Serializable;
023: import java.math.BigDecimal;
024: import java.sql.Timestamp;
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.Iterator;
028: import java.util.List;
029:
030: import org.apache.commons.lang.builder.EqualsBuilder;
031: import org.apache.commons.lang.builder.HashCodeBuilder;
032: import org.apache.commons.lang.builder.ToStringBuilder;
033: import org.apache.ojb.broker.PersistenceBroker;
034: import org.apache.ojb.broker.PersistenceBrokerAware;
035: import org.apache.ojb.broker.PersistenceBrokerException;
036: import org.kuali.core.bo.user.UniversalUser;
037: import org.kuali.core.exceptions.UserNotFoundException;
038: import org.kuali.core.service.UniversalUserService;
039:
040: /**
041: * @author jsissom
042: * @hibernate.class table="PDP.PDP_CUST_PRFL_T"
043: */
044: public class CustomerProfile implements UserRequired, Serializable,
045: PersistenceBrokerAware {
046: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
047: .getLogger(CustomerProfile.class);
048:
049: private String achPaymentDescription; // ACH_PMT_DESC
050: private String additionalCheckNoteTextLine1;
051: private String additionalCheckNoteTextLine2;
052: private String additionalCheckNoteTextLine3;
053: private String additionalCheckNoteTextLine4;
054: private String address1; // CUST_LN1_ADDR
055: private String address2; // CUST_LN2_ADDR
056: private String address3; // CUST_LN3_ADDR
057: private String address4; // CUST_LN4_ADDR
058: private Boolean adviceCreate; // ADV_CRTE_IND
059: private String adviceHeaderText; // ADV_HDR_TXT
060: private String adviceSubjectLine;
061: private String adviceReturnEmailAddr;
062: private String chartCode; // FIN_COA_CD
063: private String checkHeaderNoteTextLine1;
064: private String checkHeaderNoteTextLine2;
065: private String checkHeaderNoteTextLine3;
066: private String checkHeaderNoteTextLine4;
067: private String city; // CUST_CTY_NM
068: private String contactFullName; // CUST_CNTC_FULL_NM
069: private String countryName; // CUST_CNTRY_NM
070: private Boolean customerActive; // CUST_ACTV_IND
071: private String customerDescription; // CUST_DESC
072: private String defaultChartCode; // DFLT_COA_CD
073: private String defaultAccountNumber; // DFLT_ACCT_NBR
074: private String defaultSubAccountNumber; // DFLT_SUB_ACCT_NBR
075: private String defaultObjectCode; // DFLT_OBJ_CD
076: private String defaultPhysicalCampusProcessingCode; // DFLT_PHYS_CMP_PROC_CD
077: private String defaultSubObjectCode; // DFLT_SUB_OBJ_CD
078: private Boolean employeeCheck; // CUST_EMP_CHK_IND
079: private BigDecimal fileThresholdAmount; // FL_THRSHLD_AMT
080: private String fileThresholdEmailAddress; // CUST_FILE_THRSHLD_EMAIL_ADDR
081: private Integer id; // CUST_ID
082: private Timestamp lastUpdate; // LST_UPDT_TS
083: private PdpUser lastUpdateUser;
084: private String lastUpdateUserId; // LST_UPDT_USR_ID
085: private Boolean nraReview; // CUST_NRA_RVW_IND
086: private Integer version; // VER_NBR
087: private String orgCode; // ORG_CD
088: private Boolean ownershipCodeRequired; // CUST_OWNR_CD_REQ_IND
089: private Boolean payeeIdRequired; // CUST_PAYEE_ID_REQ_IND
090: private BigDecimal paymentThresholdAmount; // PMT_THRSHLD_AMT
091: private String paymentThresholdEmailAddress; // CUST_PMT_THRSHLD_EMAIL_ADDR
092: private String processingEmailAddr; // CUST_PRCS_EMAIL_ADDR
093: private String psdTransactionCode; // PSD_TRN_CD
094: private String state; // CUST_ST_CD
095: private String subUnitCode; // SBUNT_CD
096: private String zipCode; // CUST_ZIP_CD
097: private Boolean accountingEditRequired; // ACCTG_EDIT_REQ_IND
098: private Boolean relieveLiabilities;
099: private List customerBanks;
100:
101: public CustomerProfile() {
102: super ();
103: customerBanks = new ArrayList();
104: }
105:
106: public String getCustomerShortName() {
107: return chartCode + "-" + orgCode + "-" + subUnitCode;
108: }
109:
110: public String getSortName() {
111: return (this .chartCode + this .orgCode + this .subUnitCode);
112: }
113:
114: public PdpUser getLastUpdateUser() {
115: return lastUpdateUser;
116: }
117:
118: public void setLastUpdateUser(PdpUser s) {
119: if (s != null) {
120: this .lastUpdateUserId = s.getUniversalUser()
121: .getPersonUniversalIdentifier();
122: } else {
123: this .lastUpdateUserId = null;
124: }
125: this .lastUpdateUser = s;
126: }
127:
128: public String getLastUpdateUserId() {
129: return lastUpdateUserId;
130: }
131:
132: public void setLastUpdateUserId(String lastUpdateUserId) {
133: this .lastUpdateUserId = lastUpdateUserId;
134: }
135:
136: public void updateUser(UniversalUserService userService)
137: throws UserNotFoundException {
138: UniversalUser u = userService
139: .getUniversalUser(lastUpdateUserId);
140: if (u == null) {
141: setLastUpdateUser(null);
142: } else {
143: setLastUpdateUser(new PdpUser(u));
144: }
145: }
146:
147: /**
148: * @hibernate.property column="ACCTG_EDIT_REQ_IND" type="yes_no" not-null="true"
149: * @return Returns the accountingEditRequird.
150: */
151: public Boolean getAccountingEditRequired() {
152: return accountingEditRequired;
153: }
154:
155: /**
156: * @param accountingEditRequird The accountingEditRequird to set.
157: */
158: public void setAccountingEditRequired(Boolean accountingEditRequird) {
159: this .accountingEditRequired = accountingEditRequird;
160: }
161:
162: /**
163: * @hibernate.property column="DFLT_SUB_ACCT_NBR" length="5" not-null="true"
164: * @return Returns the defaultSubAccountNumber.
165: */
166: public String getDefaultSubAccountNumber() {
167: return defaultSubAccountNumber;
168: }
169:
170: /**
171: * @param defaultSubAccountNumber The defaultSubAccountNumber to set.
172: */
173: public void setDefaultSubAccountNumber(
174: String defaultSubAccountNumber) {
175: this .defaultSubAccountNumber = defaultSubAccountNumber;
176: }
177:
178: public List getCustomerBanks() {
179: return customerBanks;
180: }
181:
182: public CustomerBank getCustomerBankByDisbursementType(String dt) {
183: for (Iterator iter = customerBanks.iterator(); iter.hasNext();) {
184: CustomerBank element = (CustomerBank) iter.next();
185: if (element.getDisbursementType().getCode().equals(dt)) {
186: return element;
187: }
188: }
189: return null;
190: }
191:
192: public void setCustomerBanks(List cbs) {
193: customerBanks = cbs;
194: }
195:
196: public void addCustomerBank(CustomerBank cb) {
197: customerBanks.add(cb);
198: }
199:
200: public void deleteCustomerBank(CustomerBank cb) {
201: customerBanks.remove(cb);
202: }
203:
204: public boolean equals(Object obj) {
205: if (!(obj instanceof CustomerProfile)) {
206: return false;
207: }
208: CustomerProfile tc = (CustomerProfile) obj;
209: return new EqualsBuilder().append(chartCode, tc.getChartCode())
210: .append(orgCode, tc.getOrgCode()).append(subUnitCode,
211: tc.getSubUnitCode()).isEquals();
212: }
213:
214: /**
215: * @hibernate.property column="ACH_PMT_DESC" length="100" not-null="false"
216: * @return Returns the achPaymentDescription.
217: */
218: public String getAchPaymentDescription() {
219: return achPaymentDescription;
220: }
221:
222: /**
223: * @hibernate.property column="ADDL_CHK_NTE_TXT_LN1" length="90" not-null="false"
224: * @return Returns the additionalCheckNoteTextLine1.
225: */
226: public String getAdditionalCheckNoteTextLine1() {
227: return additionalCheckNoteTextLine1;
228: }
229:
230: /**
231: * @hibernate.property column="ADDL_CHK_NTE_TXT_LN2" length="90" not-null="false"
232: * @return Returns the additionalCheckNoteTextLine2.
233: */
234: public String getAdditionalCheckNoteTextLine2() {
235: return additionalCheckNoteTextLine2;
236: }
237:
238: /**
239: * @hibernate.property column="ADDL_CHK_NTE_LN3_TXT" length="90" not-null="false"
240: * @return Returns the additionalCheckNoteTextLine3.
241: */
242: public String getAdditionalCheckNoteTextLine3() {
243: return additionalCheckNoteTextLine3;
244: }
245:
246: /**
247: * @hibernate.property column="ADDL_CHK_NTE_TXT_LN4" length="90" not-null="false"
248: * @return Returns the additionalCheckNoteTextLine4.
249: */
250: public String getAdditionalCheckNoteTextLine4() {
251: return additionalCheckNoteTextLine4;
252: }
253:
254: /**
255: * @hibernate.property column="CUST_LN1_ADDR" length="55" not-null="false"
256: * @return Returns the address1.
257: */
258: public String getAddress1() {
259: return address1;
260: }
261:
262: /**
263: * @hibernate.property column="CUST_LN2_ADDR" length="55" not-null="false"
264: * @return Returns the address2.
265: */
266: public String getAddress2() {
267: return address2;
268: }
269:
270: /**
271: * @hibernate.property column="CUST_LN3_ADDR" length="55" not-null="false"
272: * @return Returns the address3.
273: */
274: public String getAddress3() {
275: return address3;
276: }
277:
278: /**
279: * @hibernate.property column="CUST_LN4_ADDR" length="55" not-null="false"
280: * @return Returns the address4.
281: */
282: public String getAddress4() {
283: return address4;
284: }
285:
286: /**
287: * @hibernate.property column="ADV_HDR_TXT" length="200" not-null="false"
288: * @return Returns the adviceHeaderText.
289: */
290: public String getAdviceHeaderText() {
291: return adviceHeaderText;
292: }
293:
294: /**
295: * @hibernate.property column="FIN_COA_CD" length="2" not-null="true"
296: * @return Returns the chartCode.
297: */
298: public String getChartCode() {
299: return chartCode;
300: }
301:
302: /**
303: * @hibernate.property column="CHK_HDR_NTE_TXT_LN1" length="90" not-null="false"
304: * @return Returns the checkHeaderNoteTextLine1.
305: */
306: public String getCheckHeaderNoteTextLine1() {
307: return checkHeaderNoteTextLine1;
308: }
309:
310: /**
311: * @hibernate.property column="CHK_HDR_NTE_TXT_LN2" length="90" not-null="false"
312: * @return Returns the checkHeaderNoteTextLine2.
313: */
314: public String getCheckHeaderNoteTextLine2() {
315: return checkHeaderNoteTextLine2;
316: }
317:
318: /**
319: * @hibernate.property column="CHK_HDR_NTE_LN3_TXT" length="90" not-null="false"
320: * @return Returns the checkHeaderNoteTextLine3.
321: */
322: public String getCheckHeaderNoteTextLine3() {
323: return checkHeaderNoteTextLine3;
324: }
325:
326: /**
327: * @hibernate.property column="CHK_HDR_NTE_TXT_LN4" length="90" not-null="false"
328: * @return Returns the checkHeaderNoteTextLine4.
329: */
330: public String getCheckHeaderNoteTextLine4() {
331: return checkHeaderNoteTextLine4;
332: }
333:
334: /**
335: * @hibernate.property column="CUST_CTY_NM" length="30" not-null="false"
336: * @return Returns the city.
337: */
338: public String getCity() {
339: return city;
340: }
341:
342: /**
343: * @hibernate.property column="CUST_CNTC_FULL_NM" length="50" not-null="false"
344: * @return Returns the contactFullName.
345: */
346: public String getContactFullName() {
347: return contactFullName;
348: }
349:
350: /**
351: * @hibernate.property column="CUST_CNTRY_NM" length="25" not-null="false"
352: * @return Returns the countryName.
353: */
354: public String getCountryName() {
355: return countryName;
356: }
357:
358: /**
359: * @hibernate.property column="CUST_DESC" length="50" not-null="false"
360: * @return Returns the customerDescription.
361: */
362: public String getCustomerDescription() {
363: return customerDescription;
364: }
365:
366: /**
367: * @hibernate.property column="DFLT_ACCT_NBR" length="7" not-null="true"
368: * @return Returns the defaultAccountNumber.
369: */
370: public String getDefaultAccountNumber() {
371: return defaultAccountNumber;
372: }
373:
374: /**
375: * @hibernate.property column="DFLT_COA_CD" length="2" not-null="true"
376: * @return Returns the defaultChartCode.
377: */
378: public String getDefaultChartCode() {
379: return defaultChartCode;
380: }
381:
382: /**
383: * @hibernate.property column="DFLT_OBJ_CD" length="4" not-null="true"
384: * @return Returns the defaultObjectCode.
385: */
386: public String getDefaultObjectCode() {
387: return defaultObjectCode;
388: }
389:
390: /**
391: * @hibernate.property column="DFLT_PHYS_CMP_PROC_CD" length="2" not-null="false"
392: * @return Returns the defaultPhysicalCampusProcessingCode.
393: */
394: public String getDefaultPhysicalCampusProcessingCode() {
395: return defaultPhysicalCampusProcessingCode;
396: }
397:
398: /**
399: * @hibernate.property column="DFLT_SUB_OBJ_CD" length="3" not-null="true"
400: * @return Returns the defaultSubObjectCode.
401: */
402: public String getDefaultSubObjectCode() {
403: return defaultSubObjectCode;
404: }
405:
406: /**
407: * @hibernate.property column="FL_THRSHLD_AMT" not-null="false"
408: * @return Returns the fileThresholdAmount.
409: */
410: public BigDecimal getFileThresholdAmount() {
411: return fileThresholdAmount;
412: }
413:
414: /**
415: * @hibernate.property column="CUST_FILE_THRSHLD_EMAIL_ADDR" length="50" not-null="false"
416: * @return Returns the fileThresholdEmailAddress.
417: */
418: public String getFileThresholdEmailAddress() {
419: return fileThresholdEmailAddress;
420: }
421:
422: /**
423: * @return Returns the id.
424: * @hibernate.id column="CUST_ID" generator-class="sequence"
425: * @hibernate.generator-param name="sequence" value="PDP.PDP_CUST_ID_SEQ"
426: */
427: public Integer getId() {
428: return id;
429: }
430:
431: /**
432: * @hibernate.property column="LST_UPDT_TS" not-null="true"
433: * @return Returns the lastUpdate.
434: */
435: public Timestamp getLastUpdate() {
436: return lastUpdate;
437: }
438:
439: /**
440: * @hibernate.version column="VER_NBR"
441: * @return Returns the ojbVerNbr.
442: */
443: public Integer getVersion() {
444: return version;
445: }
446:
447: /**
448: * @hibernate.property column="ORG_CD" length="4" not-null="true"
449: * @return Returns the orgCode.
450: */
451: public String getOrgCode() {
452: return orgCode;
453: }
454:
455: /**
456: * @hibernate.property column="PMT_THRSHLD_AMT" not-null="false"
457: * @return Returns the paymentThresholdAmount.
458: */
459: public BigDecimal getPaymentThresholdAmount() {
460: return paymentThresholdAmount;
461: }
462:
463: /**
464: * @hibernate.property column="CUST_PMT_THRSHLD_EMAIL_ADDR" length="50" not-null="false"
465: * @return Returns the paymentThresholdEmailAddress.
466: */
467: public String getPaymentThresholdEmailAddress() {
468: return paymentThresholdEmailAddress;
469: }
470:
471: /**
472: * @hibernate.property column="CUST_PRCS_EMAIL_ADDR" length="50" not-null="false"
473: * @return Returns the processingEmailAddr.
474: */
475: public String getProcessingEmailAddr() {
476: return processingEmailAddr;
477: }
478:
479: public String getFirstFiftyProcessingEmailAddr() {
480: if ((processingEmailAddr != null)
481: && (processingEmailAddr.length() > 50)) {
482: return processingEmailAddr.substring(0, 50);
483: }
484: return processingEmailAddr;
485: }
486:
487: /**
488: * @hibernate.property column="PSD_TRN_CD" length="4" not-null="false"
489: * @return Returns the psdTransactionCode.
490: */
491: public String getPsdTransactionCode() {
492: return psdTransactionCode;
493: }
494:
495: /**
496: * @hibernate.property column="CUST_ST_CD" length="30" not-null="false"
497: * @return Returns the state.
498: */
499: public String getState() {
500: return state;
501: }
502:
503: /**
504: * @hibernate.property column="SBUNT_CD" length="4" not-null="true"
505: * @return Returns the subUnitCode.
506: */
507: public String getSubUnitCode() {
508: return subUnitCode;
509: }
510:
511: /**
512: * @hibernate.property column="CUST_ZIP_CD" length="20" not-null="false"
513: * @return Returns the zipCode.
514: */
515: public String getZipCode() {
516: return zipCode;
517: }
518:
519: public int hashCode() {
520: return new HashCodeBuilder(59, 67).append(chartCode).append(
521: orgCode).append(subUnitCode).toHashCode();
522: }
523:
524: /**
525: * @hibernate.property column="ADV_CRTE_IND" type="yes_no" not-null="false"
526: * @return Returns the adviceCreate.
527: */
528: public Boolean getAdviceCreate() {
529: return adviceCreate;
530: }
531:
532: /**
533: * @hibernate.property column="ADV_SUBJ_LN_TXT" length="40" not-null="false"
534: * @return Returns the adviceSubjectLine.
535: */
536: public String getAdviceSubjectLine() {
537: return adviceSubjectLine;
538: }
539:
540: /**
541: * @hibernate.property column="ADV_RTRN_EMAIL_ADDR" length="50" not-null="false"
542: * @return Returns the adviceReturnEmailAddr.
543: */
544: public String getAdviceReturnEmailAddr() {
545: return adviceReturnEmailAddr;
546: }
547:
548: /**
549: * @hibernate.property column="CUST_ACTV_IND" type="yes_no" not-null="false"
550: * @return Returns the customerActive.
551: */
552: public Boolean getCustomerActive() {
553: return customerActive;
554: }
555:
556: /**
557: * @hibernate.property column="CUST_EMP_CHK_IND" type="yes_no" not-null="false"
558: * @return Returns the employeeCheck.
559: */
560: public Boolean getEmployeeCheck() {
561: return employeeCheck;
562: }
563:
564: /**
565: * @hibernate.property column="CUST_NRA_RVW_IND" type="yes_no" not-null="false"
566: * @return Returns the nraReview.
567: */
568: public Boolean getNraReview() {
569: return nraReview;
570: }
571:
572: /**
573: * @hibernate.property column="CUST_OWNR_CD_REQ_IND" type="yes_no" not-null="false"
574: * @return Returns the ownershipCodeRequired.
575: */
576: public Boolean getOwnershipCodeRequired() {
577: return ownershipCodeRequired;
578: }
579:
580: /**
581: * @hibernate.property column="CUST_PAYEE_ID_REQ_IND" type="yes_no" not-null="false"
582: * @return Returns the payeeIdRequired.
583: */
584: public Boolean getPayeeIdRequired() {
585: return payeeIdRequired;
586: }
587:
588: /**
589: * @param achPaymentDescription The achPaymentDescription to set.
590: */
591: public void setAchPaymentDescription(String achPaymentDescription) {
592: this .achPaymentDescription = achPaymentDescription;
593: }
594:
595: /**
596: * @param additionalCheckNoteTextLine1 The additionalCheckNoteTextLine1 to set.
597: */
598: public void setAdditionalCheckNoteTextLine1(
599: String additionalCheckNoteTextLine1) {
600: this .additionalCheckNoteTextLine1 = additionalCheckNoteTextLine1;
601: }
602:
603: /**
604: * @param additionalCheckNoteTextLine2 The additionalCheckNoteTextLine2 to set.
605: */
606: public void setAdditionalCheckNoteTextLine2(
607: String additionalCheckNoteTextLine2) {
608: this .additionalCheckNoteTextLine2 = additionalCheckNoteTextLine2;
609: }
610:
611: /**
612: * @param additionalCheckNoteTextLine3 The additionalCheckNoteTexLine3 to set.
613: */
614: public void setAdditionalCheckNoteTextLine3(
615: String additionalCheckNoteTextLine3) {
616: this .additionalCheckNoteTextLine3 = additionalCheckNoteTextLine3;
617: }
618:
619: /**
620: * @param additionalCheckNoteTextLine4 The additionalCheckNoteTextLine4 to set.
621: */
622: public void setAdditionalCheckNoteTextLine4(
623: String additionalCheckNoteTextLine4) {
624: this .additionalCheckNoteTextLine4 = additionalCheckNoteTextLine4;
625: }
626:
627: /**
628: * @param address1 The address1 to set.
629: */
630: public void setAddress1(String address1) {
631: this .address1 = address1;
632: }
633:
634: /**
635: * @param address2 The address2 to set.
636: */
637: public void setAddress2(String address2) {
638: this .address2 = address2;
639: }
640:
641: /**
642: * @param address3 The address3 to set.
643: */
644: public void setAddress3(String address3) {
645: this .address3 = address3;
646: }
647:
648: /**
649: * @param address4 The address4 to set.
650: */
651: public void setAddress4(String address4) {
652: this .address4 = address4;
653: }
654:
655: /**
656: * @param adviceCreate The adviceCreate to set.
657: */
658: public void setAdviceCreate(Boolean adviceCreate) {
659: this .adviceCreate = adviceCreate;
660: }
661:
662: /**
663: * @param adviceHeaderText The adviceHeaderText to set.
664: */
665: public void setAdviceHeaderText(String adviceHeaderText) {
666: this .adviceHeaderText = adviceHeaderText;
667: }
668:
669: /**
670: * @param adviceSubjectLine The adviceSubjectLine to set.
671: */
672: public void setAdviceSubjectLine(String adviceSubjectLine) {
673: this .adviceSubjectLine = adviceSubjectLine;
674: }
675:
676: /**
677: * @param adviceReturnEmailAddr The adviceReturnEmailAddr to set.
678: */
679: public void setAdviceReturnEmailAddr(String adviceReturnEmailAddr) {
680: this .adviceReturnEmailAddr = adviceReturnEmailAddr;
681: }
682:
683: /**
684: * @param chartCode The chartCode to set.
685: */
686: public void setChartCode(String chartCode) {
687: this .chartCode = chartCode;
688: }
689:
690: /**
691: * @param checkHeaderNoteTextLine1 The checkHeaderNoteTextLine1 to set.
692: */
693: public void setCheckHeaderNoteTextLine1(
694: String checkHeaderNoteTextLine1) {
695: this .checkHeaderNoteTextLine1 = checkHeaderNoteTextLine1;
696: }
697:
698: /**
699: * @param checkHeaderNoteTextLine2 The checkHeaderNoteTextLine2 to set.
700: */
701: public void setCheckHeaderNoteTextLine2(
702: String checkHeaderNoteTextLine2) {
703: this .checkHeaderNoteTextLine2 = checkHeaderNoteTextLine2;
704: }
705:
706: /**
707: * @param checkHeaderNoteTextLine3 The checkHeaderNoteTextLine3 to set.
708: */
709: public void setCheckHeaderNoteTextLine3(
710: String checkHeaderNoteTextLine3) {
711: this .checkHeaderNoteTextLine3 = checkHeaderNoteTextLine3;
712: }
713:
714: /**
715: * @param checkHeaderNoteTextLine4 The checkHeaderNoteTextLine4 to set.
716: */
717: public void setCheckHeaderNoteTextLine4(
718: String checkHeaderNoteTextLine4) {
719: this .checkHeaderNoteTextLine4 = checkHeaderNoteTextLine4;
720: }
721:
722: /**
723: * @param city The city to set.
724: */
725: public void setCity(String city) {
726: this .city = city;
727: }
728:
729: /**
730: * @param contactFullName The contactFullName to set.
731: */
732: public void setContactFullName(String contactFullName) {
733: this .contactFullName = contactFullName;
734: }
735:
736: /**
737: * @param countryName The countryName to set.
738: */
739: public void setCountryName(String countryName) {
740: this .countryName = countryName;
741: }
742:
743: /**
744: * @param customerActive The customerActive to set.
745: */
746: public void setCustomerActive(Boolean customerActive) {
747: this .customerActive = customerActive;
748: }
749:
750: /**
751: * @param customerDescription The customerDescription to set.
752: */
753: public void setCustomerDescription(String customerDescription) {
754: this .customerDescription = customerDescription;
755: }
756:
757: /**
758: * @param defaultAccountNumber The defaultAccountNumber to set.
759: */
760: public void setDefaultAccountNumber(String defaultAccountNumber) {
761: this .defaultAccountNumber = defaultAccountNumber;
762: }
763:
764: /**
765: * @param defaultChartCode The defaultChartCode to set.
766: */
767: public void setDefaultChartCode(String defaultChartCode) {
768: this .defaultChartCode = defaultChartCode;
769: }
770:
771: /**
772: * @param defaultObjectCode The defaultObjectCode to set.
773: */
774: public void setDefaultObjectCode(String defaultObjectCode) {
775: this .defaultObjectCode = defaultObjectCode;
776: }
777:
778: /**
779: * @param defaultPhysicalCampusProcessingCode The defaultPhysicalCampusProcessingCode to set.
780: */
781: public void setDefaultPhysicalCampusProcessingCode(
782: String defaultPhysicalCampusProcessingCode) {
783: this .defaultPhysicalCampusProcessingCode = defaultPhysicalCampusProcessingCode;
784: }
785:
786: /**
787: * @param defaultSubObjectCode The defaultSubObjectCode to set.
788: */
789: public void setDefaultSubObjectCode(String defaultSubObjectCode) {
790: this .defaultSubObjectCode = defaultSubObjectCode;
791: }
792:
793: /**
794: * @param employeeCheck The employeeCheck to set.
795: */
796: public void setEmployeeCheck(Boolean employeeCheck) {
797: this .employeeCheck = employeeCheck;
798: }
799:
800: /**
801: * @param fileThresholdAmount The fileThresholdAmount to set.
802: */
803: public void setFileThresholdAmount(BigDecimal fileThresholdAmount) {
804: this .fileThresholdAmount = fileThresholdAmount;
805: }
806:
807: /**
808: * @param fileThresholdEmailAddress The fileThresholdEmailAddress to set.
809: */
810: public void setFileThresholdEmailAddress(
811: String fileThresholdEmailAddress) {
812: this .fileThresholdEmailAddress = fileThresholdEmailAddress;
813: }
814:
815: /**
816: * @param id The id to set.
817: */
818: public void setId(Integer id) {
819: this .id = id;
820: }
821:
822: /**
823: * @param lastUpdate The lastUpdate to set.
824: */
825: public void setLastUpdate(Timestamp lastUpdate) {
826: this .lastUpdate = lastUpdate;
827: }
828:
829: /**
830: * @param nraReview The nraReview to set.
831: */
832: public void setNraReview(Boolean nraReview) {
833: this .nraReview = nraReview;
834: }
835:
836: /**
837: * @param ojbVerNbr The ojbVerNbr to set.
838: */
839: public void setVersion(Integer ver) {
840: this .version = ver;
841: }
842:
843: /**
844: * @param orgCode The orgCode to set.
845: */
846: public void setOrgCode(String orgCode) {
847: this .orgCode = orgCode;
848: }
849:
850: /**
851: * @param ownershipCodeRequired The ownershipCodeRequired to set.
852: */
853: public void setOwnershipCodeRequired(Boolean ownershipCodeRequired) {
854: this .ownershipCodeRequired = ownershipCodeRequired;
855: }
856:
857: /**
858: * @param payeeIdRequired The payeeIdRequired to set.
859: */
860: public void setPayeeIdRequired(Boolean payeeIdRequired) {
861: this .payeeIdRequired = payeeIdRequired;
862: }
863:
864: /**
865: * @param paymentThresholdAmount The paymentThresholdAmount to set.
866: */
867: public void setPaymentThresholdAmount(
868: BigDecimal paymentThresholdAmount) {
869: this .paymentThresholdAmount = paymentThresholdAmount;
870: }
871:
872: /**
873: * @param paymentThresholdEmailAddress The paymentThresholdEmailAddress to set.
874: */
875: public void setPaymentThresholdEmailAddress(
876: String paymentThresholdEmailAddress) {
877: this .paymentThresholdEmailAddress = paymentThresholdEmailAddress;
878: }
879:
880: /**
881: * @param processingEmailAddr The processingEmailAddr to set.
882: */
883: public void setProcessingEmailAddr(String processingEmailAddr) {
884: this .processingEmailAddr = processingEmailAddr;
885: }
886:
887: /**
888: * @param psdTransactionCode The psdTransactionCode to set.
889: */
890: public void setPsdTransactionCode(String psdTransactionCode) {
891: this .psdTransactionCode = psdTransactionCode;
892: }
893:
894: /**
895: * @param state The state to set.
896: */
897: public void setState(String state) {
898: this .state = state;
899: }
900:
901: /**
902: * @param subUnitCode The subUnitCode to set.
903: */
904: public void setSubUnitCode(String subUnitCode) {
905: this .subUnitCode = subUnitCode;
906: }
907:
908: /**
909: * @param zipCode The zipCode to set.
910: */
911: public void setZipCode(String zipCode) {
912: this .zipCode = zipCode;
913: }
914:
915: /**
916: * @return Returns the relieveLiabilities.
917: */
918: public Boolean getRelieveLiabilities() {
919: return relieveLiabilities;
920: }
921:
922: /**
923: * @param relieveLiabilities The relieveLiabilities to set.
924: */
925: public void setRelieveLiabilities(Boolean relieveLiabilities) {
926: this .relieveLiabilities = relieveLiabilities;
927: }
928:
929: public String toString() {
930: return new ToStringBuilder(this ).append("chartCode",
931: this .chartCode).append("orgCode", this .orgCode).append(
932: "subUnitCode", this .subUnitCode).toString();
933: }
934:
935: public void beforeInsert(PersistenceBroker broker)
936: throws PersistenceBrokerException {
937: lastUpdate = new Timestamp((new Date()).getTime());
938: }
939:
940: public void afterInsert(PersistenceBroker broker)
941: throws PersistenceBrokerException {
942:
943: }
944:
945: public void beforeUpdate(PersistenceBroker broker)
946: throws PersistenceBrokerException {
947: lastUpdate = new Timestamp((new Date()).getTime());
948: }
949:
950: public void afterUpdate(PersistenceBroker broker)
951: throws PersistenceBrokerException {
952:
953: }
954:
955: public void beforeDelete(PersistenceBroker broker)
956: throws PersistenceBrokerException {
957:
958: }
959:
960: public void afterDelete(PersistenceBroker broker)
961: throws PersistenceBrokerException {
962:
963: }
964:
965: public void afterLookup(PersistenceBroker broker)
966: throws PersistenceBrokerException {
967:
968: }
969: }
|