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

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.PriorYearAccountDaoJdbcImpl
All Implemented Interfaces:
PriorYearAccountDaoJdbc, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class PriorYearAccountDaoJdbcImpl
extends org.kuali.rice.kns.dao.jdbc.PlatformAwareDaoBaseJdbc
implements PriorYearAccountDaoJdbc

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
PriorYearAccountDaoJdbcImpl()
           
 
Method Summary
 int copyCurrentAccountsToPriorYearTable()
          This method copies all organization records from the current Account table to the Prior Year Account table.
 org.kuali.rice.kns.service.PersistenceStructureService getPersistenceStructureService()
          Gets the persistenceStructureService attribute.
 int purgePriorYearAccounts()
          This method purges all records in the Prior Year Account table in the DB.
 void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
          Sets the persistenceStructureService attribute value.
 
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

PriorYearAccountDaoJdbcImpl

public PriorYearAccountDaoJdbcImpl()
Method Detail

purgePriorYearAccounts

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

Specified by:
purgePriorYearAccounts in interface PriorYearAccountDaoJdbc
Returns:
Number of records that were purged.

copyCurrentAccountsToPriorYearTable

public int copyCurrentAccountsToPriorYearTable()
This method copies all organization records from the current Account table to the Prior Year Account table.

Specified by:
copyCurrentAccountsToPriorYearTable in interface PriorYearAccountDaoJdbc
Returns:
Number of records that were copied.

getPersistenceStructureService

public org.kuali.rice.kns.service.PersistenceStructureService getPersistenceStructureService()
Gets the persistenceStructureService attribute.

Returns:
Returns the persistenceStructureService.

setPersistenceStructureService

public void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value.

Parameters:
persistenceStructureService - The persistenceStructureService to set.


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