org.kuali.kpme.core.job.dao
Class JobDaoOjbImpl

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.kpme.core.job.dao.JobDaoOjbImpl
All Implemented Interfaces:
JobDao, org.kuali.rice.core.framework.persistence.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class JobDaoOjbImpl
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
JobDaoOjbImpl()
           
 
Method Summary
 List<Job> getActiveJobsForPayType(String hrPayType, org.joda.time.LocalDate asOfDate)
          Fetch active jobs that are incumbents of the payType
 List<Job> getActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
           
 List<Job> getAllActiveLeaveJobs(String principalId, org.joda.time.LocalDate asOfDate)
           
 List<Job> getAllInActiveLeaveJobsInRange(String principalId, org.joda.time.LocalDate endDate)
           
 List<Job> getInactiveLeaveJobs(Long jobNumber, org.joda.time.LocalDate asOfDate)
           
 Job getJob(String hrJobId)
          Get job based on id
 Job getJob(String principalId, Long jobNumber, org.joda.time.LocalDate 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, org.joda.time.LocalDate 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, org.joda.time.LocalDate fromEffdt, org.joda.time.LocalDate 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, org.joda.time.LocalDate payPeriodEndDate)
          Get Primary Job as indicated by primary indicator on Job table
 List<String> getPrincipalIdsInPosition(String positionNumber, org.joda.time.LocalDate asOfDate)
          Returns all of the principal ids actively particpating in a job in the given position number
 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

JobDaoOjbImpl

public JobDaoOjbImpl()
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,
                         org.joda.time.LocalDate 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,
                         org.joda.time.LocalDate 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,
                  org.joda.time.LocalDate asOfDate)
Specified by:
getJob in interface JobDao
Returns:
a Job per the critieria passed in

getActiveJobsForPayType

public List<Job> getActiveJobsForPayType(String hrPayType,
                                         org.joda.time.LocalDate 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,
                         org.joda.time.LocalDate fromEffdt,
                         org.joda.time.LocalDate 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,
                                    org.joda.time.LocalDate asOfDate)
Specified by:
getActiveLeaveJobs in interface JobDao

getInactiveLeaveJobs

public List<Job> getInactiveLeaveJobs(Long jobNumber,
                                      org.joda.time.LocalDate asOfDate)
Specified by:
getInactiveLeaveJobs in interface JobDao

getAllActiveLeaveJobs

public List<Job> getAllActiveLeaveJobs(String principalId,
                                       org.joda.time.LocalDate asOfDate)
Specified by:
getAllActiveLeaveJobs in interface JobDao

getAllInActiveLeaveJobsInRange

public List<Job> getAllInActiveLeaveJobsInRange(String principalId,
                                                org.joda.time.LocalDate endDate)
Specified by:
getAllInActiveLeaveJobsInRange in interface JobDao

getMaxTimestampJob

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

getPrincipalIdsInPosition

public List<String> getPrincipalIdsInPosition(String positionNumber,
                                              org.joda.time.LocalDate asOfDate)
Description copied from interface: JobDao
Returns all of the principal ids actively particpating in a job in the given position number

Specified by:
getPrincipalIdsInPosition in interface JobDao
Returns:


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