org.kuali.hr.job.dao
Interface JobDao

All Known Implementing Classes:
JobDaoSpringOjbImpl

public interface JobDao


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 startDate, Date endDate)
           
 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 positionNbr, String payType, 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
 

Method Detail

saveOrUpdate

void saveOrUpdate(Job job)
Saves or Updates a Job

Parameters:
job -

saveOrUpdate

void saveOrUpdate(List<Job> jobList)
Saves or updates a job list

Parameters:
jobList -

getJobs

List<Job> getJobs(String principalId,
                  Date payPeriodEndDate)
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.

Parameters:
principalId -
payPeriodEndDate -
Returns:

getJob

Job getJob(String principalId,
           Long jobNumber,
           Date asOfDate)
Parameters:
principalId -
jobNumber -
asOfDate -
Returns:
a Job per the critieria passed in

getPrimaryJob

Job getPrimaryJob(String principalId,
                  Date payPeriodEndDate)
Get Primary Job as indicated by primary indicator on Job table

Parameters:
principalId -
payPeriodEndDate -
Returns:

getActiveJobsForPosition

List<Job> getActiveJobsForPosition(String positionNbr,
                                   Date asOfDate)
Fetch active jobs that are incumbents of the position

Parameters:
positionNbr -
asOfDate -
Returns:

getActiveJobsForPayType

List<Job> getActiveJobsForPayType(String hrPayType,
                                  Date asOfDate)
Fetch active jobs that are incumbents of the payType

Parameters:
hrPayType -
asOfDate -
Returns:

getJob

Job getJob(String hrJobId)
Get job based on id

Parameters:
hrJobId -
Returns:

getMaxJob

Job getMaxJob(String principalId)
Get job with max(jobNumber) for a certain principalId

Parameters:
principalId -
Returns:

getJobs

List<Job> getJobs(String principalId,
                  String jobNumber,
                  String dept,
                  String positionNbr,
                  String payType,
                  Date fromEffdt,
                  Date toEffdt,
                  String active,
                  String showHistory)

getJobCount

int getJobCount(String principalId,
                Long jobNumber,
                String dept)
Fetch the count of the jobs with the given principalId and jobNumber

Parameters:
principalId -
jobNumber -
Returns:
the count of the jobs with the given principalId and jobNumber

getActiveLeaveJobs

List<Job> getActiveLeaveJobs(String principalId,
                             Date asOfDate)

getAllActiveLeaveJobs

List<Job> getAllActiveLeaveJobs(String principalId,
                                Date asOfDate)

getInactiveLeaveJobs

List<Job> getInactiveLeaveJobs(Long jobNumber,
                               Date startDate,
                               Date endDate)

getAllInActiveLeaveJobsInRange

List<Job> getAllInActiveLeaveJobsInRange(String principalId,
                                         Date startDate,
                                         Date endDate)

getMaxTimestampJob

Job getMaxTimestampJob(String principalId)


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