View Javadoc
1   /*
2    * Copyright 2005 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.sys.businessobject;
17  
18  import java.sql.Date;
19  import java.util.LinkedHashMap;
20  
21  import org.kuali.ole.coa.businessobject.AccountingPeriod;
22  import org.kuali.ole.sys.OLEConstants;
23  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
24  
25  /**
26   * Represents a specific university date
27   * 
28   */
29  public class UniversityDate extends PersistableBusinessObjectBase implements FiscalYearBasedBusinessObject {
30      static final long serialVersionUID = 2587833750168955556L;
31  
32      public static final String CACHE_NAME = OLEConstants.APPLICATION_NAMESPACE_CODE + "/" + "UniversityDate";
33      
34      private Date universityDate;
35      private Integer universityFiscalYear;
36      private String universityFiscalAccountingPeriod;
37  
38      private AccountingPeriod accountingPeriod;
39      private SystemOptions options;
40  
41      /*
42       * (non-Javadoc)
43       * 
44       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
45       */
46      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
47          LinkedHashMap map = new LinkedHashMap();
48          map.put("universityDate", getUniversityDate());
49          return map;
50      }
51  
52      /**
53       * @return Returns the universityDate.
54       */
55      public Date getUniversityDate() {
56          return universityDate;
57      }
58  
59      /**
60       * @param universityDate The universityDate to set.
61       */
62      public void setUniversityDate(Date universityDate) {
63          this.universityDate = universityDate;
64      }
65  
66      /**
67       * @return Returns the universityFiscalAccountingPeriod.
68       */
69      public String getUniversityFiscalAccountingPeriod() {
70          return universityFiscalAccountingPeriod;
71      }
72  
73      /**
74       * @param universityFiscalAccountingPeriod The universityFiscalAccountingPeriod to set.
75       */
76      public void setUniversityFiscalAccountingPeriod(String universityFiscalAccountingPeriod) {
77          this.universityFiscalAccountingPeriod = universityFiscalAccountingPeriod;
78      }
79  
80      /**
81       * @return Returns the universityFiscalYear.
82       */
83      public Integer getUniversityFiscalYear() {
84          return universityFiscalYear;
85      }
86  
87      /**
88       * @param universityFiscalYear The universityFiscalYear to set.
89       */
90      public void setUniversityFiscalYear(Integer universityFiscalYear) {
91          this.universityFiscalYear = universityFiscalYear;
92      }
93  
94      /**
95       * @return Returns the accountingPeriod.
96       */
97      public AccountingPeriod getAccountingPeriod() {
98          return accountingPeriod;
99      }
100 
101     /**
102      * @param accountingPeriod The accountingPeriod to set.
103      * @deprecated
104      */
105     public void setAccountingPeriod(AccountingPeriod accountingPeriod) {
106         this.accountingPeriod = accountingPeriod;
107     }
108 
109     /**
110      * Gets the options attribute.
111      * 
112      * @return Returns the options.
113      */
114     public SystemOptions getOptions() {
115         return options;
116     }
117 
118     /**
119      * Sets the options attribute value.
120      * 
121      * @param options The options to set.
122      * @deprecated
123      */
124     public void setOptions(SystemOptions options) {
125         this.options = options;
126     }
127 
128 }