public class TravelDocumentDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements TravelDocumentDao, org.kuali.rice.krad.util.OjbCollectionAware
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
LOG |
| Constructor and Description |
|---|
TravelDocumentDaoOjb() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
findDocumentNumbers(Class<?> travelDocumentClass,
String travelDocumentNumber) |
List<TravelDocument> |
findDocuments(Class<?> travelDocumentClass,
String travelDocumentNumber) |
List<PerDiem> |
findEffectivePerDiems(int primaryDestinationId,
Date effectiveDate)
PerDiem lookup base on search values
PER_DIEM_LOOKUP_DATE can also be passed in for a custom date duration search
|
Object[] |
findLatestTaxableRamificationNotificationDate()
find the latest taxable ramification notification date
|
Collection<? extends TEMReimbursementDocument> |
findMatchingTrips(Integer temProfileId,
Timestamp tripBegin,
Timestamp tripEnd)
Retrieves duplicate trips for traveler with given trip begin and end date
|
Collection<? extends TravelAuthorizationDocument> |
getAuthorizationsAndAmendmentsByHeaderStatus(String statusCode,
boolean immediatesOnly)
Retrieves all TravelAuthorization and TravelAuthorizationAmendment documents with the given financial system document header status
|
Collection<? extends TEMReimbursementDocument> |
getEntertainmentDocumentsByHeaderStatus(String statusCode,
boolean immediatesOnly)
Retrieves all Entertainment documents with the given financial system document header status
|
Collection<? extends TEMReimbursementDocument> |
getEntertainmentDocumentsNeedingCorporateCardExtraction()
Retrieves all entertainment reimbursement documents which have corporate card expenses to extract but which have not yet been extracted
|
List<TravelAdvance> |
getOutstandingTravelAdvanceByInvoice(Set<String> arInvoiceDocNumbers)
get all outstanding travel advances by the given invoice document numbers.
|
Collection<? extends TEMReimbursementDocument> |
getReimbursementDocumentsByHeaderStatus(String statusCode,
boolean immediatesOnly)
Retrieves all Travel Reimbursement documents with the given financial system document header status
|
Collection<? extends TEMReimbursementDocument> |
getReimbursementDocumentsNeedingCorporateCardExtraction()
Retrieves all travel reimbursement documents which have corporate card expenses to extract but which have not yet been extracted
|
Collection<? extends TEMReimbursementDocument> |
getRelocationDocumentsByHeaderStatus(String statusCode,
boolean immediatesOnly)
Retrieves all Travel Relocation documents with the given financial system document header status
|
Collection<? extends TEMReimbursementDocument> |
getRelocationDocumentsNeedingCorporateCardExtraction()
Retrieves all moving and relocation reimbursement documents which have corporate card expenses to extract but which have not yet been extracted
|
protected Collection<? extends TravelDocument> |
getTravelDocumentsByHeaderStatus(Class<? extends TravelDocument> documentClazz,
String statusCode,
boolean immediatesOnly,
String travelPaymentProperty)
Do a lookup of reimbursable documents of the given class with the given financial system document header status code and a payment method of "check" (ie, PDP will pay out)
|
protected Collection<? extends TravelDocument> |
getUnExtractedCorporateCardTravelDocuments(Class<? extends TravelDocument> documentClazz)
Retrieves all documents of the given TravelDocument class that a) are extracted or approved by document header, but b) have a null corporate card extraction date and c) actually have corporate card expenses
|
getDbPlatform, setDbPlatformcheckDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplatepublic static org.apache.log4j.Logger LOG
public TravelDocumentDaoOjb()
public List<TravelDocument> findDocuments(Class<?> travelDocumentClass, String travelDocumentNumber)
findDocuments in interface TravelDocumentDaotravelDocumentNumber - to refer to for travel document resultspublic List<String> findDocumentNumbers(Class<?> travelDocumentClass, String travelDocumentNumber)
findDocumentNumbers in interface TravelDocumentDaotravelDocumentNumber - to refer to for travel document resultspublic List<PerDiem> findEffectivePerDiems(int primaryDestinationId, Date effectiveDate)
TravelDocumentDaofindEffectivePerDiems in interface TravelDocumentDaoprimaryDestinationId - the id of the primary destination to find dates foreffectiveDate - the date we should use against the effective datesorg.kuali.kfs.module.tem.dataaccess.TravelDocumentDao#findPerDiem(int, java.sql.Date, java.sql.Date)public List<TravelAdvance> getOutstandingTravelAdvanceByInvoice(Set<String> arInvoiceDocNumbers)
TravelDocumentDaogetOutstandingTravelAdvanceByInvoice in interface TravelDocumentDaoTravelDocumentDao.getOutstandingTravelAdvanceByInvoice(java.util.Set)public Object[] findLatestTaxableRamificationNotificationDate()
TravelDocumentDaofindLatestTaxableRamificationNotificationDate in interface TravelDocumentDaoTravelDocumentDao.findLatestTaxableRamificationNotificationDate()public Collection<? extends TEMReimbursementDocument> getReimbursementDocumentsByHeaderStatus(String statusCode, boolean immediatesOnly)
TravelDocumentDaogetReimbursementDocumentsByHeaderStatus in interface TravelDocumentDaostatusCode - the financial system document header status of the documents to retrieveimmediatesOnly - true if only those documents marked for immediate payment are to be retrieved, false if all documents at the status are to be retrievedTravelDocumentDao.getReimbursementDocumentsByHeaderStatus(java.lang.String, boolean)public Collection<? extends TEMReimbursementDocument> getRelocationDocumentsByHeaderStatus(String statusCode, boolean immediatesOnly)
TravelDocumentDaogetRelocationDocumentsByHeaderStatus in interface TravelDocumentDaostatusCode - the financial system document header status of the documents to retrieveimmediatesOnly - true if only those documents marked for immediate payment are to be retrieved, false if all documents at the status are to be retrievedTravelDocumentDao.getRelocationDocumentsByHeaderStatus(java.lang.String, boolean)public Collection<? extends TEMReimbursementDocument> getEntertainmentDocumentsByHeaderStatus(String statusCode, boolean immediatesOnly)
TravelDocumentDaogetEntertainmentDocumentsByHeaderStatus in interface TravelDocumentDaostatusCode - the financial system document header status of the documents to retrieveimmediatesOnly - true if only those documents marked for immediate payment are to be retrieved, false if all documents at the status are to be retrievedTravelDocumentDao.getEntertainmentDocumentsByHeaderStatus(java.lang.String, boolean)public Collection<? extends TravelAuthorizationDocument> getAuthorizationsAndAmendmentsByHeaderStatus(String statusCode, boolean immediatesOnly)
TravelDocumentDaogetAuthorizationsAndAmendmentsByHeaderStatus in interface TravelDocumentDaostatusCode - the financial system document header status of the documents to retrieveimmediatesOnly - true if only those documents marked for immediate payment are to be retrieved, false if all documents at the status are to be retrievedorg.kuali.kfs.module.tem.dataaccess.TravelDocumentDao#getAuthorizationDocumentsByHeaderStatus(java.lang.String, boolean)protected Collection<? extends TravelDocument> getTravelDocumentsByHeaderStatus(Class<? extends TravelDocument> documentClazz, String statusCode, boolean immediatesOnly, String travelPaymentProperty)
documentClazz - the class of the document to look upstatusCode - the status code of the documents to look upimmediatesOnly - true if only those reimbursable documentspublic Collection<? extends TEMReimbursementDocument> getReimbursementDocumentsNeedingCorporateCardExtraction()
getReimbursementDocumentsNeedingCorporateCardExtraction in interface TravelDocumentDaoTravelDocumentDao.getReimbursementDocumentsNeedingCorporateCardExtraction()public Collection<? extends TEMReimbursementDocument> getEntertainmentDocumentsNeedingCorporateCardExtraction()
getEntertainmentDocumentsNeedingCorporateCardExtraction in interface TravelDocumentDaoTravelDocumentDao.getReimbursementDocumentsNeedingCorporateCardExtraction()public Collection<? extends TEMReimbursementDocument> getRelocationDocumentsNeedingCorporateCardExtraction()
getRelocationDocumentsNeedingCorporateCardExtraction in interface TravelDocumentDaoTravelDocumentDao.getReimbursementDocumentsNeedingCorporateCardExtraction()protected Collection<? extends TravelDocument> getUnExtractedCorporateCardTravelDocuments(Class<? extends TravelDocument> documentClazz)
documentClazz - the class of the travel documents to retrievepublic Collection<? extends TEMReimbursementDocument> findMatchingTrips(Integer temProfileId, Timestamp tripBegin, Timestamp tripEnd)
TravelDocumentDaofindMatchingTrips in interface TravelDocumentDaoCopyright © 2004–2015 The Kuali Foundation. All rights reserved.