com.retek.component.salesaudit.impl
Class SaeItemImpl

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.SaeItemImpl
All Implemented Interfaces:
BusinessObject, ElementObject, SaeElement, SaeItem, SecondClassObject

public class SaeItemImpl
extends SaeElementImpl
implements SaeItem


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.salesaudit.SaeItem
GIFT_CERTIFICATE_TYPE_CARD, GIFT_CERTIFICATE_TYPE_CERT
 
Fields inherited from interface com.retek.component.salesaudit.SaeElement
SALES_AUDIT_NO, SALES_AUDIT_YES
 
Constructor Summary
SaeItemImpl(DistributedContext context, SaeItemDto dto)
           
 
Method Summary
 void accept(SaeElementVisitor txnVisitor)
          Accept a transaction visitor.
 void addAccommodation(SaeAccommodation accommodation)
           
 void addDiscount(SaeDiscount discount)
           
 void addElement(ElementObject element)
           
 void addService(SaeService service)
           
 java.util.List getAccommodations()
          Return the accommodation elements for the transaction.
 java.lang.String getCustomerOrderLineNumber()
           
 java.lang.String getDirectShipFlag()
           
 java.lang.String getDirectShipSupplierId()
           
 java.util.List getDiscounts()
          Return the discount elements for the transaction.
 RDate getGiftCertificateExpirationDate()
           
 java.lang.String getGiftCertificateNumber()
           
 java.lang.String getGiftCertificateToCountryCode()
           
 java.lang.String getGiftCertificateToName()
           
 java.lang.String getGiftCertificateToState()
           
 java.lang.String getGiftCertificateType()
           
 java.lang.String getItemMerchandiseFlag()
           
 java.lang.String getItemNumber()
           
 java.lang.String getItemNumberType()
           
 Quantity getItemQuantity()
           
 java.lang.String getItemType()
           
 java.lang.String getMediaCode()
           
 java.lang.String getOrderAcceptanceUser()
           
 java.lang.String getReturnReasonCode()
           
protected  SaeItemDto getSaeItemDto()
           
 java.lang.String getSellingItemNumber()
           
 java.lang.String getSellingUnitOfMeasure()
           
 Money getSellingUnitPrice()
           
 java.util.List getServices()
          Return the service elements for the transaction.
 Money getSuggestedRetailPrice()
           
 SaeTax getTax()
          Return the tax element for the item.
 java.lang.String getTaxableFlag()
           
 boolean isItemMerchandise()
           
 void setAttributes(java.util.Map attributes)
           
 void setCustomerOrderLineNumber(java.lang.String customerOrderLineNumber)
           
 void setDirectShipFlag(java.lang.String directShipFlag)
           
 void setDirectShipSupplierId(java.lang.String directShipSupplierId)
           
 void setGiftCertificateExpirationDate(RDate giftCertificateExpirationDate)
           
 void setGiftCertificateNumber(java.lang.String giftCertificateNumber)
           
 void setGiftCertificateToCountryCode(java.lang.String giftCertificateToCountryCode)
           
 void setGiftCertificateToName(java.lang.String giftCertificateToName)
           
 void setGiftCertificateToState(java.lang.String giftCertificateToState)
           
 void setGiftCertificateType(java.lang.String giftCertificateType)
           
 void setItemMerchandiseFlag(java.lang.String itemMerchandiseFlag)
           
 void setItemNumber(java.lang.String itemNumber)
           
 void setItemNumberType(java.lang.String itemNumberType)
           
 void setItemQuantity(Quantity itemQuantity)
           
 void setItemType(java.lang.String itemType)
           
 void setMediaCode(java.lang.String mediaCode)
           
 void setOrderAcceptanceUser(java.lang.String orderAcceptanceUser)
           
 void setReturnReasonCode(java.lang.String returnReasonCode)
           
 void setSellingItemNumber(java.lang.String sellingItemNumber)
           
 void setSellingUnitOfMeasure(java.lang.String sellingUnitOfMeasure)
           
 void setSellingUnitPrice(Money sellingUnitPrice)
           
 void setSuggestedRetailPrice(Money suggestedRetailPrice)
           
 void setTax(SaeTax tax)
           
 void setTaxableFlag(java.lang.String taxableFlag)
           
 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

SaeItemImpl

public SaeItemImpl(DistributedContext context,
                   SaeItemDto dto)
Method Detail

getSaeItemDto

protected SaeItemDto getSaeItemDto()

getItemNumber

public java.lang.String getItemNumber()
Specified by:
getItemNumber in interface SaeItem

setItemNumber

public void setItemNumber(java.lang.String itemNumber)
Specified by:
setItemNumber in interface SaeItem

getItemNumberType

public java.lang.String getItemNumberType()
Specified by:
getItemNumberType in interface SaeItem

setItemNumberType

public void setItemNumberType(java.lang.String itemNumberType)
Specified by:
setItemNumberType in interface SaeItem

getItemType

public java.lang.String getItemType()
Specified by:
getItemType in interface SaeItem

setItemType

public void setItemType(java.lang.String itemType)
Specified by:
setItemType in interface SaeItem

getItemMerchandiseFlag

public java.lang.String getItemMerchandiseFlag()
Specified by:
getItemMerchandiseFlag in interface SaeItem

setItemMerchandiseFlag

public void setItemMerchandiseFlag(java.lang.String itemMerchandiseFlag)
Specified by:
setItemMerchandiseFlag in interface SaeItem

isItemMerchandise

public boolean isItemMerchandise()
Specified by:
isItemMerchandise in interface SaeItem

getMediaCode

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

setMediaCode

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

getSellingItemNumber

public java.lang.String getSellingItemNumber()
Specified by:
getSellingItemNumber in interface SaeItem

setSellingItemNumber

public void setSellingItemNumber(java.lang.String sellingItemNumber)
Specified by:
setSellingItemNumber in interface SaeItem

getCustomerOrderLineNumber

public java.lang.String getCustomerOrderLineNumber()
Specified by:
getCustomerOrderLineNumber in interface SaeItem

setCustomerOrderLineNumber

public void setCustomerOrderLineNumber(java.lang.String customerOrderLineNumber)
Specified by:
setCustomerOrderLineNumber in interface SaeItem

getItemQuantity

public Quantity getItemQuantity()
Specified by:
getItemQuantity in interface SaeItem

setItemQuantity

public void setItemQuantity(Quantity itemQuantity)
Specified by:
setItemQuantity in interface SaeItem

getSellingUnitOfMeasure

public java.lang.String getSellingUnitOfMeasure()
Specified by:
getSellingUnitOfMeasure in interface SaeItem

setSellingUnitOfMeasure

public void setSellingUnitOfMeasure(java.lang.String sellingUnitOfMeasure)
Specified by:
setSellingUnitOfMeasure in interface SaeItem

getSellingUnitPrice

public Money getSellingUnitPrice()
Specified by:
getSellingUnitPrice in interface SaeItem

setSellingUnitPrice

public void setSellingUnitPrice(Money sellingUnitPrice)
Specified by:
setSellingUnitPrice in interface SaeItem

getSuggestedRetailPrice

public Money getSuggestedRetailPrice()
Specified by:
getSuggestedRetailPrice in interface SaeItem

setSuggestedRetailPrice

public void setSuggestedRetailPrice(Money suggestedRetailPrice)
Specified by:
setSuggestedRetailPrice in interface SaeItem

getTaxableFlag

public java.lang.String getTaxableFlag()
Specified by:
getTaxableFlag in interface SaeItem

setTaxableFlag

public void setTaxableFlag(java.lang.String taxableFlag)
Specified by:
setTaxableFlag in interface SaeItem

getOrderAcceptanceUser

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

setOrderAcceptanceUser

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

getDirectShipFlag

public java.lang.String getDirectShipFlag()
Specified by:
getDirectShipFlag in interface SaeItem

setDirectShipFlag

public void setDirectShipFlag(java.lang.String directShipFlag)
Specified by:
setDirectShipFlag in interface SaeItem

getDirectShipSupplierId

public java.lang.String getDirectShipSupplierId()
Specified by:
getDirectShipSupplierId in interface SaeItem

setDirectShipSupplierId

public void setDirectShipSupplierId(java.lang.String directShipSupplierId)
Specified by:
setDirectShipSupplierId in interface SaeItem

getGiftCertificateNumber

public java.lang.String getGiftCertificateNumber()
Specified by:
getGiftCertificateNumber in interface SaeItem

setGiftCertificateNumber

public void setGiftCertificateNumber(java.lang.String giftCertificateNumber)
Specified by:
setGiftCertificateNumber in interface SaeItem

getGiftCertificateType

public java.lang.String getGiftCertificateType()
Specified by:
getGiftCertificateType in interface SaeItem

setGiftCertificateType

public void setGiftCertificateType(java.lang.String giftCertificateType)
Specified by:
setGiftCertificateType in interface SaeItem

getGiftCertificateExpirationDate

public RDate getGiftCertificateExpirationDate()
Specified by:
getGiftCertificateExpirationDate in interface SaeItem

setGiftCertificateExpirationDate

public void setGiftCertificateExpirationDate(RDate giftCertificateExpirationDate)
Specified by:
setGiftCertificateExpirationDate in interface SaeItem

getGiftCertificateToName

public java.lang.String getGiftCertificateToName()
Specified by:
getGiftCertificateToName in interface SaeItem

setGiftCertificateToName

public void setGiftCertificateToName(java.lang.String giftCertificateToName)
Specified by:
setGiftCertificateToName in interface SaeItem

getGiftCertificateToState

public java.lang.String getGiftCertificateToState()
Specified by:
getGiftCertificateToState in interface SaeItem

setGiftCertificateToState

public void setGiftCertificateToState(java.lang.String giftCertificateToState)
Specified by:
setGiftCertificateToState in interface SaeItem

getGiftCertificateToCountryCode

public java.lang.String getGiftCertificateToCountryCode()
Specified by:
getGiftCertificateToCountryCode in interface SaeItem

setGiftCertificateToCountryCode

public void setGiftCertificateToCountryCode(java.lang.String giftCertificateToCountryCode)
Specified by:
setGiftCertificateToCountryCode in interface SaeItem

getReturnReasonCode

public java.lang.String getReturnReasonCode()
Specified by:
getReturnReasonCode in interface SaeItem

setReturnReasonCode

public void setReturnReasonCode(java.lang.String returnReasonCode)
Specified by:
setReturnReasonCode in interface SaeItem

getDiscounts

public java.util.List getDiscounts()
                            throws SystemException
Description copied from interface: SaeItem
Return the discount elements for the transaction.

Specified by:
getDiscounts in interface SaeItem
Returns:
List discount elements
Throws:
SystemException

addDiscount

public void addDiscount(SaeDiscount discount)
Specified by:
addDiscount in interface SaeItem

getAccommodations

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

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

addAccommodation

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

getServices

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

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

addService

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

getTax

public SaeTax getTax()
              throws SystemException
Description copied from interface: SaeItem
Return the tax element for the item.

Specified by:
getTax in interface SaeItem
Returns:
SaeTax tax element
Throws:
SystemException

setTax

public void setTax(SaeTax tax)
Specified by:
setTax in interface SaeItem

addElement

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

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


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