1 /* 2 * Copyright 2009 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.coa.dataaccess; 17 18 /** 19 * Methods needed to copy prior year accounts from current year accounts; this population is best done directly through JDBC 20 */ 21 public interface PriorYearAccountDao { 22 /** 23 * This method purges all records in the Prior Year table in the DB base on the input table name . 24 * 25 * @param priorYrAcctTableName prior year account table name 26 * @return Number of records that were purged. 27 */ 28 public abstract int purgePriorYearAccounts(String priorYrAcctTableName); 29 30 /** 31 * This method copies all organization records from the current Account table to the Prior Year Account table. 32 * 33 * @param priorYrAcctTableName prior year account table name 34 * @param acctTableName account table name 35 * @return Number of records that were copied. 36 */ 37 public abstract int copyCurrentAccountsToPriorYearTable(String priorYrAcctTableName, String acctTableName); 38 39 /** 40 * This method copies all organization records from the current Account table to the Prior Year Account table. 41 * 42 * @param priorYrAcctTableName prior year account table name 43 * @param acctTableName account table name 44 * @return Number of records that were copied. 45 */ 46 public abstract int copyCurrentICRAccountsToPriorYearTable(String priorYrAcctTableName, String acctTableName); 47 }