org.kuali.kfs.module.purap.document.dataaccess.impl
Class PurchaseOrderDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
              extended by org.kuali.kfs.module.purap.document.dataaccess.impl.PurchaseOrderDaoOjb
All Implemented Interfaces:
PurchaseOrderDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class PurchaseOrderDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements PurchaseOrderDao

OJB implementation of PurchaseOrderDao.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PurchaseOrderDaoOjb()
           
 
Method Summary
 List<AutoClosePurchaseOrderView> getAllOpenPurchaseOrders(List<String> excludedVendorChoiceCodes)
          This method gets all the PurchaseOrderView objects that relate to POs with no recurring payment type, status of 'OPEN', and total encumbrance of 0 that do not have any of the excluded vendor choice codes.
 List<AutoClosePurchaseOrderView> getAutoCloseRecurringPurchaseOrders(List<String> excludedVendorChoiceCodes)
          This method gets all the PurchaseOrderView objects that relate to POs with a recurring payment type, status of 'OPEN', and that do not have any of the excluded vendor choice codes.
 PurchaseOrderDocument getCurrentPurchaseOrder(Integer id)
           
 String getDocumentNumberForCurrentPurchaseOrder(Integer id)
          Retrieves the current Purchase Order Document's document number by the purapDocumentIdentifier.
 String getDocumentNumberForPurchaseOrderId(Integer id)
          Retrieves the Purchase Order Document's document number using the purapDocumentIdentifier as criteria
protected  Iterator<Object[]> getDocumentNumbersUsingPurchaseOrderCriteria(org.apache.ojb.broker.query.Criteria criteria)
          Retrieves a list of document numbers of the purchase order returned by the passed in criteria.
protected  String getDocumentNumberUsingPurchaseOrderCriteria(org.apache.ojb.broker.query.Criteria criteria)
          Retrieves the document number of the purchase order returned by the passed in criteria.
 String getOldestPurchaseOrderDocumentNumber(Integer id)
          Retrieves the oldest purchase order's (defined by the one having the smallest document number) document number.
 List<PurchaseOrderDocument> getPendingPurchaseOrdersForFaxing()
          This method gets all the Purchase orders that are waiting for faxing
 Integer getPurchaseOrderIdForCurrentPurchaseOrderByRelatedDocId(Integer accountsPayablePurchasingDocumentLinkIdentifier)
           
 boolean itemExistsOnPurchaseOrder(Integer poItemLineNumber, String docNumber)
          Determines if the purchase order item exists on the current purchase order.
 
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

PurchaseOrderDaoOjb

public PurchaseOrderDaoOjb()
Method Detail

getPurchaseOrderIdForCurrentPurchaseOrderByRelatedDocId

public Integer getPurchaseOrderIdForCurrentPurchaseOrderByRelatedDocId(Integer accountsPayablePurchasingDocumentLinkIdentifier)
Specified by:
getPurchaseOrderIdForCurrentPurchaseOrderByRelatedDocId in interface PurchaseOrderDao

getCurrentPurchaseOrder

public PurchaseOrderDocument getCurrentPurchaseOrder(Integer id)
Specified by:
getCurrentPurchaseOrder in interface PurchaseOrderDao

getDocumentNumberForPurchaseOrderId

public String getDocumentNumberForPurchaseOrderId(Integer id)
Description copied from interface: PurchaseOrderDao
Retrieves the Purchase Order Document's document number using the purapDocumentIdentifier as criteria

Specified by:
getDocumentNumberForPurchaseOrderId in interface PurchaseOrderDao
Parameters:
id - - purapDocument Identifier
Returns:
- the document number of the purchase order found or null if no purchase order found
See Also:
PurchaseOrderDao.getDocumentNumberForPurchaseOrderId(java.lang.Integer)

getDocumentNumberForCurrentPurchaseOrder

public String getDocumentNumberForCurrentPurchaseOrder(Integer id)
Description copied from interface: PurchaseOrderDao
Retrieves the current Purchase Order Document's document number by the purapDocumentIdentifier.

Specified by:
getDocumentNumberForCurrentPurchaseOrder in interface PurchaseOrderDao
Parameters:
id - - purapDocument Identifier
Returns:
- the document number of the purchase order found or null if no purchase order found
See Also:
PurchaseOrderDao.getDocumentNumberForCurrentPurchaseOrder(java.lang.Integer)

getOldestPurchaseOrderDocumentNumber

public String getOldestPurchaseOrderDocumentNumber(Integer id)
Description copied from interface: PurchaseOrderDao
Retrieves the oldest purchase order's (defined by the one having the smallest document number) document number.

Specified by:
getOldestPurchaseOrderDocumentNumber in interface PurchaseOrderDao
Parameters:
id - - the purapDocumentIdentifier.
Returns:
- the document numbers of the purchase order found or null if none found
See Also:
PurchaseOrderDao.getOldestPurchaseOrderDocumentNumber(java.lang.Integer)

getDocumentNumberUsingPurchaseOrderCriteria

protected String getDocumentNumberUsingPurchaseOrderCriteria(org.apache.ojb.broker.query.Criteria criteria)
Retrieves the document number of the purchase order returned by the passed in criteria.

Parameters:
criteria - - list of criteria to use in the retrieve
Returns:
Document number string if a valid purchase order is found, null if no purchase order is found

getDocumentNumbersUsingPurchaseOrderCriteria

protected Iterator<Object[]> getDocumentNumbersUsingPurchaseOrderCriteria(org.apache.ojb.broker.query.Criteria criteria)
Retrieves a list of document numbers of the purchase order returned by the passed in criteria.

Parameters:
criteria - - list of criteria to use in the retrieve
Returns:
Iterator of document numbers

itemExistsOnPurchaseOrder

public boolean itemExistsOnPurchaseOrder(Integer poItemLineNumber,
                                         String docNumber)
Description copied from interface: PurchaseOrderDao
Determines if the purchase order item exists on the current purchase order.

Specified by:
itemExistsOnPurchaseOrder in interface PurchaseOrderDao
Returns:
See Also:
PurchaseOrderDao.itemExistsOnPurchaseOrder(java.lang.Integer, java.lang.String)

getAllOpenPurchaseOrders

public List<AutoClosePurchaseOrderView> getAllOpenPurchaseOrders(List<String> excludedVendorChoiceCodes)
Description copied from interface: PurchaseOrderDao
This method gets all the PurchaseOrderView objects that relate to POs with no recurring payment type, status of 'OPEN', and total encumbrance of 0 that do not have any of the excluded vendor choice codes.

Specified by:
getAllOpenPurchaseOrders in interface PurchaseOrderDao
Parameters:
excludedVendorChoiceCodes - - list of strings of excluded vendor choice codes
Returns:
List of PurchaseOrderAutoClose objects
See Also:
PurchaseOrderDao.getAllOpenPurchaseOrders(java.util.List)

getAutoCloseRecurringPurchaseOrders

public List<AutoClosePurchaseOrderView> getAutoCloseRecurringPurchaseOrders(List<String> excludedVendorChoiceCodes)
Description copied from interface: PurchaseOrderDao
This method gets all the PurchaseOrderView objects that relate to POs with a recurring payment type, status of 'OPEN', and that do not have any of the excluded vendor choice codes.

Specified by:
getAutoCloseRecurringPurchaseOrders in interface PurchaseOrderDao
Parameters:
excludedVendorChoiceCodes - - list of strings of excluded vendor choice codes
Returns:
List of PurchaseOrderAutoClose objects
See Also:
PurchaseOrderDao.getAutoCloseRecurringPurchaseOrders(java.util.List)

getPendingPurchaseOrdersForFaxing

public List<PurchaseOrderDocument> getPendingPurchaseOrdersForFaxing()
Description copied from interface: PurchaseOrderDao
This method gets all the Purchase orders that are waiting for faxing

Specified by:
getPendingPurchaseOrdersForFaxing in interface PurchaseOrderDao
Returns:
List of POs


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.