org.kuali.kfs.module.endow.dataaccess.impl
Class UpdateCorpusDaoJdbc

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.module.endow.dataaccess.impl.UpdateCorpusDaoJdbc
All Implemented Interfaces:
UpdateCorpusDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class UpdateCorpusDaoJdbc
extends org.kuali.rice.kns.dao.jdbc.PlatformAwareDaoBaseJdbc
implements UpdateCorpusDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
UpdateCorpusDaoJdbc()
           
 
Method Summary
protected  Date getNextDay(Date currentDate)
          Returns the next day
 void updateCorpusAmountsFromTransactionArchive(Date currentDate)
          Summarizes and updates the transaction archive table and adds the totals to the Current Endowment Corpus table.
 void updateEndowmentCorpusWithCurrentEndowmentCorpus(Date currentDate)
          Inserts records into Endowment Corpus from the Current Endowment Corpus table.
 void updateKemIdCorpusPrincipalMarketValue()
          Updates all KEM ID Corpus records's principal market value with the value PRIN_AT_MARKET from KEM ID Current Balance View.
 void updateKemIdCorpusPriorYearValues()
          Updates all prior year fields with the current year values in the KEMID Corpus Val table.
 
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

UpdateCorpusDaoJdbc

public UpdateCorpusDaoJdbc()
Method Detail

updateKemIdCorpusPriorYearValues

public void updateKemIdCorpusPriorYearValues()
Description copied from interface: UpdateCorpusDao
Updates all prior year fields with the current year values in the KEMID Corpus Val table.

Specified by:
updateKemIdCorpusPriorYearValues in interface UpdateCorpusDao
See Also:
UpdateCorpusDao.updateKemIdCorpusPriorYearValues()

updateCorpusAmountsFromTransactionArchive

public void updateCorpusAmountsFromTransactionArchive(Date currentDate)
Description copied from interface: UpdateCorpusDao
Summarizes and updates the transaction archive table and adds the totals to the Current Endowment Corpus table. Then taking the grand totals from Current Endowment Corpus table the KEMID Corpus Values table is updated.

Specified by:
updateCorpusAmountsFromTransactionArchive in interface UpdateCorpusDao
See Also:
org.kuali.kfs.module.endow.dataaccess.UpdateCorpusDao#updateCorpusAmountsFromTransactionArchive()

updateKemIdCorpusPrincipalMarketValue

public void updateKemIdCorpusPrincipalMarketValue()
Description copied from interface: UpdateCorpusDao
Updates all KEM ID Corpus records's principal market value with the value PRIN_AT_MARKET from KEM ID Current Balance View.

Specified by:
updateKemIdCorpusPrincipalMarketValue in interface UpdateCorpusDao
See Also:
org.kuali.kfs.module.endow.dataaccess.UpdateCorpusDao#updateKEMIDCorpusPrincipalMarketValue()

updateEndowmentCorpusWithCurrentEndowmentCorpus

public void updateEndowmentCorpusWithCurrentEndowmentCorpus(Date currentDate)
Description copied from interface: UpdateCorpusDao
Inserts records into Endowment Corpus from the Current Endowment Corpus table.

Specified by:
updateEndowmentCorpusWithCurrentEndowmentCorpus in interface UpdateCorpusDao
See Also:
org.kuali.kfs.module.endow.dataaccess.UpdateCorpusDao#updateEndowmentCorpusWithCurrentEndowmentCorpus()

getNextDay

protected Date getNextDay(Date currentDate)
Returns the next day

Parameters:
currentDate -
Returns:


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