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