|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
org.kuali.kfs.module.purap.document.dataaccess.impl.PaymentRequestDaoOjb
public class PaymentRequestDaoOjb
OJB Implementation of PaymentRequestDao.
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
PaymentRequestDaoOjb()
|
|
| Method Summary | |
|---|---|
List<String> |
getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
Retrieves a list of potentially active payment requests for a purchase order by status code. |
List<PaymentRequestDocument> |
getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId,
org.kuali.rice.kns.util.KualiDecimal vendorInvoiceAmount,
Date invoiceDate)
Retrieves a list of Payment Requests with the given PO Id, invoice amount, and invoice date. |
List<PaymentRequestDocument> |
getActivePaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId)
Retrieves a list of payment requests with the given vendor id and invoice number. |
List<PaymentRequestDocument> |
getActivePaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId,
String invoiceNumber)
Retrieves a list of payment requests with the given vendor id and invoice number. |
String |
getDocumentNumberByPaymentRequestId(Integer id)
Get a payment request document number by id. |
protected String |
getDocumentNumberOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria)
Retrieves a document number for a payment request by user defined criteria. |
List<String> |
getDocumentNumbersByPurchaseOrderId(Integer poPurApId)
Retrieves a list of document numbers by purchase order id. |
protected Iterator<Object[]> |
getDocumentNumbersOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria,
boolean orderByAscending)
Retrieves a document number for a payment request by user defined criteria and sorts the values ascending if orderByAscending parameter is true, descending otherwise. |
List<PaymentRequestDocument> |
getEligibleForAutoApproval()
Get all payment request documents that are eligible for auto-approval. |
Collection<PaymentRequestDocument> |
getImmediatePaymentRequestsToExtract(String chartCode)
Get all the payment requests that are marked immediate that need to be extracted to PDP. |
List<PaymentRequestDocument> |
getPaymentRequestInReceivingStatus()
Get all payment request which are waiting in receiving status queue |
protected List<PaymentRequestDocument> |
getPaymentRequestsByQueryByCriteria(org.apache.ojb.broker.query.QueryByCriteria qbc)
Retrieves a list of payment requests by user defined criteria. |
Collection<PaymentRequestDocument> |
getPaymentRequestsToExtract(boolean onlySpecialPayments,
String chartCode,
Date onOrBeforePaymentRequestPayDate)
The special payments query should be this: select * from pur.ap_pmt_rqst_t where pmt_rqst_stat_cd in ('AUTO', 'DPTA') and prcs_cmp_cd = ? and pmt_extrt_ts is NULL and pmt_hld_ind = 'N' and ( ( ( pmt_spcl_handlg_instrc_ln1_txt is not NULL or pmt_spcl_handlg_instrc_ln2_txt is not NULL or pmt_spcl_handlg_instrc_ln3_txt is not NULL or pmt_att_ind = 'Y') and trunc (pmt_rqst_pay_dt) <= trunc (sysdate)) or IMD_PMT_IND = 'Y')}) |
Iterator<PaymentRequestDocument> |
getPaymentRequestsToExtract(String campusCode,
Integer paymentRequestIdentifier,
Integer purchaseOrderIdentifier,
Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier)
Get all the payment requests that need to be extracted that match a credit memo. |
Collection<PaymentRequestDocument> |
getPaymentRequestsToExtractForVendor(String campusCode,
VendorGroupingHelper vendor,
Date onOrBeforePaymentRequestPayDate)
Get all the payment requests that need to be extracted that match a credit memo. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
|
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
|
void |
setNegativePaymentRequestApprovalLimitDao(NegativePaymentRequestApprovalLimitDao negativePaymentRequestApprovalLimitDao)
|
void |
setPurapAccountingService(PurapAccountingService purapAccountingService)
|
void |
setPurapRunDateService(PurapRunDateService purapRunDateService)
|
| Methods inherited from class org.kuali.rice.kns.dao.impl.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 |
|---|
public PaymentRequestDaoOjb()
| Method Detail |
|---|
public void setNegativePaymentRequestApprovalLimitDao(NegativePaymentRequestApprovalLimitDao negativePaymentRequestApprovalLimitDao)
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
public void setPurapAccountingService(PurapAccountingService purapAccountingService)
public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
public void setPurapRunDateService(PurapRunDateService purapRunDateService)
public Collection<PaymentRequestDocument> getPaymentRequestsToExtract(boolean onlySpecialPayments,
String chartCode,
Date onOrBeforePaymentRequestPayDate)
getPaymentRequestsToExtract in interface PaymentRequestDaoonlySpecialPayments - - true only include special payments, False - include allchartCode - - if not null, limit results to a single chart
org.kuali.kfs.module.purap.document.dataaccess.PaymentRequestDao#getPaymentRequestsToExtract(boolean, java.lang.String)public Collection<PaymentRequestDocument> getImmediatePaymentRequestsToExtract(String chartCode)
PaymentRequestDao
getImmediatePaymentRequestsToExtract in interface PaymentRequestDaochartCode - - chart of accounts code
PaymentRequestDao.getImmediatePaymentRequestsToExtract(java.lang.String)
public Iterator<PaymentRequestDocument> getPaymentRequestsToExtract(String campusCode,
Integer paymentRequestIdentifier,
Integer purchaseOrderIdentifier,
Integer vendorHeaderGeneratedIdentifier,
Integer vendorDetailAssignedIdentifier)
PaymentRequestDao
getPaymentRequestsToExtract in interface PaymentRequestDaocampusCode - - limit results to a single chartpaymentRequestIdentifier - - Payment Request Identifier (can be null)purchaseOrderIdentifier - - PO Identifier (can be null)vendorHeaderGeneratedIdentifier - - Vendor Header IDvendorDetailAssignedIdentifier - - Vendor Detail ID
PaymentRequestDao.getPaymentRequestsToExtract(java.lang.String, java.lang.Integer,
java.lang.Integer, java.lang.Integer, java.lang.Integer)
public Collection<PaymentRequestDocument> getPaymentRequestsToExtractForVendor(String campusCode,
VendorGroupingHelper vendor,
Date onOrBeforePaymentRequestPayDate)
PaymentRequestDao
getPaymentRequestsToExtractForVendor in interface PaymentRequestDaocampusCode - - limit results to a single chartvendor - - Vendor Header ID, Vendor Detail ID, Country, Zip CodeonOrBeforePaymentRequestPayDate - only payment requests with a pay date on or before this value will be returned in the iterator
org.kuali.kfs.module.purap.document.dataaccess.PaymentRequestDao#getPaymentRequestsToExtractForVendor(java.lang.String, org.kuali.kfs.module.purap.util.VendorGroupingHelper)public List<PaymentRequestDocument> getEligibleForAutoApproval()
PaymentRequestDao
getEligibleForAutoApproval in interface PaymentRequestDaoPaymentRequestDao.getEligibleForAutoApproval()public String getDocumentNumberByPaymentRequestId(Integer id)
PaymentRequestDao
getDocumentNumberByPaymentRequestId in interface PaymentRequestDaoid - - PaymentRequest Id
PaymentRequestDao.getDocumentNumberByPaymentRequestId(java.lang.Integer)public List<String> getDocumentNumbersByPurchaseOrderId(Integer poPurApId)
PaymentRequestDao
getDocumentNumbersByPurchaseOrderId in interface PaymentRequestDaopoPurApId - - purchase order id
PaymentRequestDao.getDocumentNumbersByPurchaseOrderId(java.lang.Integer)protected String getDocumentNumberOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria)
criteria - - list of criteria to use in the retrieve
protected Iterator<Object[]> getDocumentNumbersOfPaymentRequestByCriteria(org.apache.ojb.broker.query.Criteria criteria,
boolean orderByAscending)
criteria - - list of criteria to use in the retrieveorderByAscending - - boolean to sort results ascending if true, descending otherwise
protected List<PaymentRequestDocument> getPaymentRequestsByQueryByCriteria(org.apache.ojb.broker.query.QueryByCriteria qbc)
qbc - - query with criteria
public List<PaymentRequestDocument> getActivePaymentRequestsByVendorNumberInvoiceNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId,
String invoiceNumber)
getActivePaymentRequestsByVendorNumberInvoiceNumber in interface PaymentRequestDaovendorHeaderGeneratedId - - header id of the vendor idvendorDetailAssignedId - - detail id of the vendor idinvoiceNumber - - invoice number as entered by AP
public List<PaymentRequestDocument> getActivePaymentRequestsByVendorNumber(Integer vendorHeaderGeneratedId,
Integer vendorDetailAssignedId)
getActivePaymentRequestsByVendorNumber in interface PaymentRequestDaovendorHeaderGeneratedId - - header id of the vendor idvendorDetailAssignedId - - detail id of the vendor idinvoiceNumber - - invoice number as entered by AP
public List<PaymentRequestDocument> getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(Integer poId,
org.kuali.rice.kns.util.KualiDecimal vendorInvoiceAmount,
Date invoiceDate)
PaymentRequestDao
getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate in interface PaymentRequestDaopoId - - purchase order IDvendorInvoiceAmount - - amount of the invoice as entered by APinvoiceDate - - date of the invoice as entered by AP
PaymentRequestDao.getActivePaymentRequestsByPOIdInvoiceAmountInvoiceDate(java.lang.Integer,
org.kuali.rice.kns.util.KualiDecimal, java.sql.Date)public List<String> getActivePaymentRequestDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
PaymentRequestDao
getActivePaymentRequestDocumentNumbersForPurchaseOrder in interface PaymentRequestDaopublic List<PaymentRequestDocument> getPaymentRequestInReceivingStatus()
PaymentRequestDao
getPaymentRequestInReceivingStatus in interface PaymentRequestDao
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||