001: /*
002: * Copyright 2006-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: package org.kuali.module.gl.bo;
018:
019: import java.sql.Date;
020: import java.util.LinkedHashMap;
021:
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.core.util.KualiDecimal;
024: import org.kuali.kfs.KFSPropertyConstants;
025: import org.kuali.module.chart.bo.Account;
026: import org.kuali.module.chart.bo.Chart;
027: import org.kuali.module.chart.bo.ObjectCode;
028:
029: /**
030: * Represents an entry move
031: */
032: public class EntryMove extends PersistableBusinessObjectBase {
033:
034: private String personUniversalIdentifier;
035: private Integer universityFiscalYear;
036: private String chartOfAccountsCode;
037: private String accountNumber;
038: private String subAccountNumber;
039: private String financialObjectCode;
040: private String financialSubObjectCode;
041: private String financialBalanceTypeCode;
042: private String financialObjectTypeCode;
043: private String universityFiscalPeriodCode;
044: private String financialDocumentTypeCode;
045: private String financialSystemOriginationCode;
046: private String documentNumber;
047: private Integer transactionLedgerEntrySequenceNumber;
048: private String transactionLedgerEntryDescription;
049: private KualiDecimal transactionLedgerEntryAmount;
050: private String transactionDebitCreditCode;
051: private Date transactionDate;
052: private String organizationDocumentNumber;
053: private String projectCode;
054: private String organizationReferenceId;
055: private String referenceFinancialDocumentTypeCode;
056: private String referenceFinancialSystemOriginationCode;
057: private String referenceFinancialDocumentNumber;
058: private Date financialDocumentReversalDate;
059: private String transactionEncumbranceUpdateCode;
060: private Date transactionPostingDate;
061: private Date transactionDateTimeStamp;
062:
063: private ObjectCode financialObject;
064: private Account account;
065: private Chart chartOfAccounts;
066:
067: /**
068: * Default constructor.
069: */
070: public EntryMove() {
071:
072: }
073:
074: /**
075: * Gets the personUniversalIdentifier attribute.
076: *
077: * @return Returns the personUniversalIdentifier
078: */
079: public String getPersonUniversalIdentifier() {
080: return personUniversalIdentifier;
081: }
082:
083: /**
084: * Sets the personUniversalIdentifier attribute.
085: *
086: * @param personUniversalIdentifier The personUniversalIdentifier to set.
087: */
088: public void setPersonUniversalIdentifier(
089: String personUniversalIdentifier) {
090: this .personUniversalIdentifier = personUniversalIdentifier;
091: }
092:
093: /**
094: * Gets the universityFiscalYear attribute.
095: *
096: * @return Returns the universityFiscalYear
097: */
098: public Integer getUniversityFiscalYear() {
099: return universityFiscalYear;
100: }
101:
102: /**
103: * Sets the universityFiscalYear attribute.
104: *
105: * @param universityFiscalYear The universityFiscalYear to set.
106: */
107: public void setUniversityFiscalYear(Integer universityFiscalYear) {
108: this .universityFiscalYear = universityFiscalYear;
109: }
110:
111: /**
112: * Gets the chartOfAccountsCode attribute.
113: *
114: * @return Returns the chartOfAccountsCode
115: */
116: public String getChartOfAccountsCode() {
117: return chartOfAccountsCode;
118: }
119:
120: /**
121: * Sets the chartOfAccountsCode attribute.
122: *
123: * @param chartOfAccountsCode The chartOfAccountsCode to set.
124: */
125: public void setChartOfAccountsCode(String chartOfAccountsCode) {
126: this .chartOfAccountsCode = chartOfAccountsCode;
127: }
128:
129: /**
130: * Gets the accountNumber attribute.
131: *
132: * @return Returns the accountNumber
133: */
134: public String getAccountNumber() {
135: return accountNumber;
136: }
137:
138: /**
139: * Sets the accountNumber attribute.
140: *
141: * @param accountNumber The accountNumber to set.
142: */
143: public void setAccountNumber(String accountNumber) {
144: this .accountNumber = accountNumber;
145: }
146:
147: /**
148: * Gets the subAccountNumber attribute.
149: *
150: * @return Returns the subAccountNumber
151: */
152: public String getSubAccountNumber() {
153: return subAccountNumber;
154: }
155:
156: /**
157: * Sets the subAccountNumber attribute.
158: *
159: * @param subAccountNumber The subAccountNumber to set.
160: */
161: public void setSubAccountNumber(String subAccountNumber) {
162: this .subAccountNumber = subAccountNumber;
163: }
164:
165: /**
166: * Gets the financialObjectCode attribute.
167: *
168: * @return Returns the financialObjectCode
169: */
170: public String getFinancialObjectCode() {
171: return financialObjectCode;
172: }
173:
174: /**
175: * Sets the financialObjectCode attribute.
176: *
177: * @param financialObjectCode The financialObjectCode to set.
178: */
179: public void setFinancialObjectCode(String financialObjectCode) {
180: this .financialObjectCode = financialObjectCode;
181: }
182:
183: /**
184: * Gets the financialSubObjectCode attribute.
185: *
186: * @return Returns the financialSubObjectCode
187: */
188: public String getFinancialSubObjectCode() {
189: return financialSubObjectCode;
190: }
191:
192: /**
193: * Sets the financialSubObjectCode attribute.
194: *
195: * @param financialSubObjectCode The financialSubObjectCode to set.
196: */
197: public void setFinancialSubObjectCode(String financialSubObjectCode) {
198: this .financialSubObjectCode = financialSubObjectCode;
199: }
200:
201: /**
202: * Gets the financialBalanceTypeCode attribute.
203: *
204: * @return Returns the financialBalanceTypeCode
205: */
206: public String getFinancialBalanceTypeCode() {
207: return financialBalanceTypeCode;
208: }
209:
210: /**
211: * Sets the financialBalanceTypeCode attribute.
212: *
213: * @param financialBalanceTypeCode The financialBalanceTypeCode to set.
214: */
215: public void setFinancialBalanceTypeCode(
216: String financialBalanceTypeCode) {
217: this .financialBalanceTypeCode = financialBalanceTypeCode;
218: }
219:
220: /**
221: * Gets the financialObjectTypeCode attribute.
222: *
223: * @return Returns the financialObjectTypeCode
224: */
225: public String getFinancialObjectTypeCode() {
226: return financialObjectTypeCode;
227: }
228:
229: /**
230: * Sets the financialObjectTypeCode attribute.
231: *
232: * @param financialObjectTypeCode The financialObjectTypeCode to set.
233: */
234: public void setFinancialObjectTypeCode(
235: String financialObjectTypeCode) {
236: this .financialObjectTypeCode = financialObjectTypeCode;
237: }
238:
239: /**
240: * Gets the universityFiscalPeriodCode attribute.
241: *
242: * @return Returns the universityFiscalPeriodCode
243: */
244: public String getUniversityFiscalPeriodCode() {
245: return universityFiscalPeriodCode;
246: }
247:
248: /**
249: * Sets the universityFiscalPeriodCode attribute.
250: *
251: * @param universityFiscalPeriodCode The universityFiscalPeriodCode to set.
252: */
253: public void setUniversityFiscalPeriodCode(
254: String universityFiscalPeriodCode) {
255: this .universityFiscalPeriodCode = universityFiscalPeriodCode;
256: }
257:
258: /**
259: * Gets the financialDocumentTypeCode attribute.
260: *
261: * @return Returns the financialDocumentTypeCode
262: */
263: public String getFinancialDocumentTypeCode() {
264: return financialDocumentTypeCode;
265: }
266:
267: /**
268: * Sets the financialDocumentTypeCode attribute.
269: *
270: * @param financialDocumentTypeCode The financialDocumentTypeCode to set.
271: */
272: public void setFinancialDocumentTypeCode(
273: String financialDocumentTypeCode) {
274: this .financialDocumentTypeCode = financialDocumentTypeCode;
275: }
276:
277: /**
278: * Gets the financialSystemOriginationCode attribute.
279: *
280: * @return Returns the financialSystemOriginationCode
281: */
282: public String getFinancialSystemOriginationCode() {
283: return financialSystemOriginationCode;
284: }
285:
286: /**
287: * Sets the financialSystemOriginationCode attribute.
288: *
289: * @param financialSystemOriginationCode The financialSystemOriginationCode to set.
290: */
291: public void setFinancialSystemOriginationCode(
292: String financialSystemOriginationCode) {
293: this .financialSystemOriginationCode = financialSystemOriginationCode;
294: }
295:
296: /**
297: * Gets the documentNumber attribute.
298: *
299: * @return Returns the documentNumber
300: */
301: public String getDocumentNumber() {
302: return documentNumber;
303: }
304:
305: /**
306: * Sets the documentNumber attribute.
307: *
308: * @param documentNumber The documentNumber to set.
309: */
310: public void setDocumentNumber(String documentNumber) {
311: this .documentNumber = documentNumber;
312: }
313:
314: /**
315: * Gets the transactionLedgerEntrySequenceNumber attribute.
316: *
317: * @return Returns the transactionLedgerEntrySequenceNumber
318: */
319: public Integer getTransactionLedgerEntrySequenceNumber() {
320: return transactionLedgerEntrySequenceNumber;
321: }
322:
323: /**
324: * Sets the transactionLedgerEntrySequenceNumber attribute.
325: *
326: * @param transactionLedgerEntrySequenceNumber The transactionLedgerEntrySequenceNumber to set.
327: */
328: public void setTransactionLedgerEntrySequenceNumber(
329: Integer transactionLedgerEntrySequenceNumber) {
330: this .transactionLedgerEntrySequenceNumber = transactionLedgerEntrySequenceNumber;
331: }
332:
333: /**
334: * Gets the transactionLedgerEntryDescription attribute.
335: *
336: * @return Returns the transactionLedgerEntryDescription
337: */
338: public String getTransactionLedgerEntryDescription() {
339: return transactionLedgerEntryDescription;
340: }
341:
342: /**
343: * Sets the transactionLedgerEntryDescription attribute.
344: *
345: * @param transactionLedgerEntryDescription The transactionLedgerEntryDescription to set.
346: */
347: public void setTransactionLedgerEntryDescription(
348: String transactionLedgerEntryDescription) {
349: this .transactionLedgerEntryDescription = transactionLedgerEntryDescription;
350: }
351:
352: /**
353: * Gets the transactionLedgerEntryAmount attribute.
354: *
355: * @return Returns the transactionLedgerEntryAmount
356: */
357: public KualiDecimal getTransactionLedgerEntryAmount() {
358: return transactionLedgerEntryAmount;
359: }
360:
361: /**
362: * Sets the transactionLedgerEntryAmount attribute.
363: *
364: * @param transactionLedgerEntryAmount The transactionLedgerEntryAmount to set.
365: */
366: public void setTransactionLedgerEntryAmount(
367: KualiDecimal transactionLedgerEntryAmount) {
368: this .transactionLedgerEntryAmount = transactionLedgerEntryAmount;
369: }
370:
371: /**
372: * Gets the transactionDebitCreditCode attribute.
373: *
374: * @return Returns the transactionDebitCreditCode
375: */
376: public String getTransactionDebitCreditCode() {
377: return transactionDebitCreditCode;
378: }
379:
380: /**
381: * Sets the transactionDebitCreditCode attribute.
382: *
383: * @param transactionDebitCreditCode The transactionDebitCreditCode to set.
384: */
385: public void setTransactionDebitCreditCode(
386: String transactionDebitCreditCode) {
387: this .transactionDebitCreditCode = transactionDebitCreditCode;
388: }
389:
390: /**
391: * Gets the transactionDate attribute.
392: *
393: * @return Returns the transactionDate
394: */
395: public Date getTransactionDate() {
396: return transactionDate;
397: }
398:
399: /**
400: * Sets the transactionDate attribute.
401: *
402: * @param transactionDate The transactionDate to set.
403: */
404: public void setTransactionDate(Date transactionDate) {
405: this .transactionDate = transactionDate;
406: }
407:
408: /**
409: * Gets the organizationDocumentNumber attribute.
410: *
411: * @return Returns the organizationDocumentNumber
412: */
413: public String getOrganizationDocumentNumber() {
414: return organizationDocumentNumber;
415: }
416:
417: /**
418: * Sets the organizationDocumentNumber attribute.
419: *
420: * @param organizationDocumentNumber The organizationDocumentNumber to set.
421: */
422: public void setOrganizationDocumentNumber(
423: String organizationDocumentNumber) {
424: this .organizationDocumentNumber = organizationDocumentNumber;
425: }
426:
427: /**
428: * Gets the projectCode attribute.
429: *
430: * @return Returns the projectCode
431: */
432: public String getProjectCode() {
433: return projectCode;
434: }
435:
436: /**
437: * Sets the projectCode attribute.
438: *
439: * @param projectCode The projectCode to set.
440: */
441: public void setProjectCode(String projectCode) {
442: this .projectCode = projectCode;
443: }
444:
445: /**
446: * Gets the organizationReferenceId attribute.
447: *
448: * @return Returns the organizationReferenceId
449: */
450: public String getOrganizationReferenceId() {
451: return organizationReferenceId;
452: }
453:
454: /**
455: * Sets the organizationReferenceId attribute.
456: *
457: * @param organizationReferenceId The organizationReferenceId to set.
458: */
459: public void setOrganizationReferenceId(
460: String organizationReferenceId) {
461: this .organizationReferenceId = organizationReferenceId;
462: }
463:
464: /**
465: * Gets the referenceFinancialDocumentTypeCode attribute.
466: *
467: * @return Returns the referenceFinancialDocumentTypeCode
468: */
469: public String getReferenceFinancialDocumentTypeCode() {
470: return referenceFinancialDocumentTypeCode;
471: }
472:
473: /**
474: * Sets the referenceFinancialDocumentTypeCode attribute.
475: *
476: * @param referenceFinancialDocumentTypeCode The referenceFinancialDocumentTypeCode to set.
477: */
478: public void setReferenceFinancialDocumentTypeCode(
479: String referenceFinancialDocumentTypeCode) {
480: this .referenceFinancialDocumentTypeCode = referenceFinancialDocumentTypeCode;
481: }
482:
483: /**
484: * Gets the referenceFinancialSystemOriginationCode attribute.
485: *
486: * @return Returns the referenceFinancialSystemOriginationCode
487: */
488: public String getReferenceFinancialSystemOriginationCode() {
489: return referenceFinancialSystemOriginationCode;
490: }
491:
492: /**
493: * Sets the referenceFinancialSystemOriginationCode attribute.
494: *
495: * @param referenceFinancialSystemOriginationCode The referenceFinancialSystemOriginationCode to set.
496: */
497: public void setReferenceFinancialSystemOriginationCode(
498: String referenceFinancialSystemOriginationCode) {
499: this .referenceFinancialSystemOriginationCode = referenceFinancialSystemOriginationCode;
500: }
501:
502: /**
503: * Gets the referenceFinancialDocumentNumber attribute.
504: *
505: * @return Returns the referenceFinancialDocumentNumber
506: */
507: public String getReferenceFinancialDocumentNumber() {
508: return referenceFinancialDocumentNumber;
509: }
510:
511: /**
512: * Sets the referenceFinancialDocumentNumber attribute.
513: *
514: * @param referenceFinancialDocumentNumber The referenceFinancialDocumentNumber to set.
515: */
516: public void setReferenceFinancialDocumentNumber(
517: String referenceFinancialDocumentNumber) {
518: this .referenceFinancialDocumentNumber = referenceFinancialDocumentNumber;
519: }
520:
521: /**
522: * Gets the financialDocumentReversalDate attribute.
523: *
524: * @return Returns the financialDocumentReversalDate
525: */
526: public Date getFinancialDocumentReversalDate() {
527: return financialDocumentReversalDate;
528: }
529:
530: /**
531: * Sets the financialDocumentReversalDate attribute.
532: *
533: * @param financialDocumentReversalDate The financialDocumentReversalDate to set.
534: */
535: public void setFinancialDocumentReversalDate(
536: Date financialDocumentReversalDate) {
537: this .financialDocumentReversalDate = financialDocumentReversalDate;
538: }
539:
540: /**
541: * Gets the transactionEncumbranceUpdateCode attribute.
542: *
543: * @return Returns the transactionEncumbranceUpdateCode
544: */
545: public String getTransactionEncumbranceUpdateCode() {
546: return transactionEncumbranceUpdateCode;
547: }
548:
549: /**
550: * Sets the transactionEncumbranceUpdateCode attribute.
551: *
552: * @param transactionEncumbranceUpdateCode The transactionEncumbranceUpdateCode to set.
553: */
554: public void setTransactionEncumbranceUpdateCode(
555: String transactionEncumbranceUpdateCode) {
556: this .transactionEncumbranceUpdateCode = transactionEncumbranceUpdateCode;
557: }
558:
559: /**
560: * Gets the transactionPostingDate attribute.
561: *
562: * @return Returns the transactionPostingDate
563: */
564: public Date getTransactionPostingDate() {
565: return transactionPostingDate;
566: }
567:
568: /**
569: * Sets the transactionPostingDate attribute.
570: *
571: * @param transactionPostingDate The transactionPostingDate to set.
572: */
573: public void setTransactionPostingDate(Date transactionPostingDate) {
574: this .transactionPostingDate = transactionPostingDate;
575: }
576:
577: /**
578: * Gets the transactionDateTimeStamp attribute.
579: *
580: * @return Returns the transactionDateTimeStamp
581: */
582: public Date getTransactionDateTimeStamp() {
583: return transactionDateTimeStamp;
584: }
585:
586: /**
587: * Sets the transactionDateTimeStamp attribute.
588: *
589: * @param transactionDateTimeStamp The transactionDateTimeStamp to set.
590: */
591: public void setTransactionDateTimeStamp(
592: Date transactionDateTimeStamp) {
593: this .transactionDateTimeStamp = transactionDateTimeStamp;
594: }
595:
596: /**
597: * Gets the financialObject attribute.
598: *
599: * @return Returns the financialObject
600: */
601: public ObjectCode getFinancialObject() {
602: return financialObject;
603: }
604:
605: /**
606: * Sets the financialObject attribute.
607: *
608: * @param financialObject The financialObject to set.
609: * @deprecated
610: */
611: public void setFinancialObject(ObjectCode financialObject) {
612: this .financialObject = financialObject;
613: }
614:
615: /**
616: * Gets the account attribute.
617: *
618: * @return Returns the account
619: */
620: public Account getAccount() {
621: return account;
622: }
623:
624: /**
625: * Sets the account attribute.
626: *
627: * @param account The account to set.
628: * @deprecated
629: */
630: public void setAccount(Account account) {
631: this .account = account;
632: }
633:
634: /**
635: * Gets the chartOfAccounts attribute.
636: *
637: * @return Returns the chartOfAccounts
638: */
639: public Chart getChartOfAccounts() {
640: return chartOfAccounts;
641: }
642:
643: /**
644: * Sets the chartOfAccounts attribute.
645: *
646: * @param chartOfAccounts The chartOfAccounts to set.
647: * @deprecated
648: */
649: public void setChartOfAccounts(Chart chartOfAccounts) {
650: this .chartOfAccounts = chartOfAccounts;
651: }
652:
653: /**
654: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
655: */
656: protected LinkedHashMap toStringMapper() {
657: LinkedHashMap m = new LinkedHashMap();
658: m.put("personUniversalIdentifier",
659: this .personUniversalIdentifier);
660: if (this .universityFiscalYear != null) {
661: m.put("universityFiscalYear", this .universityFiscalYear
662: .toString());
663: }
664: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
665: m.put("accountNumber", this .accountNumber);
666: m.put("subAccountNumber", this .subAccountNumber);
667: m.put("financialObjectCode", this .financialObjectCode);
668: m.put("financialSubObjectCode", this .financialSubObjectCode);
669: m
670: .put("financialBalanceTypeCode",
671: this .financialBalanceTypeCode);
672: m.put("financialObjectTypeCode", this .financialObjectTypeCode);
673: m.put("universityFiscalPeriodCode",
674: this .universityFiscalPeriodCode);
675: m.put("financialDocumentTypeCode",
676: this .financialDocumentTypeCode);
677: m.put("financialSystemOriginationCode",
678: this .financialSystemOriginationCode);
679: m
680: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
681: this .documentNumber);
682: if (this .transactionLedgerEntrySequenceNumber != null) {
683: m.put("transactionLedgerEntrySequenceNumber",
684: this.transactionLedgerEntrySequenceNumber
685: .toString());
686: }
687: return m;
688: }
689: }
|