public class CreditMemoDaoOjb extends org.kuali.rice.core.framework.persistence.ojb.dao.PlatformAwareDaoBaseOjb implements CreditMemoDao
Constructor and Description |
---|
CreditMemoDaoOjb() |
Modifier and Type | Method and Description |
---|---|
boolean |
duplicateExists(Integer vendorNumberHeaderId,
Integer vendorNumberDetailId,
Date date,
org.kuali.rice.core.api.util.type.KualiDecimal amount)
This method tests for a duplicate entry of a credit memo by the combination of vendor number header id, vendor detail id,
date and amount.
|
boolean |
duplicateExists(Integer vendorNumberHeaderId,
Integer vendorNumberDetailId,
String creditMemoNumber)
This method tests for a duplicate entry of a credit memo by the combination of vendorNumber HeaderId, vendorNumber and
creditMemoNumber.
|
List<String> |
getActiveCreditMemoDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
Retrieves a list of potentially active credit memos for a purchase order by
status code.
|
List<VendorCreditMemoDocument> |
getCreditMemosToExtract(String chartCode)
Get all the credit memos that need to be extracted
|
Collection<VendorCreditMemoDocument> |
getCreditMemosToExtractByVendor(String chartCode,
VendorGroupingHelper vendor)
Get all the credit memos that need to be extracted for a particular vendor record.
|
String |
getDocumentNumberByCreditMemoId(Integer id)
This method returns a credit memo document number by id.
|
protected String |
getDocumentNumberOfCreditMemoByCriteria(org.apache.ojb.broker.query.Criteria criteria)
Retrieves a document number for a credit memo by user defined criteria.
|
protected List<String> |
getDocumentNumbersOfCreditMemoByCriteria(org.apache.ojb.broker.query.Criteria criteria,
boolean orderByAscending)
Retrieves a document number for a credit memo by user defined criteria and sorts the values ascending if orderByAscending
parameter is true, descending otherwise.
|
getDbPlatform, setDbPlatform
public CreditMemoDaoOjb()
public List<VendorCreditMemoDocument> getCreditMemosToExtract(String chartCode)
CreditMemoDao
getCreditMemosToExtract
in interface CreditMemoDao
chartCode
- - if not null, limit results to a single chartCreditMemoDao.getCreditMemosToExtract(java.lang.String)
public Collection<VendorCreditMemoDocument> getCreditMemosToExtractByVendor(String chartCode, VendorGroupingHelper vendor)
CreditMemoDao
getCreditMemosToExtractByVendor
in interface CreditMemoDao
chartCode
- - if not null, limit results to a single chartorg.kuali.ole.module.purap.document.dataaccess.CreditMemoDao#getCreditMemosToExtractByVendor(java.lang.String, java.lang.Integer, java.lang.Integer)
public boolean duplicateExists(Integer vendorNumberHeaderId, Integer vendorNumberDetailId, String creditMemoNumber)
CreditMemoDao
duplicateExists
in interface CreditMemoDao
vendorNumberHeaderId
- - vendor number header idcreditMemoNumber
- - the vendor-supplied creditMemoNumberedu.iu.uis.pur.cm.dao.CreditMemoDao#duplicateExists(java.lang.String, java.lang.String)
public boolean duplicateExists(Integer vendorNumberHeaderId, Integer vendorNumberDetailId, Date date, org.kuali.rice.core.api.util.type.KualiDecimal amount)
CreditMemoDao
duplicateExists
in interface CreditMemoDao
date
- - date of transactionamount
- - amount of transactionedu.iu.uis.pur.cm.dao.CreditMemoDao#duplicateExists(java.lang.String, java.lang.String)
public String getDocumentNumberByCreditMemoId(Integer id)
CreditMemoDao
getDocumentNumberByCreditMemoId
in interface CreditMemoDao
id
- - credit memo idCreditMemoDao.getDocumentNumberByCreditMemoId(java.lang.Integer)
protected String getDocumentNumberOfCreditMemoByCriteria(org.apache.ojb.broker.query.Criteria criteria)
criteria
- - holds field and value pairs defined by the calling methodprotected List<String> getDocumentNumbersOfCreditMemoByCriteria(org.apache.ojb.broker.query.Criteria criteria, boolean orderByAscending)
criteria
- - list of criteria to use in the retrieveorderByAscending
- - boolean indicating results should be sorted ascending, descending otherwisepublic List<String> getActiveCreditMemoDocumentNumbersForPurchaseOrder(Integer purchaseOrderId)
CreditMemoDao
getActiveCreditMemoDocumentNumbersForPurchaseOrder
in interface CreditMemoDao
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.