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.core.service.DateTimeService;
024: import org.kuali.kfs.context.SpringContext;
025:
026: /**
027: * Purchase Order Contract Language Business Object.
028: */
029: public class PurchaseOrderContractLanguage extends
030: PersistableBusinessObjectBase {
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(
043: DateTimeService.class).getCurrentSqlDate());
044: }
045:
046: public Integer getPurchaseOrderContractLanguageIdentifier() {
047: return purchaseOrderContractLanguageIdentifier;
048: }
049:
050: public void setPurchaseOrderContractLanguageIdentifier(
051: Integer purchaseOrderContractLanguageIdentifier) {
052: this .purchaseOrderContractLanguageIdentifier = purchaseOrderContractLanguageIdentifier;
053: }
054:
055: public String getCampusCode() {
056: return campusCode;
057: }
058:
059: public void setCampusCode(String campusCode) {
060: this .campusCode = campusCode;
061: }
062:
063: public String getPurchaseOrderContractLanguageDescription() {
064: return purchaseOrderContractLanguageDescription;
065: }
066:
067: public void setPurchaseOrderContractLanguageDescription(
068: String purchaseOrderContractLanguageDescription) {
069: this .purchaseOrderContractLanguageDescription = purchaseOrderContractLanguageDescription;
070: }
071:
072: public Date getContractLanguageCreateDate() {
073: return contractLanguageCreateDate;
074: }
075:
076: public void setContractLanguageCreateDate(
077: Date contractLanguageCreateDate) {
078: this .contractLanguageCreateDate = contractLanguageCreateDate;
079: }
080:
081: public boolean isActive() {
082: return active;
083: }
084:
085: public void setActive(boolean active) {
086: this .active = active;
087: }
088:
089: /**
090: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
091: */
092: protected LinkedHashMap toStringMapper() {
093: LinkedHashMap m = new LinkedHashMap();
094: if (this .purchaseOrderContractLanguageIdentifier != null) {
095: m.put("purchaseOrderContractLanguageIdentifier",
096: this.purchaseOrderContractLanguageIdentifier
097: .toString());
098: }
099: return m;
100: }
101:
102: }
|