001: /*
002: * Copyright 2005-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:
026: /**
027: * This class is used to represent a revolving fund detail business object.
028: */
029: public class RevolvingFundDetail extends PersistableBusinessObjectBase {
030:
031: private String documentNumber;
032: private String financialDocumentTypeCode;
033: private String financialDocumentColumnTypeCode;
034: private Integer financialDocumentLineNumber;
035: private Date financialDocumentRevolvingFundDate;
036: private String financialDocumentRevolvingFundReferenceNumber;
037: private String financialDocumentRevolvingFundDescription;
038: private KualiDecimal financialDocumentRevolvingFundAmount;
039: private String financialDocumentBankCode;
040: private String financialDocumentBankAccountNumber;
041:
042: /**
043: * Default constructor.
044: */
045: public RevolvingFundDetail() {
046:
047: }
048:
049: /**
050: * Gets the documentNumber attribute.
051: *
052: * @return Returns the documentNumber
053: */
054: public String getDocumentNumber() {
055: return documentNumber;
056: }
057:
058: /**
059: * Sets the documentNumber attribute.
060: *
061: * @param documentNumber The documentNumber to set.
062: */
063: public void setDocumentNumber(String documentNumber) {
064: this .documentNumber = documentNumber;
065: }
066:
067: /**
068: * Gets the financialDocumentTypeCode attribute.
069: *
070: * @return Returns the financialDocumentTypeCode
071: */
072: public String getFinancialDocumentTypeCode() {
073: return financialDocumentTypeCode;
074: }
075:
076: /**
077: * Sets the financialDocumentTypeCode attribute.
078: *
079: * @param financialDocumentTypeCode The financialDocumentTypeCode to set.
080: */
081: public void setFinancialDocumentTypeCode(
082: String financialDocumentTypeCode) {
083: this .financialDocumentTypeCode = financialDocumentTypeCode;
084: }
085:
086: /**
087: * Gets the financialDocumentColumnTypeCode attribute.
088: *
089: * @return Returns the financialDocumentColumnTypeCode
090: */
091: public String getFinancialDocumentColumnTypeCode() {
092: return financialDocumentColumnTypeCode;
093: }
094:
095: /**
096: * Sets the financialDocumentColumnTypeCode attribute.
097: *
098: * @param financialDocumentColumnTypeCode The financialDocumentColumnTypeCode to set.
099: */
100: public void setFinancialDocumentColumnTypeCode(
101: String financialDocumentColumnTypeCode) {
102: this .financialDocumentColumnTypeCode = financialDocumentColumnTypeCode;
103: }
104:
105: /**
106: * Gets the financialDocumentLineNumber attribute.
107: *
108: * @return Returns the financialDocumentLineNumber
109: */
110: public Integer getFinancialDocumentLineNumber() {
111: return financialDocumentLineNumber;
112: }
113:
114: /**
115: * Sets the financialDocumentLineNumber attribute.
116: *
117: * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
118: */
119: public void setFinancialDocumentLineNumber(
120: Integer financialDocumentLineNumber) {
121: this .financialDocumentLineNumber = financialDocumentLineNumber;
122: }
123:
124: /**
125: * Gets the financialDocumentRevolvingFundDate attribute.
126: *
127: * @return Returns the financialDocumentRevolvingFundDate
128: */
129: public Date getFinancialDocumentRevolvingFundDate() {
130: return financialDocumentRevolvingFundDate;
131: }
132:
133: /**
134: * Sets the financialDocumentRevolvingFundDate attribute.
135: *
136: * @param financialDocumentRevolvingFundDate The financialDocumentRevolvingFundDate to set.
137: */
138: public void setFinancialDocumentRevolvingFundDate(
139: Date financialDocumentRevolvingFundDate) {
140: this .financialDocumentRevolvingFundDate = financialDocumentRevolvingFundDate;
141: }
142:
143: /**
144: * Gets the financialDocumentRevolvingFundReferenceNumber attribute.
145: *
146: * @return Returns the financialDocumentRevolvingFundReferenceNumber
147: */
148: public String getFinancialDocumentRevolvingFundReferenceNumber() {
149: return financialDocumentRevolvingFundReferenceNumber;
150: }
151:
152: /**
153: * Sets the financialDocumentRevolvingFundReferenceNumber attribute.
154: *
155: * @param financialDocumentRevolvingFundReferenceNumber The financialDocumentRevolvingFundReferenceNumber to set.
156: */
157: public void setFinancialDocumentRevolvingFundReferenceNumber(
158: String financialDocumentRevolvingFundReferenceNumber) {
159: this .financialDocumentRevolvingFundReferenceNumber = financialDocumentRevolvingFundReferenceNumber;
160: }
161:
162: /**
163: * Gets the financialDocumentRevolvingFundDescription attribute.
164: *
165: * @return Returns the financialDocumentRevolvingFundDescription
166: */
167: public String getFinancialDocumentRevolvingFundDescription() {
168: return financialDocumentRevolvingFundDescription;
169: }
170:
171: /**
172: * Sets the financialDocumentRevolvingFundDescription attribute.
173: *
174: * @param financialDocumentRevolvingFundDescription The financialDocumentRevolvingFundDescription to set.
175: */
176: public void setFinancialDocumentRevolvingFundDescription(
177: String financialDocumentRevolvingFundDescription) {
178: this .financialDocumentRevolvingFundDescription = financialDocumentRevolvingFundDescription;
179: }
180:
181: /**
182: * Gets the financialDocumentRevolvingFundAmount attribute.
183: *
184: * @return Returns the financialDocumentRevolvingFundAmount
185: */
186: public KualiDecimal getFinancialDocumentRevolvingFundAmount() {
187: return financialDocumentRevolvingFundAmount;
188: }
189:
190: /**
191: * Sets the financialDocumentRevolvingFundAmount attribute.
192: *
193: * @param financialDocumentRevolvingFundAmount The financialDocumentRevolvingFundAmount to set.
194: */
195: public void setFinancialDocumentRevolvingFundAmount(
196: KualiDecimal financialDocumentRevolvingFundAmount) {
197: this .financialDocumentRevolvingFundAmount = financialDocumentRevolvingFundAmount;
198: }
199:
200: /**
201: * Gets the financialDocumentBankCode attribute.
202: *
203: * @return Returns the financialDocumentBankCode
204: */
205: public String getFinancialDocumentBankCode() {
206: return financialDocumentBankCode;
207: }
208:
209: /**
210: * Sets the financialDocumentBankCode attribute.
211: *
212: * @param financialDocumentBankCode The financialDocumentBankCode to set.
213: */
214: public void setFinancialDocumentBankCode(
215: String financialDocumentBankCode) {
216: this .financialDocumentBankCode = financialDocumentBankCode;
217: }
218:
219: /**
220: * Gets the financialDocumentBankAccountNumber attribute.
221: *
222: * @return Returns the financialDocumentBankAccountNumber
223: */
224: public String getFinancialDocumentBankAccountNumber() {
225: return financialDocumentBankAccountNumber;
226: }
227:
228: /**
229: * Sets the financialDocumentBankAccountNumber attribute.
230: *
231: * @param financialDocumentBankAccountNumber The financialDocumentBankAccountNumber to set.
232: */
233: public void setFinancialDocumentBankAccountNumber(
234: String financialDocumentBankAccountNumber) {
235: this .financialDocumentBankAccountNumber = financialDocumentBankAccountNumber;
236: }
237:
238: /**
239: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
240: */
241: protected LinkedHashMap toStringMapper() {
242: LinkedHashMap m = new LinkedHashMap();
243: m
244: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
245: this .documentNumber);
246: m.put("financialDocumentTypeCode",
247: this .financialDocumentTypeCode);
248: m.put("financialDocumentColumnTypeCode",
249: this .financialDocumentColumnTypeCode);
250: if (this .financialDocumentLineNumber != null) {
251: m.put("financialDocumentLineNumber",
252: this.financialDocumentLineNumber.toString());
253: }
254: return m;
255: }
256: }
|