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.util.LinkedHashMap; 019 020 import org.kuali.kfs.sys.context.SpringContext; 021 import org.kuali.rice.kns.bo.TransientBusinessObjectBase; 022 import org.kuali.rice.kns.service.DataDictionaryService; 023 024 public class GLInterfaceBatchTotalsProcessedReportHeader extends FeeProcessingTotalsProcessedReportHeader { 025 private String columnHeading6; 026 027 public GLInterfaceBatchTotalsProcessedReportHeader() { 028 columnHeading6 = ""; 029 } 030 031 /** 032 * Gets the columnHeading6 attribute. 033 * @return Returns the columnHeading6. 034 */ 035 public String getColumnHeading6() { 036 return columnHeading6; 037 } 038 039 /** 040 * Sets the columnHeading6 attribute. 041 * @return Returns the columnHeading6. 042 */ 043 public void setColumnHeading6(String columnHeading6) { 044 this.columnHeading6 = columnHeading6; 045 } 046 047 /** 048 * get max length for column1 049 */ 050 public int getColumn1MaxLength() { 051 return SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(this.getClass(), "columnHeading1"); 052 } 053 054 /** 055 * get max length for column2 056 */ 057 public int getColumn2MaxLength() { 058 return SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(this.getClass(), "columnHeading2"); 059 } 060 061 062 /** 063 * get max length for column3 064 */ 065 public int getColumn3MaxLength() { 066 return SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(this.getClass(), "columnHeading3"); 067 } 068 069 /** 070 * get max length for column4 071 */ 072 public int getColumn4MaxLength() { 073 return SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(this.getClass(), "columnHeading4"); 074 } 075 076 /** 077 * get max length for column5 078 */ 079 public int getColumn5MaxLength() { 080 return SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(this.getClass(), "columnHeading5"); 081 } 082 083 /** 084 * get max length for column6 085 */ 086 public int getColumn6MaxLength() { 087 return SpringContext.getBean(DataDictionaryService.class).getAttributeMaxLength(this.getClass(), "columnHeading6"); 088 } 089 090 /** 091 * A map of the "keys" of this transient business object 092 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 093 */ 094 @Override 095 protected LinkedHashMap toStringMapper() { 096 LinkedHashMap pks = new LinkedHashMap<String, Object>(); 097 pks.put("columnHeading1",this.getColumnHeading1()); 098 pks.put("columnHeading2",this.getColumnHeading2()); 099 pks.put("columnHeading3",this.getColumnHeading3()); 100 pks.put("columnHeading4",this.getColumnHeading4()); 101 pks.put("columnHeading5",this.getColumnHeading5()); 102 pks.put("columnHeading6",this.getColumnHeading6()); 103 return pks; 104 } 105 }