org.kuali.kfs.coa.dataaccess.impl
Class PriorYearOrganizationDaoJdbc

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.jdbc.core.support.JdbcDaoSupport
          extended by org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
              extended by org.kuali.rice.kns.dao.jdbc.PlatformAwareDaoBaseJdbc
                  extended by org.kuali.kfs.coa.dataaccess.impl.PriorYearOrganizationDaoJdbc
All Implemented Interfaces:
PriorYearOrganizationDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class PriorYearOrganizationDaoJdbc
extends org.kuali.rice.kns.dao.jdbc.PlatformAwareDaoBaseJdbc
implements PriorYearOrganizationDao

This class performs actions against the database through direct SQL command calls.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PriorYearOrganizationDaoJdbc()
           
 
Method Summary
 int copyCurrentOrganizationsToPriorYearTable()
          This method copies all organization records from the current Org table to the Prior Year Organization table.
 int purgePriorYearOrganizations()
          This method purges all records in the Prior Year Organization table in the DB.
 
Methods inherited from class org.kuali.rice.kns.dao.jdbc.PlatformAwareDaoBaseJdbc
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
getSimpleJdbcTemplate, initTemplateConfig
 
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PriorYearOrganizationDaoJdbc

public PriorYearOrganizationDaoJdbc()
Method Detail

purgePriorYearOrganizations

public int purgePriorYearOrganizations()
This method purges all records in the Prior Year Organization table in the DB.

Specified by:
purgePriorYearOrganizations in interface PriorYearOrganizationDao
Returns:
Number of records that were purged.
See Also:
PriorYearOrganizationDao.purgePriorYearOrganizations()

copyCurrentOrganizationsToPriorYearTable

public int copyCurrentOrganizationsToPriorYearTable()
This method copies all organization records from the current Org table to the Prior Year Organization table.

Specified by:
copyCurrentOrganizationsToPriorYearTable in interface PriorYearOrganizationDao
Returns:
Number of records that were copied.
See Also:
PriorYearOrganizationDao.copyCurrentOrganizationsToPriorYearTable()


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.