com.retek.component.salesaudit.impl.remote.command
Class BaseTransactionConverter

java.lang.Object
  extended bycom.retek.component.salesaudit.impl.remote.command.BaseTransactionConverter
Direct Known Subclasses:
BaseLiabilityTransactionConverter, ReturnTransactionConverter, SaleTransactionConverter

public abstract class BaseTransactionConverter
extends java.lang.Object


Nested Class Summary
protected static interface BaseTransactionConverter.TransactionConverterSubprocess
          Interface defining strategy operation for a transaction converter sub-process.
 
Field Summary
protected  DistributedContext context
           
protected  boolean shItemElementAdded
           
protected  java.lang.Object sourceExportObject
           
protected  SaeStoreTransactionContainer storeTxnContainer
           
protected  Money totalPaymentAmt
           
protected  SaeTransaction transaction
           
 
Constructor Summary
protected BaseTransactionConverter(SaeStoreTransactionContainer storeTxnContainer, java.lang.Object sourceExportObject)
           
 
Method Summary
protected  Money calculateValueAddedServicePrice(CustomerOrderLine orderLine, CustomerOrderServiceLine serviceLine, Quantity previousShippedQuantity)
           
protected  SaeCustomer createCustomerElement(Customer customer, CustomerAddress address, java.lang.String customerType)
           
protected  SaeItem createItemElement(CustomerOrder order, CustomerOrderLine orderLine, Quantity quantity, Money sellingUnitPrice, Money suggestedRetailPrice)
           
protected  SaeItem createItemElement(CustomerOrder order, CustomerOrderLine orderLine, Quantity quantity, Money sellingUnitPrice, Money suggestedRetailPrice, ReturnReason returnReason)
           
protected  SaePayment createPaymentElementForLiabilityTransaction(java.lang.String transactionType, SaeExportTender exportTender)
           
protected  SaePayment createPaymentElementForLiabilityTransaction(java.lang.String transactionType, SaeExportTender exportTender, Money amount)
           
protected  java.util.List createPaymentElementsForReturnTransaction(java.lang.String transactionType, CustomerOrder order, Money totalPrice, java.util.List saeExportTenders)
           
protected  java.util.List createPaymentElementsForSaleTransaction(java.lang.String transactionType, CustomerOrder order, Money totalPrice, java.util.List saeExportTenders)
           
protected  SaeService createShippingServiceElement(java.lang.String serviceType, Quantity serviceQty, Money serviceUnitAmt, Money shippingTax)
           
protected  SaeItem createShItemElement(CustomerOrder order)
           
protected  SaeItem createVasItemElement(CustomerOrder order, CustomerOrderLine orderLine, CustomerOrderServiceLine serviceLine)
           
protected abstract  void doConvert()
           
protected  DistributedContext getContext()
           
protected  java.lang.String getEmployeeNumber(CustomerOrder order)
           
protected abstract  RetekLogger getLogger()
           
protected abstract  CustomerOrder getOrder()
           
protected  SalesAuditManager getSalesAuditManager()
           
protected  java.lang.Object getSourceExportObject()
           
protected  Store getStore()
           
 SaeTransaction getTransaction()
           
protected  Money getTransactionBalancingThreshold()
           
protected  RDate getTransactionDate()
           
protected  Sku getVasServiceExportSku(CustomerOrder order, CustomerOrderServiceLine serviceLine)
           
static java.lang.String getVasServiceType(CustomerOrderServiceLine serviceLine)
           
protected  boolean isTransactionBalancingEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected DistributedContext context

storeTxnContainer

protected SaeStoreTransactionContainer storeTxnContainer

sourceExportObject

protected java.lang.Object sourceExportObject

transaction

protected SaeTransaction transaction

totalPaymentAmt

protected Money totalPaymentAmt

shItemElementAdded

protected boolean shItemElementAdded
Constructor Detail

BaseTransactionConverter

protected BaseTransactionConverter(SaeStoreTransactionContainer storeTxnContainer,
                                   java.lang.Object sourceExportObject)
Method Detail

getTransaction

public final SaeTransaction getTransaction()
                                    throws SystemException,
                                           BusinessException
Throws:
SystemException
BusinessException

getSourceExportObject

protected final java.lang.Object getSourceExportObject()

doConvert

protected abstract void doConvert()
                           throws SystemException,
                                  BusinessException
Throws:
SystemException
BusinessException

getContext

protected final DistributedContext getContext()

getStore

protected final Store getStore()
                        throws SystemException
Throws:
SystemException

getTransactionDate

protected final RDate getTransactionDate()
                                  throws SystemException
Throws:
SystemException

getOrder

protected abstract CustomerOrder getOrder()
                                   throws SystemException
Throws:
SystemException

getLogger

protected abstract RetekLogger getLogger()
                                  throws SystemException
Throws:
SystemException

getEmployeeNumber

protected final java.lang.String getEmployeeNumber(CustomerOrder order)
                                            throws SystemException
Throws:
SystemException

createCustomerElement

protected final SaeCustomer createCustomerElement(Customer customer,
                                                  CustomerAddress address,
                                                  java.lang.String customerType)
                                           throws SystemException
Throws:
SystemException

createItemElement

protected final SaeItem createItemElement(CustomerOrder order,
                                          CustomerOrderLine orderLine,
                                          Quantity quantity,
                                          Money sellingUnitPrice,
                                          Money suggestedRetailPrice)
                                   throws SystemException,
                                          BusinessException
Throws:
SystemException
BusinessException

createItemElement

protected final SaeItem createItemElement(CustomerOrder order,
                                          CustomerOrderLine orderLine,
                                          Quantity quantity,
                                          Money sellingUnitPrice,
                                          Money suggestedRetailPrice,
                                          ReturnReason returnReason)
                                   throws SystemException,
                                          BusinessException
Throws:
SystemException
BusinessException

createShItemElement

protected final SaeItem createShItemElement(CustomerOrder order)
                                     throws SystemException,
                                            BusinessException
Throws:
SystemException
BusinessException

createVasItemElement

protected final SaeItem createVasItemElement(CustomerOrder order,
                                             CustomerOrderLine orderLine,
                                             CustomerOrderServiceLine serviceLine)
                                      throws SystemException,
                                             BusinessException
Throws:
SystemException
BusinessException

createPaymentElementsForSaleTransaction

protected final java.util.List createPaymentElementsForSaleTransaction(java.lang.String transactionType,
                                                                       CustomerOrder order,
                                                                       Money totalPrice,
                                                                       java.util.List saeExportTenders)
                                                                throws SystemException,
                                                                       BusinessException
Throws:
SystemException
BusinessException

createPaymentElementsForReturnTransaction

protected final java.util.List createPaymentElementsForReturnTransaction(java.lang.String transactionType,
                                                                         CustomerOrder order,
                                                                         Money totalPrice,
                                                                         java.util.List saeExportTenders)
                                                                  throws SystemException,
                                                                         BusinessException
Throws:
SystemException
BusinessException

createPaymentElementForLiabilityTransaction

protected final SaePayment createPaymentElementForLiabilityTransaction(java.lang.String transactionType,
                                                                       SaeExportTender exportTender)
                                                                throws SystemException,
                                                                       BusinessException
Throws:
SystemException
BusinessException

createPaymentElementForLiabilityTransaction

protected final SaePayment createPaymentElementForLiabilityTransaction(java.lang.String transactionType,
                                                                       SaeExportTender exportTender,
                                                                       Money amount)
                                                                throws SystemException,
                                                                       BusinessException
Throws:
SystemException
BusinessException

getSalesAuditManager

protected final SalesAuditManager getSalesAuditManager()
                                                throws SystemException
Throws:
SystemException

getVasServiceExportSku

protected final Sku getVasServiceExportSku(CustomerOrder order,
                                           CustomerOrderServiceLine serviceLine)
                                    throws SystemException,
                                           BusinessException
Throws:
SystemException
BusinessException

calculateValueAddedServicePrice

protected final Money calculateValueAddedServicePrice(CustomerOrderLine orderLine,
                                                      CustomerOrderServiceLine serviceLine,
                                                      Quantity previousShippedQuantity)
                                               throws SystemException
Throws:
SystemException

isTransactionBalancingEnabled

protected final boolean isTransactionBalancingEnabled()
                                               throws SystemException
Throws:
SystemException

getTransactionBalancingThreshold

protected final Money getTransactionBalancingThreshold()
                                                throws SystemException
Throws:
SystemException

createShippingServiceElement

protected SaeService createShippingServiceElement(java.lang.String serviceType,
                                                  Quantity serviceQty,
                                                  Money serviceUnitAmt,
                                                  Money shippingTax)
                                           throws SystemException,
                                                  BusinessException
Throws:
SystemException
BusinessException

getVasServiceType

public static java.lang.String getVasServiceType(CustomerOrderServiceLine serviceLine)
                                          throws SystemException
Throws:
SystemException


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