com.retek.component.customerorder.impl.persistence
Interface CustomerOrderDao

All Known Implementing Classes:
CacheCustomerOrderDao, OracleCustomerOrderDao

public interface CustomerOrderDao

Contains methods for persisting and retrieving customer orders.


Method Summary
 ReferenceCache createReferenceCache(java.lang.Class businessInterface)
          Creates a reference for a new given businessInterface.
 void deleteECDDRecalculationItem(DistributedReference ref)
          Deletes all the ECDDRecalculationItems from the database.
 java.util.Set findAccommodationReasons(AccommodationReasonSearchCriteria criteria)
          Retrieves accomodation reason based on the search criteria.
 java.util.Set findAllSupplierReturnDispositions()
          Retrieves all supplier return dispositions within the system.
 java.util.Set findCustomerOrderReferences(OrderSearchCriteria critera)
          Retrives all customer order references based on the search criteria.
 java.util.Set findCustomerOrderReferences(OrderSearchCriteria critera, java.util.Map tenderTypeAuthPeriodMap, RDate systemDate)
          Retrives all customer order references based on the search criteria.
 java.util.Set findCustomerOrderReferencesForSalesAuditExport()
          Retrives all customer order references that are ready for Sales Audit Export
 java.util.Set findCustomerOrders(OrderSearchCriteria critera)
          Retrives all customer orders based on the search criteria.
 java.util.Set findCustomerOrders(OrderSearchCriteria critera, java.util.Map tenderTypeAuthPeriodMap, RDate systemDate)
          Retrives all customer orders based on the search criteria.
 java.util.Set findCustomerOrdersWithBackorderedLinesForSellingSkuRefs(java.util.Set sellingSkuRefs)
          Retrieves all Order that have an OrderLine with any of the SellingItem that are backordered.
 java.util.Set findECDDRecalculationItems(ECDDRecalculationItemSearchCriteria criteria)
          Retrieves all the ECDDRecalculationItems from the database based on the search criteria.
 java.util.Set findRecalculateBOLineECDDRecords(RecalculateBOLineECDDRecordSearchCriteria criteria)
          Retrieves RecalculateBOLineECDDRecords ready to be processed in RecalculateBOLineECDDBatch.
 java.util.Set findReleaseBackorderLineRecords()
          Retrieves ReleaseBackorderLineRecords ready to be processed in ReleaseBackorderedLinesBatch.
 java.util.Set getAllOrderPendReasons()
          Retrieves all persisted order pend reasons
 int getCustomerOrderSalesAuditTransactionCount(RDate transactionDate)
          Calculate the number of customer orders that are ready for Resa export on a specified date.
 java.lang.String getNextSettlementFileNumber()
          Generetes next unique settlementFileNumber
 CustomerOrderDto persist(CustomerOrderDto customerOrderDto, DistributedReference userRef)
          Persists a CustomerOrderDto.
 OrderPendReasonDto persist(OrderPendReasonDto dto)
          Persists a specific Order Pend Reason
 OriginalOrderSummaryDto persist(OriginalOrderSummaryDto originalOrderSummaryDto)
          Persists a OriginalOrderSummaryDto.
 SupplierReturnDispositionDto persist(SupplierReturnDispositionDto supplierReturnDispositionDto)
          Persists a SupplierReturnDisposition.
 java.util.Set persistECDDRecalcItems(java.util.Set ecddReclaclItemDtos)
           
 CustomerOrderDto persistOrderForSalesAuditExport(CustomerOrderDto customerOrderDto, DistributedReference userRef)
          Persists a CustomerOrderDto for Sales Audit.
 CustomerOrderDto read(DistributedReference ref)
          Retrives a specific customer order based on the reference
 java.util.Set read(java.util.Set orderRefs)
          Retrives a set of customer orders based on the reference set
 AccommodationReasonDto readAccommodationReason(DistributedReference ref)
          Retrieves a specific accommodation reason based on the reference.
 CustomerOrderPaymentDto readCustomerOrderPayment(DistributedReference reference)
          Retrives a specific CustomerOrderPaymentDto based on the reference
 CustomerOrderTransactionGroupDto readCustomerOrderTransactionGroup(DistributedReference reference)
          Retrives a specific CustomerOrderTransactionGroup based on the reference
 SupplierReturnDispositionDto readDisposition(DistributedReference reference)
          Retrives a specific supplier return disposition based on the reference
 OrderPendReasonDto readOrderPendReason(DistributedReference ref)
          Retrieves a specific orderPendReason based on the reference.
 OriginalOrderSummaryDto readOriginalOrderSummary(DistributedReference customerOrderRef)
           
 ReturnLineDto readReturnLine(DistributedReference reference)
          Retrives a specific return line based on the reference
 ShipmentRequestDto readShipmentRequest(DistributedReference ref)
          Retrives a specific shipment request based on the reference
 

Method Detail

createReferenceCache

public ReferenceCache createReferenceCache(java.lang.Class businessInterface)
                                    throws SystemException
Creates a reference for a new given businessInterface. Responsible for retrieving the next unique CustomerOrderAddress id.

Returns:
reference to a new businessInterface
Throws:
SystemException

getNextSettlementFileNumber

public java.lang.String getNextSettlementFileNumber()
                                             throws SystemException
Generetes next unique settlementFileNumber

Returns:
next unique settlementFilenumber
Throws:
SystemException

getAllOrderPendReasons

public java.util.Set getAllOrderPendReasons()
                                     throws SystemException
Retrieves all persisted order pend reasons

Returns:
set of all persisted OrderPendReasonDto
Throws:
SystemException

readOrderPendReason

public OrderPendReasonDto readOrderPendReason(DistributedReference ref)
                                       throws SystemException
Retrieves a specific orderPendReason based on the reference.

Parameters:
ref - reference of the specific orderPendReason to be retrived.
Returns:
OrderPendReasonDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid orderPendReason
SystemException

readAccommodationReason

public AccommodationReasonDto readAccommodationReason(DistributedReference ref)
                                               throws SystemException
Retrieves a specific accommodation reason based on the reference.

Parameters:
ref - reference of the specific accommodationReason to be retrived.
Returns:
AccommodationReasonDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid accommodationReason
SystemException

findCustomerOrders

public java.util.Set findCustomerOrders(OrderSearchCriteria critera)
                                 throws SystemException
Retrives all customer orders based on the search criteria.

Parameters:
critera - filters the customerOrders that are returned
Returns:
Set of customerOrderDtos
Throws:
SystemException

findCustomerOrders

public java.util.Set findCustomerOrders(OrderSearchCriteria critera,
                                        java.util.Map tenderTypeAuthPeriodMap,
                                        RDate systemDate)
                                 throws SystemException
Retrives all customer orders based on the search criteria.

Parameters:
critera - filters the customerOrders that are returned
tenderTypeAuthPeriodMap - filters customerOrders with payment tender type's authorization period
systemDate - to be used to filter customerOrders with payment tender type's authorization period
Returns:
Set of customerOrderDtos
Throws:
SystemException

findCustomerOrderReferences

public java.util.Set findCustomerOrderReferences(OrderSearchCriteria critera)
                                          throws SystemException
Retrives all customer order references based on the search criteria.

Parameters:
critera - filters the customerOrders that are returned
Returns:
Set of DistributedReferences for the orders
Throws:
SystemException

findCustomerOrderReferences

public java.util.Set findCustomerOrderReferences(OrderSearchCriteria critera,
                                                 java.util.Map tenderTypeAuthPeriodMap,
                                                 RDate systemDate)
                                          throws SystemException
Retrives all customer order references based on the search criteria.

Parameters:
critera - filters the customerOrders that are returned
tenderTypeAuthPeriodMap - filters customerOrders with payment tender type's authorization period
systemDate - to be used to filter customerOrders with payment tender type's authorization period
Returns:
Set of DistributedReferences for the orders
Throws:
SystemException

findCustomerOrderReferencesForSalesAuditExport

public java.util.Set findCustomerOrderReferencesForSalesAuditExport()
                                                             throws SystemException
Retrives all customer order references that are ready for Sales Audit Export

Returns:
Set of CustomerOrderDtos
Throws:
SystemException

getCustomerOrderSalesAuditTransactionCount

public int getCustomerOrderSalesAuditTransactionCount(RDate transactionDate)
                                               throws SystemException
Calculate the number of customer orders that are ready for Resa export on a specified date.

Parameters:
transactionDate - the date used to find Resa ready customer orders
Returns:
int Count of customer orders that are ready for Resa export
Throws:
SystemException

read

public CustomerOrderDto read(DistributedReference ref)
                      throws SystemException
Retrives a specific customer order based on the reference

Parameters:
ref - reference of customerOrder to be retrieved
Returns:
CustomerOrderDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid customerOrder
SystemException

read

public java.util.Set read(java.util.Set orderRefs)
                   throws SystemException
Retrives a set of customer orders based on the reference set

Parameters:
orderRefs - reference set of customerOrders to be retrieved
Returns:
Set set of CustomerOrderDtos specified by the reference set
Throws:
InvalidReferenceException - thrown if any reference of the set is not a valid customerOrder
SystemException

readReturnLine

public ReturnLineDto readReturnLine(DistributedReference reference)
                             throws SystemException
Retrives a specific return line based on the reference

Returns:
ReturnLineDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid returnLine
SystemException

readShipmentRequest

public ShipmentRequestDto readShipmentRequest(DistributedReference ref)
                                       throws SystemException
Retrives a specific shipment request based on the reference

Parameters:
ref - reference of shipmentRequest to be retrieved
Returns:
ShipmentRequestDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid shipmentRequest
SystemException

readCustomerOrderTransactionGroup

public CustomerOrderTransactionGroupDto readCustomerOrderTransactionGroup(DistributedReference reference)
                                                                   throws SystemException
Retrives a specific CustomerOrderTransactionGroup based on the reference

Returns:
CustomerOrderTransactionGroupDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid CustomerOrderTransactionGroup
SystemException

readCustomerOrderPayment

public CustomerOrderPaymentDto readCustomerOrderPayment(DistributedReference reference)
                                                 throws SystemException
Retrives a specific CustomerOrderPaymentDto based on the reference

Returns:
CustomerOrderPaymentDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid CustomerOrderPaymentDto
SystemException

persist

public CustomerOrderDto persist(CustomerOrderDto customerOrderDto,
                                DistributedReference userRef)
                         throws SystemException
Persists a CustomerOrderDto. Determines whether the order needs to created or updated. Also responsible for persisting everything the customer order contains (i.e. customerOrderLine, customerOrderTransactionGroups, customerOrderPromotions, ShipTo, ...)

Parameters:
customerOrderDto - customerOrder to be persisted
userRef - reference to the current user
Returns:
customerOrderDto that was persisted
Throws:
SystemException

persistOrderForSalesAuditExport

public CustomerOrderDto persistOrderForSalesAuditExport(CustomerOrderDto customerOrderDto,
                                                        DistributedReference userRef)
                                                 throws SystemException
Persists a CustomerOrderDto for Sales Audit. Also responsible for persisting everything the customer order contains that needs to be updated for sales audit

Parameters:
customerOrderDto - customerOrder to be persisted
userRef - reference to the current user
Returns:
customerOrderDto that was persisted
Throws:
SystemException

persist

public OriginalOrderSummaryDto persist(OriginalOrderSummaryDto originalOrderSummaryDto)
                                throws SystemException
Persists a OriginalOrderSummaryDto. Determines whether the order needs to created or updated. Also responsible for persisting everything the customer order contains (i.e. customerOrderLine, customerOrderTransactionGroups, customerOrderPromotions, ShipTo, ...)

Parameters:
originalOrderSummaryDto - customerOrder to be persisted
Returns:
originalOrderSummaryDto that was persisted
Throws:
SystemException

persist

public SupplierReturnDispositionDto persist(SupplierReturnDispositionDto supplierReturnDispositionDto)
                                     throws SystemException
Persists a SupplierReturnDisposition. Determines whether the order needs to created or updated.

Returns:
SupplierReturnDispositionDto that was persisted
Throws:
SystemException

readDisposition

public SupplierReturnDispositionDto readDisposition(DistributedReference reference)
                                             throws SystemException
Retrives a specific supplier return disposition based on the reference

Returns:
ShipmentRequestDto specified by the reference
Throws:
InvalidReferenceException - thrown if reference is not a valid SupplierReturnDisposition
SystemException

persist

public OrderPendReasonDto persist(OrderPendReasonDto dto)
                           throws SystemException
Persists a specific Order Pend Reason

Parameters:
dto - the dto to be persisted
Returns:
OrderPendReasonDto the persisted dto
Throws:
SystemException

readOriginalOrderSummary

public OriginalOrderSummaryDto readOriginalOrderSummary(DistributedReference customerOrderRef)
                                                 throws SystemException
Throws:
SystemException

findAllSupplierReturnDispositions

public java.util.Set findAllSupplierReturnDispositions()
                                                throws SystemException
Retrieves all supplier return dispositions within the system.

Returns:
Set SupplierReturnDispositionDto objects found
Throws:
SystemException

findECDDRecalculationItems

public java.util.Set findECDDRecalculationItems(ECDDRecalculationItemSearchCriteria criteria)
                                         throws SystemException
Retrieves all the ECDDRecalculationItems from the database based on the search criteria.

Returns:
Set ECDDRecalculationItem
Throws:
SystemException

findAccommodationReasons

public java.util.Set findAccommodationReasons(AccommodationReasonSearchCriteria criteria)
                                       throws SystemException
Retrieves accomodation reason based on the search criteria.

Returns:
Set AccommodationReasonDto objects found
Throws:
SystemException

findReleaseBackorderLineRecords

public java.util.Set findReleaseBackorderLineRecords()
                                              throws SystemException
Retrieves ReleaseBackorderLineRecords ready to be processed in ReleaseBackorderedLinesBatch.

Returns:
Set ReleaseBackorderLineRecords objects found
Throws:
SystemException

findCustomerOrdersWithBackorderedLinesForSellingSkuRefs

public java.util.Set findCustomerOrdersWithBackorderedLinesForSellingSkuRefs(java.util.Set sellingSkuRefs)
                                                                      throws SystemException
Retrieves all Order that have an OrderLine with any of the SellingItem that are backordered.

Returns:
Set CustomerOrder objects found
Throws:
SystemException

deleteECDDRecalculationItem

public void deleteECDDRecalculationItem(DistributedReference ref)
                                 throws SystemException
Deletes all the ECDDRecalculationItems from the database.

Throws:
SystemException

findRecalculateBOLineECDDRecords

public java.util.Set findRecalculateBOLineECDDRecords(RecalculateBOLineECDDRecordSearchCriteria criteria)
                                               throws SystemException
Retrieves RecalculateBOLineECDDRecords ready to be processed in RecalculateBOLineECDDBatch.

Returns:
Set RecalculateBOLineECDDRecords objects found
Throws:
SystemException

persistECDDRecalcItems

public java.util.Set persistECDDRecalcItems(java.util.Set ecddReclaclItemDtos)
                                     throws SystemException
Throws:
SystemException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28