org.kuali.hr.time.assignment.dao
Class AssignmentDaoSpringOjbImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
org.kuali.hr.time.assignment.dao.AssignmentDaoSpringOjbImpl
- All Implemented Interfaces:
- AssignmentDao, org.kuali.rice.core.framework.persistence.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean
public class AssignmentDaoSpringOjbImpl
- extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
- implements AssignmentDao
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
void |
delete(Assignment assignment)
Delete an assignment |
List<Assignment> |
findAssignments(String principalId,
Date asOfDate)
Returns all assignments for the provided principalId that are valid as of
the specified payPeriodEndDate. |
List<Assignment> |
findAssignmentsWithinPeriod(String principalId,
Date startDate,
Date endDate)
|
List<Assignment> |
getActiveAssignments(Date asOfDate)
|
List<Assignment> |
getActiveAssignmentsForJob(String principalId,
Long jobNumber,
Date asOfDate)
KPME-1129
Get a list of active assignments based on principalId and jobNumber as of a particular date |
List<Assignment> |
getActiveAssignmentsInWorkArea(Long workArea,
Date asOfDate)
Get list of active assignments in a given work area as of a particular date |
Assignment |
getAssignment(Long job,
Long workArea,
Long task,
Date asOfDate)
|
Assignment |
getAssignment(String tkAssignmentId)
|
Assignment |
getAssignment(String principalId,
Long jobNumber,
Long workArea,
Long task,
Date asOfDate)
|
List<Assignment> |
getAssignments(List<String> workAreaList,
Date effdt,
Date startDate,
Date endDate)
|
Assignment |
getMaxTimestampAssignment(String principalId)
|
List<String> |
getPrincipalIds(List<String> workAreaList,
Date effdt,
Date startDate,
Date 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(Date fromEffdt,
Date toEffdt,
String principalId,
String jobNumber,
String dept,
String workArea,
String active,
String showHistory)
|
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 |
AssignmentDaoSpringOjbImpl
public AssignmentDaoSpringOjbImpl()
saveOrUpdate
public void saveOrUpdate(Assignment assignment)
- Description copied from interface:
AssignmentDao
- Save or update the given assignment
- Specified by:
saveOrUpdate
in interface AssignmentDao
saveOrUpdate
public void saveOrUpdate(List<Assignment> assignments)
- Description copied from interface:
AssignmentDao
- Save of update the given list of assignments
- Specified by:
saveOrUpdate
in interface AssignmentDao
delete
public void delete(Assignment assignment)
- Description copied from interface:
AssignmentDao
- Delete an assignment
- Specified by:
delete
in interface AssignmentDao
getAssignment
public Assignment getAssignment(String principalId,
Long jobNumber,
Long workArea,
Long task,
Date asOfDate)
- Specified by:
getAssignment
in interface AssignmentDao
getAssignment
public Assignment getAssignment(Long job,
Long workArea,
Long task,
Date asOfDate)
- Specified by:
getAssignment
in interface AssignmentDao
findAssignments
public List<Assignment> findAssignments(String principalId,
Date asOfDate)
- Description copied from interface:
AssignmentDao
- Returns all assignments for the provided principalId that are valid as of
the specified payPeriodEndDate.
- Specified by:
findAssignments
in interface AssignmentDao
- Returns:
findAssignmentsWithinPeriod
public List<Assignment> findAssignmentsWithinPeriod(String principalId,
Date startDate,
Date endDate)
- Specified by:
findAssignmentsWithinPeriod
in interface AssignmentDao
getActiveAssignmentsInWorkArea
public List<Assignment> getActiveAssignmentsInWorkArea(Long workArea,
Date asOfDate)
- Description copied from interface:
AssignmentDao
- Get list of active assignments in a given work area as of a particular date
- Specified by:
getActiveAssignmentsInWorkArea
in interface AssignmentDao
- Returns:
getActiveAssignments
public List<Assignment> getActiveAssignments(Date asOfDate)
- Specified by:
getActiveAssignments
in interface AssignmentDao
getAssignment
public Assignment getAssignment(String tkAssignmentId)
- Specified by:
getAssignment
in interface AssignmentDao
getActiveAssignmentsForJob
public List<Assignment> getActiveAssignmentsForJob(String principalId,
Long jobNumber,
Date asOfDate)
- Description copied from interface:
AssignmentDao
- KPME-1129
Get a list of active assignments based on principalId and jobNumber as of a particular date
- Specified by:
getActiveAssignmentsForJob
in interface AssignmentDao
- Returns:
searchAssignments
public List<Assignment> searchAssignments(Date fromEffdt,
Date toEffdt,
String principalId,
String jobNumber,
String dept,
String workArea,
String active,
String showHistory)
- Specified by:
searchAssignments
in interface AssignmentDao
getMaxTimestampAssignment
public Assignment getMaxTimestampAssignment(String principalId)
- Specified by:
getMaxTimestampAssignment
in interface AssignmentDao
getPrincipalIds
public List<String> getPrincipalIds(List<String> workAreaList,
Date effdt,
Date startDate,
Date endDate)
- Specified by:
getPrincipalIds
in interface AssignmentDao
getAssignments
public List<Assignment> getAssignments(List<String> workAreaList,
Date effdt,
Date startDate,
Date endDate)
- Specified by:
getAssignments
in interface AssignmentDao
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.