org.kuali.kfs.module.bc.document.dataaccess.impl
Class BenefitsCalculationDaoJdbc

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.bc.document.dataaccess.impl.BudgetConstructionDaoJdbcBase
                      extended by org.kuali.kfs.module.bc.document.dataaccess.impl.BenefitsCalculationDaoJdbc
All Implemented Interfaces:
BenefitsCalculationDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class BenefitsCalculationDaoJdbc
extends BudgetConstructionDaoJdbcBase
implements BenefitsCalculationDao

implements the SQL procedures to calculate benefits for the personnel object codes in the budget. apply the appropriate percentage to each object type in the general ledger, and split the result out into the monthly budget lines if monthly budgets exist for the accounting key.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BenefitsCalculationDaoJdbc()
          these will be set to constant values in the constructor and used throughout SQL for the various steps.
 
Method Summary
 void calculateAnnualBudgetConstructionGeneralLedgerBenefits(String documentNumber, Integer fiscalYear, String chartOfAccounts, String accountNumber, String subAccountNumber, String finObjTypeExpenditureexpCd)
          calculate the annual benefits for the budget construction general ledger key passed in, and stores them in the database
 void calculateMonthlyBudgetConstructionGeneralLedgerBenefits(String documentNumber, Integer fiscalYear, String chartOfAccounts, String accountNumber, String subAccountNumber, String finObjTypeExpenditureexpCd)
          calculate the monthly budget benefits for the budget construction general ledger key passed in, and stores them in the database
 void setPersistenceService(org.kuali.rice.kns.service.PersistenceService persistenceService)
           
 
Methods inherited from class org.kuali.kfs.module.bc.document.dataaccess.impl.BudgetConstructionDaoJdbcBase
clearTempTableBySesId, clearTempTableByUnvlId, getExpenditureINList, getFiscalYearStartDate, getRevenueINList, getSqlSubStringFunction, inString, inString, setOjbOraclePlatform, setOjbPlatform, setParameterService
 
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

BenefitsCalculationDaoJdbc

public BenefitsCalculationDaoJdbc()
these will be set to constant values in the constructor and used throughout SQL for the various steps.

Method Detail

calculateAnnualBudgetConstructionGeneralLedgerBenefits

public void calculateAnnualBudgetConstructionGeneralLedgerBenefits(String documentNumber,
                                                                   Integer fiscalYear,
                                                                   String chartOfAccounts,
                                                                   String accountNumber,
                                                                   String subAccountNumber,
                                                                   String finObjTypeExpenditureexpCd)
Description copied from interface: BenefitsCalculationDao
calculate the annual benefits for the budget construction general ledger key passed in, and stores them in the database

Specified by:
calculateAnnualBudgetConstructionGeneralLedgerBenefits in interface BenefitsCalculationDao
See Also:
BenefitsCalculationDao.calculateAnnualBudgetConstructionGeneralLedgerBenefits(String, Integer, String, String, String, String)

calculateMonthlyBudgetConstructionGeneralLedgerBenefits

public void calculateMonthlyBudgetConstructionGeneralLedgerBenefits(String documentNumber,
                                                                    Integer fiscalYear,
                                                                    String chartOfAccounts,
                                                                    String accountNumber,
                                                                    String subAccountNumber,
                                                                    String finObjTypeExpenditureexpCd)
Description copied from interface: BenefitsCalculationDao
calculate the monthly budget benefits for the budget construction general ledger key passed in, and stores them in the database

Specified by:
calculateMonthlyBudgetConstructionGeneralLedgerBenefits in interface BenefitsCalculationDao
See Also:
BenefitsCalculationDao.calculateMonthlyBudgetConstructionGeneralLedgerBenefits(java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String)

setPersistenceService

public void setPersistenceService(org.kuali.rice.kns.service.PersistenceService persistenceService)


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