001    /*
002     * Copyright 2011 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    package org.kuali.kfs.module.endow.businessobject;
017    
018    import java.sql.Date;
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.kfs.module.endow.EndowPropertyConstants;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    import org.kuali.rice.kns.util.KualiInteger;
024    
025    public class MonthEndDate extends PersistableBusinessObjectBase {
026        private KualiInteger monthEndDateId;
027        private Date monthEndDate;
028    
029        /**
030         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
031         */
032        @Override
033        protected LinkedHashMap toStringMapper() {
034            LinkedHashMap m = new LinkedHashMap();
035            m.put(EndowPropertyConstants.MONTH_END_DATE_ID, this.monthEndDateId);
036            return m;
037        }
038    
039        /**
040         * Gets the monthEndDate.
041         * 
042         * @return monthEndDate
043         */
044        public Date getMonthEndDate() {
045            return monthEndDate;
046        }
047    
048        /**
049         * Sets the monthEndDate.
050         * 
051         * @param monthEndDate
052         */
053        public void setMonthEndDate(Date monthEndDate) {
054            this.monthEndDate = monthEndDate;
055        }
056    
057        /**
058         * Gets the monthEndDateId.
059         * 
060         * @return monthEndDateId
061         */
062        public KualiInteger getMonthEndDateId() {
063            return monthEndDateId;
064        }
065    
066        /**
067         * Sets the monthEndDateId.
068         * 
069         * @param monthEndDateId
070         */
071        public void setMonthEndDateId(KualiInteger monthEndDateId) {
072            this.monthEndDateId = monthEndDateId;
073        }
074        
075        /**
076         * Returns the month end date as beginning date
077         * 
078         * @return
079         */
080        public Date getBeginningDate() {
081            return monthEndDate;
082        }
083    
084        /**
085         * Returns the month end date as ending date
086         * 
087         * @return
088         */
089        public Date getEndingDate() {
090            return monthEndDate;
091        }
092    }