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: package org.kuali.module.financial.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.PersistableBusinessObjectBase;
021: import org.kuali.module.chart.bo.Account;
022: import org.kuali.module.chart.bo.Chart;
023:
024: /**
025: * This class is used to represent a ServiceBillingControl business object.
026: */
027: public class ServiceBillingControl extends
028: PersistableBusinessObjectBase {
029: private static final long serialVersionUID = -615796117852059115L;
030:
031: private String chartOfAccountsCode;
032: private String accountNumber;
033: private String workgroupName;
034:
035: private Chart chartOfAccounts;
036: private Account account;
037:
038: /**
039: * This constructor sets up empty instances for the dependent objects...
040: */
041: public ServiceBillingControl() {
042: account = new Account();
043: }
044:
045: /**
046: * Gets the chartOfAccountsCode attribute.
047: *
048: * @return Returns the chartOfAccountsCode.
049: */
050: public String getChartOfAccountsCode() {
051: return chartOfAccountsCode;
052: }
053:
054: /**
055: * Sets the chartOfAccountsCode attribute value.
056: *
057: * @param chartOfAccountsCode The chartOfAccountsCode to set.
058: */
059: public void setChartOfAccountsCode(String chartOfAccountsCode) {
060: this .chartOfAccountsCode = chartOfAccountsCode;
061: }
062:
063: /**
064: * Gets the accountNumber attribute.
065: *
066: * @return Returns the accountNumber.
067: */
068: public String getAccountNumber() {
069: return accountNumber;
070: }
071:
072: /**
073: * Sets the accountNumber attribute value.
074: *
075: * @param accountNumber The accountNumber to set.
076: */
077: public void setAccountNumber(String accountNumber) {
078: this .accountNumber = accountNumber;
079: }
080:
081: /**
082: * @return Returns the workgroupName.
083: */
084: public String getWorkgroupName() {
085: return workgroupName;
086: }
087:
088: /**
089: * @param workgroupName The workgroupName to set.
090: */
091: public void setWorkgroupName(String workgroupName) {
092: this .workgroupName = workgroupName;
093: }
094:
095: /**
096: * @return Returns the chartOfAccounts.
097: */
098: public Chart getChartOfAccounts() {
099: return chartOfAccounts;
100: }
101:
102: /**
103: * @param chartOfAccounts The chartOfAccounts to set.
104: * @deprecated
105: */
106: public void setChartOfAccounts(Chart chartOfAccounts) {
107: this .chartOfAccounts = chartOfAccounts;
108: }
109:
110: /**
111: * Gets the account attribute.
112: *
113: * @return Returns the account.
114: */
115: public Account getAccount() {
116: return account;
117: }
118:
119: /**
120: * Sets the account attribute value.
121: *
122: * @param account The account to set.
123: * @deprecated
124: */
125: public void setAccount(Account account) {
126: this .account = account;
127: }
128:
129: /**
130: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
131: */
132: protected LinkedHashMap toStringMapper() {
133: LinkedHashMap map = new LinkedHashMap();
134: map.put("charOfAccountsCode", getChartOfAccountsCode());
135: map.put("accountNumber", getAccountNumber());
136: return map;
137: }
138:
139: }
|