public class AssignmentDaoOjbImpl extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements AssignmentDao
Constructor and Description |
---|
AssignmentDaoOjbImpl() |
Modifier and Type | Method and Description |
---|---|
void |
delete(Assignment assignment)
Delete an assignment
|
List<Assignment> |
findAssignments(String principalId,
org.joda.time.LocalDate asOfDate)
Returns all assignments for the provided principalId that are valid as of
the specified payPeriodEndDate.
|
List<Assignment> |
findAssignmentsHistoryForPeriod(String principalId,
org.joda.time.LocalDate startDate,
org.joda.time.LocalDate endDate) |
List<Assignment> |
findAssignmentsWithinPeriod(String principalId,
org.joda.time.LocalDate startDate,
org.joda.time.LocalDate endDate) |
List<Assignment> |
getActiveAssignments(org.joda.time.LocalDate asOfDate) |
List<Assignment> |
getActiveAssignmentsForJob(String principalId,
Long jobNumber,
org.joda.time.LocalDate asOfDate)
KPME-1129
Get a list of active assignments based on principalId and jobNumber as of a particular date
|
List<Assignment> |
getActiveAssignmentsInWorkArea(Long workArea,
org.joda.time.LocalDate asOfDate)
Get list of active assignments in a given work area as of a particular date
|
List<Assignment> |
getActiveAssignmentsInWorkAreas(List<Long> workAreas,
org.joda.time.LocalDate asOfDate) |
Assignment |
getAssignment(String tkAssignmentId) |
Assignment |
getAssignment(String principalId,
Long jobNumber,
Long workArea,
Long task,
org.joda.time.LocalDate asOfDate) |
Assignment |
getAssignmentForTargetPrincipal(Long job,
Long workArea,
Long task,
org.joda.time.LocalDate asOfDate) |
List<Assignment> |
getAssignments(List<String> workAreaList,
org.joda.time.LocalDate effdt,
org.joda.time.LocalDate startDate,
org.joda.time.LocalDate endDate) |
Assignment |
getMaxTimestampAssignment(String principalId) |
List<String> |
getPrincipalIds(List<String> workAreaList,
org.joda.time.LocalDate effdt,
org.joda.time.LocalDate startDate,
org.joda.time.LocalDate endDate) |
void |
saveOrUpdate(Assignment assignment)
Save or update the given assignment
|
void |
saveOrUpdate(List<Assignment> assignments)
Save of update the given list of assignments
|
List<Assignment> |
searchAssignments(org.joda.time.LocalDate fromEffdt,
org.joda.time.LocalDate toEffdt,
String principalId,
String jobNumber,
String dept,
String workArea,
String active,
String showHistory) |
getDbPlatform, setDbPlatform
public AssignmentDaoOjbImpl()
public void saveOrUpdate(Assignment assignment)
AssignmentDao
saveOrUpdate
in interface AssignmentDao
public void saveOrUpdate(List<Assignment> assignments)
AssignmentDao
saveOrUpdate
in interface AssignmentDao
public void delete(Assignment assignment)
AssignmentDao
delete
in interface AssignmentDao
public Assignment getAssignment(String principalId, Long jobNumber, Long workArea, Long task, org.joda.time.LocalDate asOfDate)
getAssignment
in interface AssignmentDao
public Assignment getAssignmentForTargetPrincipal(Long job, Long workArea, Long task, org.joda.time.LocalDate asOfDate)
getAssignmentForTargetPrincipal
in interface AssignmentDao
public List<Assignment> findAssignments(String principalId, org.joda.time.LocalDate asOfDate)
AssignmentDao
findAssignments
in interface AssignmentDao
public List<Assignment> findAssignmentsWithinPeriod(String principalId, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
findAssignmentsWithinPeriod
in interface AssignmentDao
public List<Assignment> getActiveAssignmentsInWorkArea(Long workArea, org.joda.time.LocalDate asOfDate)
AssignmentDao
getActiveAssignmentsInWorkArea
in interface AssignmentDao
public List<Assignment> getActiveAssignmentsInWorkAreas(List<Long> workAreas, org.joda.time.LocalDate asOfDate)
getActiveAssignmentsInWorkAreas
in interface AssignmentDao
public List<Assignment> getActiveAssignments(org.joda.time.LocalDate asOfDate)
getActiveAssignments
in interface AssignmentDao
public Assignment getAssignment(String tkAssignmentId)
getAssignment
in interface AssignmentDao
public List<Assignment> getActiveAssignmentsForJob(String principalId, Long jobNumber, org.joda.time.LocalDate asOfDate)
AssignmentDao
getActiveAssignmentsForJob
in interface AssignmentDao
public List<Assignment> searchAssignments(org.joda.time.LocalDate fromEffdt, org.joda.time.LocalDate toEffdt, String principalId, String jobNumber, String dept, String workArea, String active, String showHistory)
searchAssignments
in interface AssignmentDao
public Assignment getMaxTimestampAssignment(String principalId)
getMaxTimestampAssignment
in interface AssignmentDao
public List<String> getPrincipalIds(List<String> workAreaList, org.joda.time.LocalDate effdt, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
getPrincipalIds
in interface AssignmentDao
public List<Assignment> getAssignments(List<String> workAreaList, org.joda.time.LocalDate effdt, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
getAssignments
in interface AssignmentDao
public List<Assignment> findAssignmentsHistoryForPeriod(String principalId, org.joda.time.LocalDate startDate, org.joda.time.LocalDate endDate)
findAssignmentsHistoryForPeriod
in interface AssignmentDao
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.