org.kuali.hr.lm.workflow.dao
Class LeaveCalendarDocumentHeaderDaoImpl

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.hr.lm.workflow.dao.LeaveCalendarDocumentHeaderDaoImpl
All Implemented Interfaces:
LeaveCalendarDocumentHeaderDao, org.kuali.rice.core.framework.persistence.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class LeaveCalendarDocumentHeaderDaoImpl
extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb
implements LeaveCalendarDocumentHeaderDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
LeaveCalendarDocumentHeaderDaoImpl()
           
 
Method Summary
 void deleteLeaveCalendarHeader(String documentId)
           
 List<LeaveCalendarDocumentHeader> getAllDocumentHeadersForPricipalId(String principalId)
           
 List<LeaveCalendarDocumentHeader> getAllDocumentHeadersInRangeForPricipalId(String principalId, Date startDate, Date endDate)
           
 List<LeaveCalendarDocumentHeader> getApprovalDelinquentDocumentHeaders(String principalId)
           
 List<LeaveCalendarDocumentHeader> getDocumentHeaders(Date beginDate, Date endDate)
           
 LeaveCalendarDocumentHeader getLeaveCalendarDocumentHeader(String documentId)
           
 LeaveCalendarDocumentHeader getLeaveCalendarDocumentHeader(String principalId, Date beginDate, Date endDate)
           
 LeaveCalendarDocumentHeader getMaxEndDateApprovedLeaveCalendar(String principalId)
           
 LeaveCalendarDocumentHeader getMinBeginDatePendingLeaveCalendar(String principalId)
           
 LeaveCalendarDocumentHeader getNextDocumentHeader(String principalId, Date endDate)
           
 LeaveCalendarDocumentHeader getPreviousDocumentHeader(String principalId, Date beginDate)
          Document header IDs are ordered, so an ID less than the current will always be previous to current.
 List<LeaveCalendarDocumentHeader> getSubmissionDelinquentDocumentHeaders(String principalId, Date beforeDate)
           
 void saveOrUpdate(LeaveCalendarDocumentHeader leaveCalendarDocumentHeader)
           
 
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

LeaveCalendarDocumentHeaderDaoImpl

public LeaveCalendarDocumentHeaderDaoImpl()
Method Detail

getLeaveCalendarDocumentHeader

public LeaveCalendarDocumentHeader getLeaveCalendarDocumentHeader(String documentId)
Specified by:
getLeaveCalendarDocumentHeader in interface LeaveCalendarDocumentHeaderDao

getLeaveCalendarDocumentHeader

public LeaveCalendarDocumentHeader getLeaveCalendarDocumentHeader(String principalId,
                                                                  Date beginDate,
                                                                  Date endDate)
Specified by:
getLeaveCalendarDocumentHeader in interface LeaveCalendarDocumentHeaderDao

saveOrUpdate

public void saveOrUpdate(LeaveCalendarDocumentHeader leaveCalendarDocumentHeader)
Specified by:
saveOrUpdate in interface LeaveCalendarDocumentHeaderDao

getPreviousDocumentHeader

public LeaveCalendarDocumentHeader getPreviousDocumentHeader(String principalId,
                                                             Date beginDate)
Document header IDs are ordered, so an ID less than the current will always be previous to current.

Specified by:
getPreviousDocumentHeader in interface LeaveCalendarDocumentHeaderDao

getNextDocumentHeader

public LeaveCalendarDocumentHeader getNextDocumentHeader(String principalId,
                                                         Date endDate)
Specified by:
getNextDocumentHeader in interface LeaveCalendarDocumentHeaderDao

getDocumentHeaders

public List<LeaveCalendarDocumentHeader> getDocumentHeaders(Date beginDate,
                                                            Date endDate)
Specified by:
getDocumentHeaders in interface LeaveCalendarDocumentHeaderDao

getMaxEndDateApprovedLeaveCalendar

public LeaveCalendarDocumentHeader getMaxEndDateApprovedLeaveCalendar(String principalId)
Specified by:
getMaxEndDateApprovedLeaveCalendar in interface LeaveCalendarDocumentHeaderDao

getMinBeginDatePendingLeaveCalendar

public LeaveCalendarDocumentHeader getMinBeginDatePendingLeaveCalendar(String principalId)
Specified by:
getMinBeginDatePendingLeaveCalendar in interface LeaveCalendarDocumentHeaderDao

getAllDocumentHeadersForPricipalId

public List<LeaveCalendarDocumentHeader> getAllDocumentHeadersForPricipalId(String principalId)
Specified by:
getAllDocumentHeadersForPricipalId in interface LeaveCalendarDocumentHeaderDao

getSubmissionDelinquentDocumentHeaders

public List<LeaveCalendarDocumentHeader> getSubmissionDelinquentDocumentHeaders(String principalId,
                                                                                Date beforeDate)
Specified by:
getSubmissionDelinquentDocumentHeaders in interface LeaveCalendarDocumentHeaderDao

getApprovalDelinquentDocumentHeaders

public List<LeaveCalendarDocumentHeader> getApprovalDelinquentDocumentHeaders(String principalId)
Specified by:
getApprovalDelinquentDocumentHeaders in interface LeaveCalendarDocumentHeaderDao

deleteLeaveCalendarHeader

public void deleteLeaveCalendarHeader(String documentId)
Specified by:
deleteLeaveCalendarHeader in interface LeaveCalendarDocumentHeaderDao

getAllDocumentHeadersInRangeForPricipalId

public List<LeaveCalendarDocumentHeader> getAllDocumentHeadersInRangeForPricipalId(String principalId,
                                                                                   Date startDate,
                                                                                   Date endDate)
Specified by:
getAllDocumentHeadersInRangeForPricipalId in interface LeaveCalendarDocumentHeaderDao


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