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.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022:
023: /**
024: * Purchase Order Item Capital Asset Business Object.
025: */
026: public class PurchaseOrderItemCapitalAsset extends
027: PersistableBusinessObjectBase {
028:
029: private String documentNumber;
030: private Integer purchaseOrderItemCapitalAssetIdentifier;
031: private Integer purchaseOrderItemIdentifier;
032: private Long capitalAssetNumber;
033:
034: private PurchaseOrderItem purchaseOrderItem;
035:
036: /**
037: * Default constructor.
038: */
039: public PurchaseOrderItemCapitalAsset() {
040:
041: }
042:
043: public String getDocumentNumber() {
044: return documentNumber;
045: }
046:
047: public void setDocumentNumber(String documentNumber) {
048: this .documentNumber = documentNumber;
049: }
050:
051: public Integer getPurchaseOrderItemCapitalAssetIdentifier() {
052: return purchaseOrderItemCapitalAssetIdentifier;
053: }
054:
055: public void setPurchaseOrderItemCapitalAssetIdentifier(
056: Integer purchaseOrderItemCapitalAssetIdentifier) {
057: this .purchaseOrderItemCapitalAssetIdentifier = purchaseOrderItemCapitalAssetIdentifier;
058: }
059:
060: public Integer getPurchaseOrderItemIdentifier() {
061: return purchaseOrderItemIdentifier;
062: }
063:
064: public void setPurchaseOrderItemIdentifier(
065: Integer purchaseOrderItemIdentifier) {
066: this .purchaseOrderItemIdentifier = purchaseOrderItemIdentifier;
067: }
068:
069: public Long getCapitalAssetNumber() {
070: return capitalAssetNumber;
071: }
072:
073: public void setCapitalAssetNumber(Long capitalAssetNumber) {
074: this .capitalAssetNumber = capitalAssetNumber;
075: }
076:
077: public PurchaseOrderItem getPurchaseOrderItem() {
078: return purchaseOrderItem;
079: }
080:
081: /**
082: * Sets the purchaseOrderItem attribute.
083: *
084: * @param purchaseOrderItem The purchaseOrderItem to set.
085: * @deprecated
086: */
087: public void setPurchaseOrderItem(PurchaseOrderItem purchaseOrderItem) {
088: this .purchaseOrderItem = purchaseOrderItem;
089: }
090:
091: /**
092: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
093: */
094: protected LinkedHashMap toStringMapper() {
095: LinkedHashMap m = new LinkedHashMap();
096: m.put("documentNumber", this .documentNumber);
097: if (this .purchaseOrderItemCapitalAssetIdentifier != null) {
098: m.put("purchaseOrderItemCapitalAssetIdentifier",
099: this.purchaseOrderItemCapitalAssetIdentifier
100: .toString());
101: }
102: return m;
103: }
104:
105: }
|