001/*
002 * Copyright 2006 The Kuali Foundation
003 * 
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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
017package org.kuali.ole.module.purap.businessobject;
018
019import org.kuali.ole.sys.context.SpringContext;
020import org.kuali.rice.core.api.datetime.DateTimeService;
021import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
022import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
023
024import java.sql.Date;
025import java.util.LinkedHashMap;
026
027/**
028 * Purchase Order Contract Language Business Object.
029 */
030public class PurchaseOrderContractLanguage extends PersistableBusinessObjectBase implements MutableInactivatable {
031
032    private Integer purchaseOrderContractLanguageIdentifier;
033    private String campusCode;
034    private String purchaseOrderContractLanguageDescription;
035    private Date contractLanguageCreateDate;
036    private boolean active;
037
038    /**
039     * Default constructor.
040     */
041    public PurchaseOrderContractLanguage() {
042        this.setContractLanguageCreateDate(SpringContext.getBean(DateTimeService.class).getCurrentSqlDate());
043    }
044
045    public Integer getPurchaseOrderContractLanguageIdentifier() {
046        return purchaseOrderContractLanguageIdentifier;
047    }
048
049    public void setPurchaseOrderContractLanguageIdentifier(Integer purchaseOrderContractLanguageIdentifier) {
050        this.purchaseOrderContractLanguageIdentifier = purchaseOrderContractLanguageIdentifier;
051    }
052
053    public String getCampusCode() {
054        return campusCode;
055    }
056
057    public void setCampusCode(String campusCode) {
058        this.campusCode = campusCode;
059    }
060
061    public String getPurchaseOrderContractLanguageDescription() {
062        return purchaseOrderContractLanguageDescription;
063    }
064
065    public void setPurchaseOrderContractLanguageDescription(String purchaseOrderContractLanguageDescription) {
066        this.purchaseOrderContractLanguageDescription = purchaseOrderContractLanguageDescription;
067    }
068
069    public Date getContractLanguageCreateDate() {
070        return contractLanguageCreateDate;
071    }
072
073    public void setContractLanguageCreateDate(Date contractLanguageCreateDate) {
074        this.contractLanguageCreateDate = contractLanguageCreateDate;
075    }
076
077    public boolean isActive() {
078        return active;
079    }
080
081    public void setActive(boolean active) {
082        this.active = active;
083    }
084
085    /**
086     * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
087     */
088    protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
089        LinkedHashMap m = new LinkedHashMap();
090        if (this.purchaseOrderContractLanguageIdentifier != null) {
091            m.put("purchaseOrderContractLanguageIdentifier", this.purchaseOrderContractLanguageIdentifier.toString());
092        }
093        return m;
094    }
095
096}