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.purap.bo;
018:
019: import java.sql.Date;
020: import java.util.LinkedHashMap;
021:
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.module.purap.document.PurchaseOrderDocument;
024:
025: /**
026: * Purchase Order Vendor Stipulation.
027: */
028: public class PurchaseOrderVendorStipulation extends
029: PersistableBusinessObjectBase {
030:
031: private String documentNumber;
032: private Integer purchaseOrderVendorStipulationIdentifier;
033: private String vendorStipulationDescription;
034: private String vendorStipulationAuthorEmployeeIdentifier;
035: private Date vendorStipulationCreateDate;
036:
037: private PurchaseOrderDocument purchaseOrder;
038:
039: public PurchaseOrderVendorStipulation() {
040: }
041:
042: public String getDocumentNumber() {
043: return documentNumber;
044: }
045:
046: public void setDocumentNumber(String documentNumber) {
047: this .documentNumber = documentNumber;
048: }
049:
050: public Integer getPurchaseOrderVendorStipulationIdentifier() {
051: return purchaseOrderVendorStipulationIdentifier;
052: }
053:
054: public void setPurchaseOrderVendorStipulationIdentifier(
055: Integer purchaseOrderVendorStipulationIdentifier) {
056: this .purchaseOrderVendorStipulationIdentifier = purchaseOrderVendorStipulationIdentifier;
057: }
058:
059: public String getVendorStipulationDescription() {
060: return vendorStipulationDescription;
061: }
062:
063: public void setVendorStipulationDescription(
064: String vendorStipulationDescription) {
065: this .vendorStipulationDescription = vendorStipulationDescription;
066: }
067:
068: public String getVendorStipulationAuthorEmployeeIdentifier() {
069: return vendorStipulationAuthorEmployeeIdentifier;
070: }
071:
072: public void setVendorStipulationAuthorEmployeeIdentifier(
073: String vendorStipulationAuthorEmployeeIdentifier) {
074: this .vendorStipulationAuthorEmployeeIdentifier = vendorStipulationAuthorEmployeeIdentifier;
075: }
076:
077: public Date getVendorStipulationCreateDate() {
078: return vendorStipulationCreateDate;
079: }
080:
081: public void setVendorStipulationCreateDate(
082: Date vendorStipulationCreateDate) {
083: this .vendorStipulationCreateDate = vendorStipulationCreateDate;
084: }
085:
086: public PurchaseOrderDocument getPurchaseOrder() {
087: return purchaseOrder;
088: }
089:
090: /**
091: * Sets the purchaseOrder attribute.
092: *
093: * @param purchaseOrder The purchaseOrder to set.
094: * @deprecated
095: */
096: public void setPurchaseOrder(PurchaseOrderDocument purchaseOrder) {
097: this .purchaseOrder = purchaseOrder;
098: }
099:
100: /**
101: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
102: */
103: protected LinkedHashMap toStringMapper() {
104: LinkedHashMap m = new LinkedHashMap();
105: m.put("documentNumber", this .documentNumber);
106: if (this .purchaseOrderVendorStipulationIdentifier != null) {
107: m.put("purchaseOrderVendorStipulationIdentifier",
108: this.purchaseOrderVendorStipulationIdentifier
109: .toString());
110: }
111: return m;
112: }
113:
114: }
|