org.kuali.hr.job.dao
Class JobDaoSpringOjbImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
              extended by org.kuali.hr.job.dao.JobDaoSpringOjbImpl
All Implemented Interfaces:
JobDao, org.kuali.rice.core.framework.persistence.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class JobDaoSpringOjbImpl
extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
implements JobDao

Represents an implementation of JobDao.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
JobDaoSpringOjbImpl()
           
 
Method Summary
 List<Job> getActiveJobsForPayType(String hrPayType, Date asOfDate)
          Fetch active jobs that are incumbents of the payType
 List<Job> getActiveJobsForPosition(String positionNbr, Date asOfDate)
          Fetch active jobs that are incumbents of the position
 List<Job> getActiveLeaveJobs(String principalId, Date asOfDate)
           
 List<Job> getAllActiveLeaveJobs(String principalId, Date asOfDate)
           
 List<Job> getAllInActiveLeaveJobsInRange(String principalId, Date startDate, Date endDate)
           
 List<Job> getInactiveLeaveJobs(Long jobNumber, Date asOfDate, Date jobDate)
           
 Job getJob(String hrJobId)
          Get job based on id
 Job getJob(String principalId, Long jobNumber, Date asOfDate)
           
 int getJobCount(String principalId, Long jobNumber, String dept)
          Fetch the count of the jobs with the given principalId and jobNumber
 List<Job> getJobs(String principalId, Date payPeriodEndDate)
          Provides a list of current jobs that are valid relative to the provided effective date.
 List<Job> getJobs(String principalId, String jobNumber, String dept, String positionNumber, String hrPayType, Date fromEffdt, Date toEffdt, String active, String showHistory)
           
 Job getMaxJob(String principalId)
          Get job with max(jobNumber) for a certain principalId
 Job getMaxTimestampJob(String principalId)
           
 Job getPrimaryJob(String principalId, Date payPeriodEndDate)
          Get Primary Job as indicated by primary indicator on Job table
 void saveOrUpdate(Job job)
          Saves or Updates a Job
 void saveOrUpdate(List<Job> jobList)
          Saves or updates a job list
 
Methods inherited from class org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
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

JobDaoSpringOjbImpl

public JobDaoSpringOjbImpl()
Method Detail

saveOrUpdate

public void saveOrUpdate(Job job)
Description copied from interface: JobDao
Saves or Updates a Job

Specified by:
saveOrUpdate in interface JobDao

saveOrUpdate

public void saveOrUpdate(List<Job> jobList)
Description copied from interface: JobDao
Saves or updates a job list

Specified by:
saveOrUpdate in interface JobDao

getPrimaryJob

public Job getPrimaryJob(String principalId,
                         Date payPeriodEndDate)
Description copied from interface: JobDao
Get Primary Job as indicated by primary indicator on Job table

Specified by:
getPrimaryJob in interface JobDao
Returns:

getJobs

public List<Job> getJobs(String principalId,
                         Date payPeriodEndDate)
Description copied from interface: JobDao
Provides a list of current jobs that are valid relative to the provided effective date. Timestamp of row creation is taken into account when two rows with the same job number have the same effective date.

Specified by:
getJobs in interface JobDao
Returns:

getJob

public Job getJob(String principalId,
                  Long jobNumber,
                  Date asOfDate)
Specified by:
getJob in interface JobDao
Returns:
a Job per the critieria passed in

getActiveJobsForPosition

public List<Job> getActiveJobsForPosition(String positionNbr,
                                          Date asOfDate)
Description copied from interface: JobDao
Fetch active jobs that are incumbents of the position

Specified by:
getActiveJobsForPosition in interface JobDao
Returns:

getActiveJobsForPayType

public List<Job> getActiveJobsForPayType(String hrPayType,
                                         Date asOfDate)
Description copied from interface: JobDao
Fetch active jobs that are incumbents of the payType

Specified by:
getActiveJobsForPayType in interface JobDao
Returns:

getJob

public Job getJob(String hrJobId)
Description copied from interface: JobDao
Get job based on id

Specified by:
getJob in interface JobDao
Returns:

getMaxJob

public Job getMaxJob(String principalId)
Description copied from interface: JobDao
Get job with max(jobNumber) for a certain principalId

Specified by:
getMaxJob in interface JobDao
Returns:

getJobs

public List<Job> getJobs(String principalId,
                         String jobNumber,
                         String dept,
                         String positionNumber,
                         String hrPayType,
                         Date fromEffdt,
                         Date toEffdt,
                         String active,
                         String showHistory)
Specified by:
getJobs in interface JobDao

getJobCount

public int getJobCount(String principalId,
                       Long jobNumber,
                       String dept)
Description copied from interface: JobDao
Fetch the count of the jobs with the given principalId and jobNumber

Specified by:
getJobCount in interface JobDao
Returns:
the count of the jobs with the given principalId and jobNumber

getActiveLeaveJobs

public List<Job> getActiveLeaveJobs(String principalId,
                                    Date asOfDate)
Specified by:
getActiveLeaveJobs in interface JobDao

getInactiveLeaveJobs

public List<Job> getInactiveLeaveJobs(Long jobNumber,
                                      Date asOfDate,
                                      Date jobDate)
Specified by:
getInactiveLeaveJobs in interface JobDao

getAllActiveLeaveJobs

public List<Job> getAllActiveLeaveJobs(String principalId,
                                       Date asOfDate)
Specified by:
getAllActiveLeaveJobs in interface JobDao

getAllInActiveLeaveJobsInRange

public List<Job> getAllInActiveLeaveJobsInRange(String principalId,
                                                Date startDate,
                                                Date endDate)
Specified by:
getAllInActiveLeaveJobsInRange in interface JobDao

getMaxTimestampJob

public Job getMaxTimestampJob(String principalId)
Specified by:
getMaxTimestampJob in interface JobDao


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.