org.kuali.kpme.core.assignment.dao
Class AssignmentDaoOjbImpl
java.lang.Object
   org.springframework.dao.support.DaoSupport
org.springframework.dao.support.DaoSupport
       org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
           org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
               org.kuali.kpme.core.assignment.dao.AssignmentDaoOjbImpl
org.kuali.kpme.core.assignment.dao.AssignmentDaoOjbImpl
- All Implemented Interfaces: 
- AssignmentDao, org.kuali.rice.core.framework.persistence.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean
- public class AssignmentDaoOjbImpl 
- 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,
                               org.joda.time.LocalDate asOfDate)Returns all assignments for the provided principalId that are valid as of
 the specified payPeriodEndDate.
 | 
|  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)
 | 
 
| 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 | 
 
AssignmentDaoOjbImpl
public AssignmentDaoOjbImpl()
saveOrUpdate
public void saveOrUpdate(Assignment assignment)
- Description copied from interface: AssignmentDao
- Save or update the given assignment
 
- 
- Specified by:
- saveOrUpdatein interface- AssignmentDao
 
- 
 
saveOrUpdate
public void saveOrUpdate(List<Assignment> assignments)
- Description copied from interface: AssignmentDao
- Save of update the given list of assignments
 
- 
- Specified by:
- saveOrUpdatein interface- AssignmentDao
 
- 
 
delete
public void delete(Assignment assignment)
- Description copied from interface: AssignmentDao
- Delete an assignment
 
- 
- Specified by:
- deletein interface- AssignmentDao
 
- 
 
getAssignment
public Assignment getAssignment(String principalId,
                                Long jobNumber,
                                Long workArea,
                                Long task,
                                org.joda.time.LocalDate asOfDate)
- 
- Specified by:
- getAssignmentin interface- AssignmentDao
 
- 
 
getAssignmentForTargetPrincipal
public Assignment getAssignmentForTargetPrincipal(Long job,
                                                  Long workArea,
                                                  Long task,
                                                  org.joda.time.LocalDate asOfDate)
- 
- Specified by:
- getAssignmentForTargetPrincipalin interface- AssignmentDao
 
- 
 
findAssignments
public List<Assignment> findAssignments(String principalId,
                                        org.joda.time.LocalDate asOfDate)
- Description copied from interface: AssignmentDao
- Returns all assignments for the provided principalId that are valid as of
 the specified payPeriodEndDate.
 
- 
- Specified by:
- findAssignmentsin interface- AssignmentDao
 
- 
- Returns:
 
findAssignmentsWithinPeriod
public List<Assignment> findAssignmentsWithinPeriod(String principalId,
                                                    org.joda.time.LocalDate startDate,
                                                    org.joda.time.LocalDate endDate)
- 
- Specified by:
- findAssignmentsWithinPeriodin interface- AssignmentDao
 
- 
 
getActiveAssignmentsInWorkArea
public List<Assignment> getActiveAssignmentsInWorkArea(Long workArea,
                                                       org.joda.time.LocalDate asOfDate)
- Description copied from interface: AssignmentDao
- Get list of active assignments in a given work area as of a particular date
 
- 
- Specified by:
- getActiveAssignmentsInWorkAreain interface- AssignmentDao
 
- 
- Returns:
 
getActiveAssignmentsInWorkAreas
public List<Assignment> getActiveAssignmentsInWorkAreas(List<Long> workAreas,
                                                        org.joda.time.LocalDate asOfDate)
- 
- Specified by:
- getActiveAssignmentsInWorkAreasin interface- AssignmentDao
 
- 
 
getActiveAssignments
public List<Assignment> getActiveAssignments(org.joda.time.LocalDate asOfDate)
- 
- Specified by:
- getActiveAssignmentsin interface- AssignmentDao
 
- 
 
getAssignment
public Assignment getAssignment(String tkAssignmentId)
- 
- Specified by:
- getAssignmentin interface- AssignmentDao
 
- 
 
getActiveAssignmentsForJob
public List<Assignment> getActiveAssignmentsForJob(String principalId,
                                                   Long jobNumber,
                                                   org.joda.time.LocalDate 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:
- getActiveAssignmentsForJobin interface- AssignmentDao
 
- 
- Returns:
 
searchAssignments
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)
- 
- Specified by:
- searchAssignmentsin interface- AssignmentDao
 
- 
 
getMaxTimestampAssignment
public Assignment getMaxTimestampAssignment(String principalId)
- 
- Specified by:
- getMaxTimestampAssignmentin interface- AssignmentDao
 
- 
 
getPrincipalIds
public List<String> getPrincipalIds(List<String> workAreaList,
                                    org.joda.time.LocalDate effdt,
                                    org.joda.time.LocalDate startDate,
                                    org.joda.time.LocalDate endDate)
- 
- Specified by:
- getPrincipalIdsin interface- AssignmentDao
 
- 
 
getAssignments
public List<Assignment> getAssignments(List<String> workAreaList,
                                       org.joda.time.LocalDate effdt,
                                       org.joda.time.LocalDate startDate,
                                       org.joda.time.LocalDate endDate)
- 
- Specified by:
- getAssignmentsin interface- AssignmentDao
 
- 
 
Copyright © 2004-2014 The Kuali Foundation. All Rights Reserved.