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.gl.batch.service.impl;
017
018 import java.util.ArrayList;
019 import java.util.List;
020
021 /**
022 * The reconciliation information corresponding to a whole file
023 */
024 public class ReconciliationBlock {
025 public ReconciliationBlock() {
026 columns = new ArrayList<ColumnReconciliation>();
027 }
028
029 private String tableId;
030 private int rowCount;
031 private List<ColumnReconciliation> columns;
032
033 /**
034 * Gets the columns attribute. Do not modify the list or its contents.
035 *
036 * @return Returns the columns.
037 */
038 public List<ColumnReconciliation> getColumns() {
039 return columns;
040 }
041
042 /**
043 * Adds a column reconciliation definition
044 *
045 * @param column
046 */
047 public void addColumn(ColumnReconciliation column) {
048 columns.add(column);
049 }
050
051 /**
052 * Gets the rowCount attribute.
053 *
054 * @return Returns the rowCount.
055 */
056 public int getRowCount() {
057 return rowCount;
058 }
059
060 /**
061 * Sets the rowCount attribute value.
062 *
063 * @param rowCount The rowCount to set.
064 */
065 public void setRowCount(int rowCount) {
066 this.rowCount = rowCount;
067 }
068
069 /**
070 * Gets the tableId attribute.
071 *
072 * @return Returns the tableId.
073 */
074 public String getTableId() {
075 return tableId;
076 }
077
078 /**
079 * Sets the tableId attribute value.
080 *
081 * @param tableId The tableId to set.
082 */
083 public void setTableId(String tableId) {
084 this.tableId = tableId;
085 }
086 }