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.rice.kns.bo.TransientBusinessObjectBase; 021 022 public class GLInterfaceBatchStatisticsReportDetailTableRow extends TransientBusinessObjectBase { 023 private String documentType; 024 private long gLEntriesGenerated; 025 private long numberOfExceptions; 026 027 public GLInterfaceBatchStatisticsReportDetailTableRow() { 028 documentType = ""; 029 gLEntriesGenerated = 0; 030 numberOfExceptions = 0; 031 } 032 033 /** 034 * Gets the documentType attribute. 035 * @return Returns the documentType. 036 */ 037 public String getDocumentType() { 038 return documentType; 039 } 040 041 /** 042 * Sets the documentType attribute. 043 * @return Returns the documentType. 044 */ 045 public void setDocumentType(String documentType) { 046 this.documentType = documentType; 047 } 048 049 /** 050 * Gets the gLEntriesGenerated attribute. 051 * @return Returns the gLEntriesGenerated. 052 */ 053 public long getGLEntriesGenerated() { 054 return gLEntriesGenerated; 055 } 056 057 /** 058 * Sets the gLEntriesGenerated attribute. 059 * @return Returns the gLEntriesGenerated. 060 */ 061 public void setGLEntriesGenerated(long gLEntriesGenerated) { 062 this.gLEntriesGenerated = gLEntriesGenerated; 063 } 064 065 /** 066 * Gets the numberOfExceptions attribute. 067 * @return Returns the numberOfExceptions. 068 */ 069 public long getNumberOfExceptions() { 070 return numberOfExceptions; 071 } 072 073 /** 074 * Sets the numberOfExceptions attribute. 075 * @return Returns the numberOfExceptions. 076 */ 077 public void setNumberOfExceptions(long numberOfExceptions) { 078 this.numberOfExceptions = numberOfExceptions; 079 } 080 081 /** 082 * method to increase the count of number of GL entries 083 */ 084 public void increaseGLEntriesGeneratedCount() { 085 this.gLEntriesGenerated++; 086 } 087 088 /** 089 * method to increase the count of number of exceptions 090 */ 091 public void increaseNumberOfExceptionsCount() { 092 this.numberOfExceptions++; 093 } 094 095 /** 096 * A map of the "keys" of this transient business object 097 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 098 */ 099 @Override 100 protected LinkedHashMap toStringMapper() { 101 LinkedHashMap pks = new LinkedHashMap<String, Object>(); 102 pks.put("documentType",this.getDocumentType()); 103 pks.put("gLEntriesGenerated",this.getGLEntriesGenerated()); 104 pks.put("numberOfExceptions",this.getNumberOfExceptions()); 105 106 return pks; 107 } 108 }