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.financial.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.financial.document.AdvanceDepositDocument;
026:
027: /**
028: * This business object represents the advance deposit detail business object that is used by the Advance Deposit Document.
029: */
030: public class AdvanceDepositDetail extends PersistableBusinessObjectBase {
031: private String documentNumber;
032: private String financialDocumentTypeCode;
033: private String financialDocumentColumnTypeCode;
034: private Integer financialDocumentLineNumber;
035: private Date financialDocumentAdvanceDepositDate;
036: private String financialDocumentAdvanceDepositReferenceNumber;
037: private String financialDocumentAdvanceDepositDescription;
038: private KualiDecimal financialDocumentAdvanceDepositAmount;
039: private String financialDocumentBankCode;
040: private String financialDocumentBankAccountNumber;
041:
042: private AdvanceDepositDocument advanceDepositDocument;
043: private Bank financialDocumentBank;
044: private BankAccount financialDocumentBankAccount;
045:
046: /**
047: * Default constructor.
048: */
049: public AdvanceDepositDetail() {
050:
051: }
052:
053: /**
054: * Gets the documentNumber attribute.
055: *
056: * @return Returns the documentNumber
057: */
058: public String getDocumentNumber() {
059: return documentNumber;
060: }
061:
062: /**
063: * Sets the documentNumber attribute.
064: *
065: * @param documentNumber The documentNumber to set.
066: */
067: public void setDocumentNumber(String documentNumber) {
068: this .documentNumber = documentNumber;
069: }
070:
071: /**
072: * Gets the financialDocumentTypeCode attribute.
073: *
074: * @return Returns the financialDocumentTypeCode
075: */
076: public String getFinancialDocumentTypeCode() {
077: return financialDocumentTypeCode;
078: }
079:
080: /**
081: * Sets the financialDocumentTypeCode attribute.
082: *
083: * @param financialDocumentTypeCode The financialDocumentTypeCode to set.
084: */
085: public void setFinancialDocumentTypeCode(
086: String financialDocumentTypeCode) {
087: this .financialDocumentTypeCode = financialDocumentTypeCode;
088: }
089:
090: /**
091: * Gets the financialDocumentColumnTypeCode attribute.
092: *
093: * @return Returns the financialDocumentColumnTypeCode
094: */
095: public String getFinancialDocumentColumnTypeCode() {
096: return financialDocumentColumnTypeCode;
097: }
098:
099: /**
100: * Sets the financialDocumentColumnTypeCode attribute.
101: *
102: * @param financialDocumentColumnTypeCode The financialDocumentColumnTypeCode to set.
103: */
104: public void setFinancialDocumentColumnTypeCode(
105: String financialDocumentColumnTypeCode) {
106: this .financialDocumentColumnTypeCode = financialDocumentColumnTypeCode;
107: }
108:
109: /**
110: * Gets the financialDocumentLineNumber attribute.
111: *
112: * @return Returns the financialDocumentLineNumber
113: */
114: public Integer getFinancialDocumentLineNumber() {
115: return financialDocumentLineNumber;
116: }
117:
118: /**
119: * Sets the financialDocumentLineNumber attribute.
120: *
121: * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
122: */
123: public void setFinancialDocumentLineNumber(
124: Integer financialDocumentLineNumber) {
125: this .financialDocumentLineNumber = financialDocumentLineNumber;
126: }
127:
128: /**
129: * Gets the financialDocumentAdvanceDepositDate attribute.
130: *
131: * @return Returns the financialDocumentAdvanceDepositDate
132: */
133: public Date getFinancialDocumentAdvanceDepositDate() {
134: return financialDocumentAdvanceDepositDate;
135: }
136:
137: /**
138: * Sets the financialDocumentAdvanceDepositDate attribute.
139: *
140: * @param financialDocumentAdvanceDepositDate The financialDocumentAdvanceDepositDate to set.
141: */
142: public void setFinancialDocumentAdvanceDepositDate(
143: Date financialDocumentAdvanceDepositDate) {
144: this .financialDocumentAdvanceDepositDate = financialDocumentAdvanceDepositDate;
145: }
146:
147: /**
148: * Gets the financialDocumentAdvanceDepositReferenceNumber attribute.
149: *
150: * @return Returns the financialDocumentAdvanceDepositReferenceNumber
151: */
152: public String getFinancialDocumentAdvanceDepositReferenceNumber() {
153: return financialDocumentAdvanceDepositReferenceNumber;
154: }
155:
156: /**
157: * Sets the financialDocumentAdvanceDepositReferenceNumber attribute.
158: *
159: * @param financialDocumentAdvanceDepositReferenceNumber The financialDocumentAdvanceDepositReferenceNumber to set.
160: */
161: public void setFinancialDocumentAdvanceDepositReferenceNumber(
162: String financialDocumentAdvanceDepositReferenceNumber) {
163: this .financialDocumentAdvanceDepositReferenceNumber = financialDocumentAdvanceDepositReferenceNumber;
164: }
165:
166: /**
167: * Gets the financialDocumentAdvanceDepositDescription attribute.
168: *
169: * @return Returns the financialDocumentAdvanceDepositDescription
170: */
171: public String getFinancialDocumentAdvanceDepositDescription() {
172: return financialDocumentAdvanceDepositDescription;
173: }
174:
175: /**
176: * Sets the financialDocumentAdvanceDepositDescription attribute.
177: *
178: * @param financialDocumentAdvanceDepositDescription The financialDocumentAdvanceDepositDescription to set.
179: */
180: public void setFinancialDocumentAdvanceDepositDescription(
181: String financialDocumentAdvanceDepositDescription) {
182: this .financialDocumentAdvanceDepositDescription = financialDocumentAdvanceDepositDescription;
183: }
184:
185: /**
186: * Gets the financialDocumentAdvanceDepositAmount attribute.
187: *
188: * @return Returns the financialDocumentAdvanceDepositAmount
189: */
190: public KualiDecimal getFinancialDocumentAdvanceDepositAmount() {
191: return financialDocumentAdvanceDepositAmount;
192: }
193:
194: /**
195: * Sets the financialDocumentAdvanceDepositAmount attribute.
196: *
197: * @param financialDocumentAdvanceDepositAmount The financialDocumentAdvanceDepositAmount to set.
198: */
199: public void setFinancialDocumentAdvanceDepositAmount(
200: KualiDecimal financialDocumentAdvanceDepositAmount) {
201: this .financialDocumentAdvanceDepositAmount = financialDocumentAdvanceDepositAmount;
202: }
203:
204: /**
205: * Gets the financialDocumentBankCode attribute.
206: *
207: * @return Returns the financialDocumentBankCode
208: */
209: public String getFinancialDocumentBankCode() {
210: return financialDocumentBankCode;
211: }
212:
213: /**
214: * Sets the financialDocumentBankCode attribute.
215: *
216: * @param financialDocumentBankCode The financialDocumentBankCode to set.
217: */
218: public void setFinancialDocumentBankCode(
219: String financialDocumentBankCode) {
220: this .financialDocumentBankCode = financialDocumentBankCode;
221: }
222:
223: /**
224: * Gets the financialDocumentBankAccountNumber attribute.
225: *
226: * @return Returns the financialDocumentBankAccountNumber
227: */
228: public String getFinancialDocumentBankAccountNumber() {
229: return financialDocumentBankAccountNumber;
230: }
231:
232: /**
233: * Sets the financialDocumentBankAccountNumber attribute.
234: *
235: * @param financialDocumentBankAccountNumber The financialDocumentBankAccountNumber to set.
236: */
237: public void setFinancialDocumentBankAccountNumber(
238: String financialDocumentBankAccountNumber) {
239: this .financialDocumentBankAccountNumber = financialDocumentBankAccountNumber;
240: }
241:
242: /**
243: * @return AdvanceDepositDocument
244: */
245: public AdvanceDepositDocument getAdvanceDepositDocument() {
246: return advanceDepositDocument;
247: }
248:
249: /**
250: * @param advanceDepositDocument
251: */
252: public void setAdvanceDepositDocument(
253: AdvanceDepositDocument advanceDepositDocument) {
254: this .advanceDepositDocument = advanceDepositDocument;
255: }
256:
257: /**
258: * @return Bank
259: */
260: public Bank getFinancialDocumentBank() {
261: return financialDocumentBank;
262: }
263:
264: /**
265: * @param financialDocumentBank
266: */
267: public void setFinancialDocumentBank(Bank financialDocumentBank) {
268: this .financialDocumentBank = financialDocumentBank;
269: }
270:
271: /**
272: * @return BankAccount
273: */
274: public BankAccount getFinancialDocumentBankAccount() {
275: return financialDocumentBankAccount;
276: }
277:
278: /**
279: * @param financialDocumentBankAccount
280: */
281: public void setFinancialDocumentBankAccount(
282: BankAccount financialDocumentBankAccount) {
283: this .financialDocumentBankAccount = financialDocumentBankAccount;
284: }
285:
286: /**
287: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
288: */
289: @Override
290: protected LinkedHashMap toStringMapper() {
291: LinkedHashMap m = new LinkedHashMap();
292: m
293: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
294: this .documentNumber);
295: m.put("financialDocumentTypeCode",
296: this .financialDocumentTypeCode);
297: m.put("financialDocumentColumnTypeCode",
298: this .financialDocumentColumnTypeCode);
299: if (this .financialDocumentLineNumber != null) {
300: m.put("financialDocumentLineNumber",
301: this.financialDocumentLineNumber.toString());
302: }
303: return m;
304: }
305: }
|