com.retek.component.customerorder.impl
Class CustomerOrderTransactionGroupImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customerorder.impl.CustomerOrderTransactionGroupImpl
All Implemented Interfaces:
BusinessObject, CustomerOrderTransactionGroup, DistributedObject

public class CustomerOrderTransactionGroupImpl
extends DistributedObjectImpl
implements CustomerOrderTransactionGroup


Nested Class Summary
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Constructor Summary
CustomerOrderTransactionGroupImpl(DistributedContext context, DistributedReference reference, boolean createHollow)
           
CustomerOrderTransactionGroupImpl(DistributedContext context, DistributedReference reference, CustomerOrder order)
           
 
Method Summary
 void addMerchandiseTenderLiabilityReversalAmount(Money amount)
           
 void addSalesAuditReturnExportAmount(Money amount)
           
 void addSalesAuditSaleExportAmount(Money amount)
           
 void addTransactionItem(CustomerOrderTransactionItem transactionItem)
           
 void adjustCreditPaymentsForExchangeSaleCancel(Money totalCancelValue, CustomerOrderLineImpl orderLine, CustomerOrderRefundPaymentContainer paymentContainer)
           
 void adjustCreditPaymentsForReturn()
           
 boolean allReturnLinesReturned()
           
 void clearMerchandiseTenderLiabilityReversalAmount()
           
 void close()
           
 CustomerOrderPaymentTransactionType getAccommodationPaymentTransactionType()
           
 Money getBalance()
           
 RDate getCreateDate()
           
 CustomerOrderPayment getCreditPaymentForCancelledExchangeSale()
           
 CustomerOrderTransactionGroupDto getDto()
           
 RDate getMerchandiseTenderLiabilityResaTransactionDate()
           
 Money getMerchandiseTenderLiabilityReversalAmount()
           
 CustomerOrder getOrder()
           
 Money getReturnLineValue()
           
 Money getSalesAuditReturnExportAmount()
           
 Money getSalesAuditSaleExportAmount()
           
 Money getTotalExchangeReturnAmount()
           
 Money getTotalExchangeSaleAmount()
           
 java.util.Set getTransactionItems()
           
 CustomerOrderTransactionGroupType getType()
           
 boolean hasCancelledExchangeSaleLine()
           
 boolean isAccommodation()
           
 boolean isClosed()
           
 boolean isExchange()
           
 boolean isNormal()
           
 boolean isOpen()
           
 boolean isReplacement()
           
 boolean isReturn()
           
static boolean isTransactionGroupEqual(CustomerOrderTransactionItem itemOne, CustomerOrderTransactionItem itemTwo)
           
 boolean isZeroSale()
           
 void open()
           
protected  Dto readLatest()
           
 void setMerchandiseTenderLiabilityResaTransactionDate(RDate date)
           
 void settleCreditPaymentsForReturn(Money refundAmount, ReturnLine returnLine)
           
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl
attributesToString, createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, toString, wrap, wrap, wrap, wrap
 
Methods inherited from class com.retek.commons.component.impl.BusinessObjectImpl
checkRelation, checkRelation, getBusinessInterface, getContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.commons.component.DistributedObject
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Constructor Detail

CustomerOrderTransactionGroupImpl

public CustomerOrderTransactionGroupImpl(DistributedContext context,
                                         DistributedReference reference,
                                         boolean createHollow)
                                  throws SystemException

CustomerOrderTransactionGroupImpl

public CustomerOrderTransactionGroupImpl(DistributedContext context,
                                         DistributedReference reference,
                                         CustomerOrder order)
                                  throws SystemException
Method Detail

getDto

public CustomerOrderTransactionGroupDto getDto()
                                        throws SystemException
Throws:
SystemException

getTransactionItems

public java.util.Set getTransactionItems()
                                  throws SystemException
Specified by:
getTransactionItems in interface CustomerOrderTransactionGroup
Throws:
SystemException

getCreateDate

public RDate getCreateDate()
                    throws SystemException
Specified by:
getCreateDate in interface CustomerOrderTransactionGroup
Throws:
SystemException

addTransactionItem

public void addTransactionItem(CustomerOrderTransactionItem transactionItem)
                        throws SystemException
Specified by:
addTransactionItem in interface CustomerOrderTransactionGroup
Throws:
SystemException

getOrder

public CustomerOrder getOrder()
                       throws SystemException
Specified by:
getOrder in interface CustomerOrderTransactionGroup
Throws:
SystemException

getType

public CustomerOrderTransactionGroupType getType()
                                          throws SystemException,
                                                 BusinessException
Specified by:
getType in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

getBalance

public Money getBalance()
                 throws SystemException,
                        BusinessException
Specified by:
getBalance in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

getAccommodationPaymentTransactionType

public CustomerOrderPaymentTransactionType getAccommodationPaymentTransactionType()
                                                                           throws SystemException
Throws:
SystemException

getReturnLineValue

public Money getReturnLineValue()
                         throws SystemException,
                                BusinessException
Throws:
SystemException
BusinessException

getTotalExchangeReturnAmount

public Money getTotalExchangeReturnAmount()
                                   throws SystemException
Specified by:
getTotalExchangeReturnAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

getTotalExchangeSaleAmount

public Money getTotalExchangeSaleAmount()
                                 throws SystemException,
                                        BusinessException
Specified by:
getTotalExchangeSaleAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

getMerchandiseTenderLiabilityReversalAmount

public Money getMerchandiseTenderLiabilityReversalAmount()
                                                  throws SystemException
Specified by:
getMerchandiseTenderLiabilityReversalAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

addMerchandiseTenderLiabilityReversalAmount

public void addMerchandiseTenderLiabilityReversalAmount(Money amount)
                                                 throws SystemException
Specified by:
addMerchandiseTenderLiabilityReversalAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

setMerchandiseTenderLiabilityResaTransactionDate

public void setMerchandiseTenderLiabilityResaTransactionDate(RDate date)
                                                      throws SystemException
Throws:
SystemException

clearMerchandiseTenderLiabilityReversalAmount

public void clearMerchandiseTenderLiabilityReversalAmount()
                                                   throws SystemException
Specified by:
clearMerchandiseTenderLiabilityReversalAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

getMerchandiseTenderLiabilityResaTransactionDate

public RDate getMerchandiseTenderLiabilityResaTransactionDate()
                                                       throws SystemException
Specified by:
getMerchandiseTenderLiabilityResaTransactionDate in interface CustomerOrderTransactionGroup
Throws:
SystemException

addSalesAuditReturnExportAmount

public void addSalesAuditReturnExportAmount(Money amount)
                                     throws SystemException
Specified by:
addSalesAuditReturnExportAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

addSalesAuditSaleExportAmount

public void addSalesAuditSaleExportAmount(Money amount)
                                   throws SystemException
Specified by:
addSalesAuditSaleExportAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

getSalesAuditReturnExportAmount

public Money getSalesAuditReturnExportAmount()
                                      throws SystemException
Specified by:
getSalesAuditReturnExportAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

getSalesAuditSaleExportAmount

public Money getSalesAuditSaleExportAmount()
                                    throws SystemException
Specified by:
getSalesAuditSaleExportAmount in interface CustomerOrderTransactionGroup
Throws:
SystemException

isAccommodation

public boolean isAccommodation()
                        throws SystemException,
                               BusinessException
Specified by:
isAccommodation in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

isExchange

public boolean isExchange()
                   throws SystemException,
                          BusinessException
Specified by:
isExchange in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

isNormal

public boolean isNormal()
                 throws SystemException,
                        BusinessException
Specified by:
isNormal in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

isReturn

public boolean isReturn()
                 throws SystemException,
                        BusinessException
Specified by:
isReturn in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

isReplacement

public boolean isReplacement()
                      throws SystemException,
                             BusinessException
Specified by:
isReplacement in interface CustomerOrderTransactionGroup
Throws:
SystemException
BusinessException

isZeroSale

public boolean isZeroSale()
                   throws SystemException,
                          BusinessException
Throws:
SystemException
BusinessException

isTransactionGroupEqual

public static final boolean isTransactionGroupEqual(CustomerOrderTransactionItem itemOne,
                                                    CustomerOrderTransactionItem itemTwo)
                                             throws SystemException
Throws:
SystemException

isOpen

public boolean isOpen()
               throws SystemException
Specified by:
isOpen in interface CustomerOrderTransactionGroup
Throws:
SystemException

isClosed

public boolean isClosed()
                 throws SystemException
Specified by:
isClosed in interface CustomerOrderTransactionGroup
Throws:
SystemException

close

public void close()
           throws SystemException
Specified by:
close in interface CustomerOrderTransactionGroup
Throws:
SystemException

hasCancelledExchangeSaleLine

public boolean hasCancelledExchangeSaleLine()
                                     throws SystemException
Specified by:
hasCancelledExchangeSaleLine in interface CustomerOrderTransactionGroup
Throws:
SystemException

getCreditPaymentForCancelledExchangeSale

public CustomerOrderPayment getCreditPaymentForCancelledExchangeSale()
                                                              throws SystemException
Specified by:
getCreditPaymentForCancelledExchangeSale in interface CustomerOrderTransactionGroup
Throws:
SystemException

allReturnLinesReturned

public boolean allReturnLinesReturned()
                               throws SystemException
Specified by:
allReturnLinesReturned in interface CustomerOrderTransactionGroup
Throws:
SystemException

readLatest

protected Dto readLatest()
                  throws SystemException
Overrides:
readLatest in class DistributedObjectImpl
Throws:
SystemException

open

public void open()
          throws SystemException
Specified by:
open in interface CustomerOrderTransactionGroup
Throws:
SystemException

settleCreditPaymentsForReturn

public void settleCreditPaymentsForReturn(Money refundAmount,
                                          ReturnLine returnLine)
                                   throws SystemException,
                                          BusinessException
Throws:
SystemException
BusinessException

adjustCreditPaymentsForExchangeSaleCancel

public void adjustCreditPaymentsForExchangeSaleCancel(Money totalCancelValue,
                                                      CustomerOrderLineImpl orderLine,
                                                      CustomerOrderRefundPaymentContainer paymentContainer)
                                               throws SystemException,
                                                      BusinessException
Throws:
SystemException
BusinessException

adjustCreditPaymentsForReturn

public void adjustCreditPaymentsForReturn()
                                   throws SystemException,
                                          BusinessException
Throws:
SystemException
BusinessException


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