com.retek.component.salesaudit.impl
Class SaeTransactionImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.SecondClassObjectImpl
          extended bycom.retek.commons.component.xml.impl.ElementObjectImpl
              extended bycom.retek.component.salesaudit.impl.SaeElementImpl
                  extended bycom.retek.component.salesaudit.impl.SaeTransactionImpl
All Implemented Interfaces:
BusinessObject, ElementObject, SaeElement, SaeTransaction, SecondClassObject

public class SaeTransactionImpl
extends SaeElementImpl
implements SaeTransaction


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.salesaudit.SaeTransaction
DUMMY_EMPLOYEE_NUMBER, NULL_EMPLOYEE_NUMBER, ORDER_HEADER_ACCOMMODATION_REASON_CODES, REASON_CODE, REASON_CODE_ACCT, REASON_CODE_CANCEL, REASON_CODE_CANSAL, REASON_CODE_CASHOUT, REASON_CODE_CSTGEN, REASON_CODE_CSTRFD, REASON_CODE_CSTTAX, REASON_CODE_OVPY, REASON_CODE_PTGW, REASON_CODE_REPLACEMENT_IN, REASON_CODE_REPLACEMENT_OUT, SUB_TRANSACTION_TYPE, SUB_TRANSACTION_TYPE_CUSTOMER_ACCOMMODATION, SUB_TRANSACTION_TYPE_DISPOSED_EXCHANGE_IN, SUB_TRANSACTION_TYPE_DISPOSED_RETURN, SUB_TRANSACTION_TYPE_EXCHANGE_IN, SUB_TRANSACTION_TYPE_EXCHANGE_OUT, SUB_TRANSACTION_TYPE_EXCHANGE_PAID_OUT, TRANSACTION_TYPE, TRANSACTION_TYPE_DCLOSE, TRANSACTION_TYPE_PAIDIN, TRANSACTION_TYPE_PAIDOUT, TRANSACTION_TYPE_RETURN, TRANSACTION_TYPE_SALE
 
Fields inherited from interface com.retek.component.salesaudit.SaeElement
SALES_AUDIT_NO, SALES_AUDIT_YES
 
Constructor Summary
SaeTransactionImpl(DistributedContext context, SaeTransactionDto dto)
           
 
Method Summary
 void accept(SaeElementVisitor txnVisitor)
          Accept a transaction visitor.
 void addAccommodation(SaeAccommodation accommodation)
           
 void addCustomer(SaeCustomer customer)
           
 void addElement(ElementObject element)
           
 void addItem(SaeItem item)
           
 void addPayment(SaePayment payment)
           
 void addService(SaeService service)
           
 java.util.List getAccommodations()
          Return the accommodation elements for the transaction.
 java.lang.String getBannerCode()
           
 SaeCustomer getBillToCustomer()
          Return bill-to customer element for the transaction.
 RDate getCustomerOrderDate()
           
 java.lang.String getCustomerOrderNumber()
           
 java.lang.String getCustomerOrderSource()
           
 java.lang.String getCustomerOrderType()
           
 java.util.List getCustomers()
          Return the customer elements for the transaction.
 java.lang.String getEmployeeNumber()
           
 java.lang.Integer getFileCount()
           
 java.util.List getItems()
          Return the item elements for the transaction.
 java.lang.String getMediaCode()
           
 java.lang.String getOrderAcceptanceUser()
           
 java.lang.String getOrderStoreNumber()
           
 java.util.List getPayments()
          Return the payment elements for the transaction.
 java.lang.String getReasonCode()
           
 java.lang.String getReturnRequiredFlag()
           
 SaeTransactionDto getSaeTransactionDto()
           
 java.util.List getServices()
          Return the service elements for the transaction.
 SaeCustomer getShipToCustomer()
          Return bill-to customer element for the transaction.
 java.lang.Object getSourceExportObject()
          Return the source export business object which triggered the sales audit transaction.
 java.lang.String getStoreNumber()
           
 java.lang.String getSubTransactionType()
           
 RDate getTransactionDate()
           
 java.lang.String getTransactionId()
           
 java.lang.Integer getTransactionNumber()
           
 java.lang.String getTransactionType()
           
 boolean isOrderHeaderCustomerAccommodation()
           
 boolean isPaidOutAccommodationTransaction()
           
 void setAttributes(java.util.Map attributes)
           
 void setBannerCode(java.lang.String bannerCode)
           
 void setCustomerOrderDate(RDate customerOrderDate)
           
 void setCustomerOrderNumber(java.lang.String customerOrderNumber)
           
 void setCustomerOrderSource(java.lang.String customerOrderSource)
           
 void setCustomerOrderType(java.lang.String customerOrderType)
           
 void setEmployeeNumber(java.lang.String employeeNumber)
           
 void setFileCount(java.lang.Integer fileCount)
           
 void setMediaCode(java.lang.String mediaCode)
           
 void setOrderAcceptanceUser(java.lang.String orderAcceptanceUser)
           
 void setOrderStoreNumber(java.lang.String orderStoreNumber)
           
 void setReasonCode(java.lang.String reasonCode)
           
 void setReturnRequiredFlag(java.lang.String returnRequiredFlag)
           
 void setSourceExportObject(java.lang.Object sourceExportObject)
           
 void setStoreNumber(java.lang.String storeNumber)
           
 void setSubTransactionType(java.lang.String subTransactionType)
           
 void setTransactionDate(RDate transactionDate)
           
 void setTransactionId(java.lang.String transactionId)
           
 void setTransactionNumber(java.lang.Integer transactionNumber)
           
 void setTransactionType(java.lang.String transactionType)
           
 java.lang.String toXml()
          Convert the element to an xml string.
 
Methods inherited from class com.retek.component.salesaudit.impl.SaeElementImpl
getDto
 
Methods inherited from class com.retek.commons.component.xml.impl.ElementObjectImpl
getElementId, getElementObjectDto, getParentElementId, setElementId, setParentElementId, setSubElements, toString
 
Methods inherited from class com.retek.commons.component.impl.SecondClassObjectImpl
equals, getGenericDto, hashCode, setGenericDto, 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.xml.ElementObject
getElementId, getParentElementId
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Constructor Detail

SaeTransactionImpl

public SaeTransactionImpl(DistributedContext context,
                          SaeTransactionDto dto)
Method Detail

getSaeTransactionDto

public SaeTransactionDto getSaeTransactionDto()

getTransactionId

public java.lang.String getTransactionId()
Specified by:
getTransactionId in interface SaeTransaction

setTransactionId

public void setTransactionId(java.lang.String transactionId)
Specified by:
setTransactionId in interface SaeTransaction

getTransactionType

public java.lang.String getTransactionType()
Specified by:
getTransactionType in interface SaeTransaction

setTransactionType

public void setTransactionType(java.lang.String transactionType)
Specified by:
setTransactionType in interface SaeTransaction

getTransactionDate

public RDate getTransactionDate()
Specified by:
getTransactionDate in interface SaeTransaction

setTransactionDate

public void setTransactionDate(RDate transactionDate)
Specified by:
setTransactionDate in interface SaeTransaction

getTransactionNumber

public java.lang.Integer getTransactionNumber()
Specified by:
getTransactionNumber in interface SaeTransaction

setTransactionNumber

public void setTransactionNumber(java.lang.Integer transactionNumber)
Specified by:
setTransactionNumber in interface SaeTransaction

getSubTransactionType

public java.lang.String getSubTransactionType()
Specified by:
getSubTransactionType in interface SaeTransaction

setSubTransactionType

public void setSubTransactionType(java.lang.String subTransactionType)
Specified by:
setSubTransactionType in interface SaeTransaction

getStoreNumber

public java.lang.String getStoreNumber()
Specified by:
getStoreNumber in interface SaeTransaction

setStoreNumber

public void setStoreNumber(java.lang.String storeNumber)
Specified by:
setStoreNumber in interface SaeTransaction

getCustomerOrderNumber

public java.lang.String getCustomerOrderNumber()
Specified by:
getCustomerOrderNumber in interface SaeTransaction

setCustomerOrderNumber

public void setCustomerOrderNumber(java.lang.String customerOrderNumber)
Specified by:
setCustomerOrderNumber in interface SaeTransaction

getCustomerOrderType

public java.lang.String getCustomerOrderType()
Specified by:
getCustomerOrderType in interface SaeTransaction

setCustomerOrderType

public void setCustomerOrderType(java.lang.String customerOrderType)
Specified by:
setCustomerOrderType in interface SaeTransaction

getCustomerOrderDate

public RDate getCustomerOrderDate()
Specified by:
getCustomerOrderDate in interface SaeTransaction

getCustomerOrderSource

public java.lang.String getCustomerOrderSource()
Specified by:
getCustomerOrderSource in interface SaeTransaction

setCustomerOrderSource

public void setCustomerOrderSource(java.lang.String customerOrderSource)
Specified by:
setCustomerOrderSource in interface SaeTransaction

setCustomerOrderDate

public void setCustomerOrderDate(RDate customerOrderDate)
Specified by:
setCustomerOrderDate in interface SaeTransaction

getOrderAcceptanceUser

public java.lang.String getOrderAcceptanceUser()
Specified by:
getOrderAcceptanceUser in interface SaeTransaction

setOrderAcceptanceUser

public void setOrderAcceptanceUser(java.lang.String orderAcceptanceUser)
Specified by:
setOrderAcceptanceUser in interface SaeTransaction

getOrderStoreNumber

public java.lang.String getOrderStoreNumber()
Specified by:
getOrderStoreNumber in interface SaeTransaction

setOrderStoreNumber

public void setOrderStoreNumber(java.lang.String orderStoreNumber)
Specified by:
setOrderStoreNumber in interface SaeTransaction

getEmployeeNumber

public java.lang.String getEmployeeNumber()
Specified by:
getEmployeeNumber in interface SaeTransaction

setEmployeeNumber

public void setEmployeeNumber(java.lang.String employeeNumber)
Specified by:
setEmployeeNumber in interface SaeTransaction

getBannerCode

public java.lang.String getBannerCode()
Specified by:
getBannerCode in interface SaeTransaction

setBannerCode

public void setBannerCode(java.lang.String bannerCode)
Specified by:
setBannerCode in interface SaeTransaction

getMediaCode

public java.lang.String getMediaCode()
Specified by:
getMediaCode in interface SaeTransaction

setMediaCode

public void setMediaCode(java.lang.String mediaCode)
Specified by:
setMediaCode in interface SaeTransaction

getReasonCode

public java.lang.String getReasonCode()
Specified by:
getReasonCode in interface SaeTransaction

setReasonCode

public void setReasonCode(java.lang.String reasonCode)
Specified by:
setReasonCode in interface SaeTransaction

getReturnRequiredFlag

public java.lang.String getReturnRequiredFlag()
Specified by:
getReturnRequiredFlag in interface SaeTransaction

setReturnRequiredFlag

public void setReturnRequiredFlag(java.lang.String returnRequiredFlag)
Specified by:
setReturnRequiredFlag in interface SaeTransaction

getFileCount

public java.lang.Integer getFileCount()
Specified by:
getFileCount in interface SaeTransaction

setFileCount

public void setFileCount(java.lang.Integer fileCount)
Specified by:
setFileCount in interface SaeTransaction

getCustomers

public java.util.List getCustomers()
                            throws SystemException
Description copied from interface: SaeTransaction
Return the customer elements for the transaction.

Specified by:
getCustomers in interface SaeTransaction
Returns:
List customer elements
Throws:
SystemException

getBillToCustomer

public SaeCustomer getBillToCustomer()
                              throws SystemException
Description copied from interface: SaeTransaction
Return bill-to customer element for the transaction.

Specified by:
getBillToCustomer in interface SaeTransaction
Returns:
SaeCustomer bill-to customer element
Throws:
SystemException

getShipToCustomer

public SaeCustomer getShipToCustomer()
                              throws SystemException
Description copied from interface: SaeTransaction
Return bill-to customer element for the transaction.

Specified by:
getShipToCustomer in interface SaeTransaction
Returns:
SaeCustomer ship-to customer element
Throws:
SystemException

addCustomer

public void addCustomer(SaeCustomer customer)
Specified by:
addCustomer in interface SaeTransaction

getAccommodations

public java.util.List getAccommodations()
                                 throws SystemException
Description copied from interface: SaeTransaction
Return the accommodation elements for the transaction.

Specified by:
getAccommodations in interface SaeTransaction
Returns:
List accommodation elements
Throws:
SystemException

addAccommodation

public void addAccommodation(SaeAccommodation accommodation)
Specified by:
addAccommodation in interface SaeTransaction

getServices

public java.util.List getServices()
                           throws SystemException
Description copied from interface: SaeTransaction
Return the service elements for the transaction.

Specified by:
getServices in interface SaeTransaction
Returns:
List service elements
Throws:
SystemException

addService

public void addService(SaeService service)
Specified by:
addService in interface SaeTransaction

getItems

public java.util.List getItems()
                        throws SystemException
Description copied from interface: SaeTransaction
Return the item elements for the transaction.

Specified by:
getItems in interface SaeTransaction
Returns:
List item elements
Throws:
SystemException

addItem

public void addItem(SaeItem item)
Specified by:
addItem in interface SaeTransaction

getPayments

public java.util.List getPayments()
                           throws SystemException
Description copied from interface: SaeTransaction
Return the payment elements for the transaction.

Specified by:
getPayments in interface SaeTransaction
Returns:
List payment elements
Throws:
SystemException

addPayment

public void addPayment(SaePayment payment)
Specified by:
addPayment in interface SaeTransaction

addElement

public void addElement(ElementObject element)
Specified by:
addElement in class ElementObjectImpl

isPaidOutAccommodationTransaction

public boolean isPaidOutAccommodationTransaction()
Specified by:
isPaidOutAccommodationTransaction in interface SaeTransaction

isOrderHeaderCustomerAccommodation

public boolean isOrderHeaderCustomerAccommodation()
                                           throws SystemException
Specified by:
isOrderHeaderCustomerAccommodation in interface SaeTransaction
Throws:
SystemException

accept

public void accept(SaeElementVisitor txnVisitor)
            throws SystemException
Description copied from interface: SaeElement
Accept a transaction visitor.

Specified by:
accept in interface SaeElement
Specified by:
accept in class SaeElementImpl
Throws:
SystemException

toXml

public java.lang.String toXml()
                       throws SystemException,
                              XmlBuilderException
Description copied from interface: ElementObject
Convert the element to an xml string.

Specified by:
toXml in interface ElementObject
Returns:
String xml element string
Throws:
SystemException
XmlBuilderException

setAttributes

public void setAttributes(java.util.Map attributes)
Specified by:
setAttributes in class ElementObjectImpl

getSourceExportObject

public java.lang.Object getSourceExportObject()
Return the source export business object which triggered the sales audit transaction. Note: This value is transient and only available for use internally within the transaction conversion process.

Returns:
DistributedObject source export object

setSourceExportObject

public void setSourceExportObject(java.lang.Object sourceExportObject)


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