org.kuali.kfs.module.bc.dataaccess.impl
Class HumanResourcesPayrollDaoJdbc

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

public class HumanResourcesPayrollDaoJdbc
extends BudgetConstructionDaoJdbcBase
implements HumanResourcesPayrollDao

Implementation of HumanResourcesPayrollDao using JDBC to query PS_POSITION_DATA and then set other Position fields to hard-coded IU values. This is for bootstrap only.

See Also:
HumanResourcesPayrollDao

Nested Class Summary
protected  class HumanResourcesPayrollDaoJdbc.PositionData
           
 
Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HumanResourcesPayrollDaoJdbc()
           
 
Method Summary
 Position getPosition(Integer universityFiscalYear, String positionNumber)
          Gets the Position data by querying PS_POSITION_DATA then setting other fields using IU business rules.
 Collection<HumanResourcesPayrollDaoJdbc.PositionData> getPositionData(String positionNumber)
          Retrieves record for position key from PS_POSITION_DATA and returns populated PositionData business object.
protected  HumanResourcesPayrollDaoJdbc.PositionData getPositionDataForFiscalYear(Integer universityFiscalYear, String positionNumber)
          find positions with effective date before July 1 of fiscal year or on August 1 of fiscal year for academic tenure salary plan
 void populatePositionData(Position position, HumanResourcesPayrollDaoJdbc.PositionData positionData)
          Sets Position fields with data from PositionData
 void setDefaultObjectClass(Position position)
          Sets defaults based on salary plan.
 
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

HumanResourcesPayrollDaoJdbc

public HumanResourcesPayrollDaoJdbc()
Method Detail

getPosition

public Position getPosition(Integer universityFiscalYear,
                            String positionNumber)
Gets the Position data by querying PS_POSITION_DATA then setting other fields using IU business rules. This is used in the bootstrap service implementation for an example.

Specified by:
getPosition in interface HumanResourcesPayrollDao
Parameters:
universityFiscalYear - position fiscal year, part of record key
positionNumber - position number, part of record key
Returns:
See Also:
HumanResourcesPayrollDao.getPosition(java.lang.Integer, java.lang.String)

getPositionDataForFiscalYear

protected HumanResourcesPayrollDaoJdbc.PositionData getPositionDataForFiscalYear(Integer universityFiscalYear,
                                                                                 String positionNumber)
find positions with effective date before July 1 of fiscal year or on August 1 of fiscal year for academic tenure salary plan

Parameters:
universityFiscalYear -
positionNumber -
Returns:

getPositionData

public Collection<HumanResourcesPayrollDaoJdbc.PositionData> getPositionData(String positionNumber)
Retrieves record for position key from PS_POSITION_DATA and returns populated PositionData business object.


populatePositionData

public void populatePositionData(Position position,
                                 HumanResourcesPayrollDaoJdbc.PositionData positionData)
Sets Position fields with data from PositionData


setDefaultObjectClass

public void setDefaultObjectClass(Position position)
Sets defaults based on salary plan.

Parameters:
position - Position to update


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