001: /*
002: * Copyright 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.vendor.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.Inactivateable;
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.module.chart.bo.Chart;
024: import org.kuali.module.chart.bo.Org;
025:
026: /**
027: * Customer numbers that may have been assigned by the Vendor to various <code>Chart</code> and/or <code>Org</code>.
028: *
029: * @see org.kuali.module.chart.bo.Chart
030: * @see org.kuali.module.chart.bo.Org
031: */
032: public class VendorCustomerNumber extends PersistableBusinessObjectBase
033: implements Inactivateable {
034:
035: private Integer vendorCustomerNumberGeneratedIdentifier;
036: private Integer vendorHeaderGeneratedIdentifier;
037: private Integer vendorDetailAssignedIdentifier;
038: private String vendorCustomerNumber;
039: private String chartOfAccountsCode;
040: private String vendorOrganizationCode;
041: private boolean active;
042:
043: private VendorDetail vendorDetail;
044: private Org vendorOrganization;
045: private Chart chartOfAccounts;
046:
047: /**
048: * Default constructor.
049: */
050: public VendorCustomerNumber() {
051:
052: }
053:
054: public Integer getVendorCustomerNumberGeneratedIdentifier() {
055:
056: return vendorCustomerNumberGeneratedIdentifier;
057: }
058:
059: public void setVendorCustomerNumberGeneratedIdentifier(
060: Integer vendorCustomerNumberGeneratedIdentifier) {
061: this .vendorCustomerNumberGeneratedIdentifier = vendorCustomerNumberGeneratedIdentifier;
062: }
063:
064: public Integer getVendorHeaderGeneratedIdentifier() {
065:
066: return vendorHeaderGeneratedIdentifier;
067: }
068:
069: public void setVendorHeaderGeneratedIdentifier(
070: Integer vendorHeaderGeneratedIdentifier) {
071: this .vendorHeaderGeneratedIdentifier = vendorHeaderGeneratedIdentifier;
072: }
073:
074: public Integer getVendorDetailAssignedIdentifier() {
075:
076: return vendorDetailAssignedIdentifier;
077: }
078:
079: public void setVendorDetailAssignedIdentifier(
080: Integer vendorDetailAssignedIdentifier) {
081: this .vendorDetailAssignedIdentifier = vendorDetailAssignedIdentifier;
082: }
083:
084: public String getVendorCustomerNumber() {
085:
086: return vendorCustomerNumber;
087: }
088:
089: public void setVendorCustomerNumber(String vendorCustomerNumber) {
090: this .vendorCustomerNumber = vendorCustomerNumber;
091: }
092:
093: public String getChartOfAccountsCode() {
094:
095: return chartOfAccountsCode;
096: }
097:
098: public void setChartOfAccountsCode(String chartOfAccountsCode) {
099: this .chartOfAccountsCode = chartOfAccountsCode;
100: }
101:
102: public String getVendorOrganizationCode() {
103:
104: return vendorOrganizationCode;
105: }
106:
107: public void setVendorOrganizationCode(String vendorOrganizationCode) {
108: this .vendorOrganizationCode = vendorOrganizationCode;
109: }
110:
111: public boolean isActive() {
112:
113: return active;
114: }
115:
116: public void setActive(boolean active) {
117: this .active = active;
118: }
119:
120: public VendorDetail getVendorDetail() {
121:
122: return vendorDetail;
123: }
124:
125: /**
126: * Sets the vendorDetail attribute.
127: *
128: * @param vendorDetail The vendorDetail to set.
129: * @deprecated
130: */
131: public void setVendorDetail(VendorDetail vendorDetail) {
132: this .vendorDetail = vendorDetail;
133: }
134:
135: public Org getVendorOrganization() {
136:
137: return vendorOrganization;
138: }
139:
140: /**
141: * Sets the vendorOrganization attribute.
142: *
143: * @param vendorOrganization The vendorOrganization to set.
144: * @deprecated
145: */
146: public void setVendorOrganization(Org vendorOrganization) {
147: this .vendorOrganization = vendorOrganization;
148: }
149:
150: public Chart getChartOfAccounts() {
151:
152: return chartOfAccounts;
153: }
154:
155: /**
156: * Sets the chartOfAccounts attribute.
157: *
158: * @param chartOfAccounts The chartOfAccounts to set.
159: * @deprecated
160: */
161: public void setChartOfAccounts(Chart chartOfAccounts) {
162: this .chartOfAccounts = chartOfAccounts;
163: }
164:
165: /**
166: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
167: */
168: protected LinkedHashMap toStringMapper() {
169: LinkedHashMap m = new LinkedHashMap();
170: if (this .vendorCustomerNumberGeneratedIdentifier != null) {
171: m.put("vendorCustomerNumberGeneratedIdentifier",
172: this.vendorCustomerNumberGeneratedIdentifier
173: .toString());
174: }
175:
176: return m;
177: }
178: }
|