001/*
002 * Copyright 2009 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 */
016package org.kuali.ole.coa.dataaccess;
017
018/**
019 * Methods needed to copy prior year accounts from current year accounts; this population is best done directly through JDBC
020 */
021public interface PriorYearAccountDao {
022    /**
023     * This method purges all records in the Prior Year table in the DB base on the input table name .
024     * 
025     * @param priorYrAcctTableName prior year account table name 
026     * @return Number of records that were purged.
027     */
028    public abstract int purgePriorYearAccounts(String priorYrAcctTableName);
029
030    /**
031     * This method copies all organization records from the current Account table to the Prior Year Account table.
032     * 
033     * @param priorYrAcctTableName prior year account table name 
034     * @param acctTableName account table name
035     * @return Number of records that were copied.
036     */
037    public abstract int copyCurrentAccountsToPriorYearTable(String priorYrAcctTableName, String acctTableName);
038    
039    /**
040     * This method copies all organization records from the current Account table to the Prior Year Account table.
041     * 
042     * @param priorYrAcctTableName prior year account table name 
043     * @param acctTableName account table name
044     * @return Number of records that were copied.
045     */
046    public abstract int copyCurrentICRAccountsToPriorYearTable(String priorYrAcctTableName, String acctTableName);
047}