com.retek.component.salesaudit.impl
Class SaeServiceImpl

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

public class SaeServiceImpl
extends SaeElementImpl
implements SaeService


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.salesaudit.SaeService
SERVICE_TYPE_ADDITIONAL_SHIPPING, SERVICE_TYPE_GIFT_CARD, SERVICE_TYPE_GIFT_WRAP, SERVICE_TYPE_MONOGRAMMING, SERVICE_TYPE_PERSONALIZATION, SERVICE_TYPE_RETURN_POSTAGE, SERVICE_TYPE_RUSH_SHIPPING, SERVICE_TYPE_SHIPPING_TYPES, SERVICE_TYPE_STANDARD_SHIPPING, SERVICE_TYPE_VAS_TYPES
 
Fields inherited from interface com.retek.component.salesaudit.SaeElement
SALES_AUDIT_NO, SALES_AUDIT_YES
 
Constructor Summary
SaeServiceImpl(DistributedContext context, SaeServiceDto dto)
           
 
Method Summary
 void accept(SaeElementVisitor txnVisitor)
          Accept a transaction visitor.
 void addDiscount(SaeDiscount discount)
           
 void addElement(ElementObject element)
           
 java.util.List getDiscounts()
          Return the discount elements for the transaction.
protected  SaeServiceDto getSaeServiceDto()
           
 SaeItem getServiceItem()
          Return the service item for this service element.
 Quantity getServiceQuantity()
           
 java.lang.String getServiceType()
           
 Money getServiceUnitAmount()
           
 SaeTax getTax()
          Return the tax element for the service.
 void setAttributes(java.util.Map attributes)
           
 void setServiceItem(SaeItem item)
           
 void setServiceQuantity(Quantity quantity)
           
 void setServiceType(java.lang.String serviceType)
           
 void setServiceUnitAmount(Money unitAmount)
           
 void setTax(SaeTax tax)
           
 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

SaeServiceImpl

public SaeServiceImpl(DistributedContext context,
                      SaeServiceDto dto)
Method Detail

getSaeServiceDto

protected SaeServiceDto getSaeServiceDto()

getServiceQuantity

public Quantity getServiceQuantity()
Specified by:
getServiceQuantity in interface SaeService

setServiceQuantity

public void setServiceQuantity(Quantity quantity)
Specified by:
setServiceQuantity in interface SaeService

getServiceType

public java.lang.String getServiceType()
Specified by:
getServiceType in interface SaeService

setServiceType

public void setServiceType(java.lang.String serviceType)
Specified by:
setServiceType in interface SaeService

getServiceUnitAmount

public Money getServiceUnitAmount()
Specified by:
getServiceUnitAmount in interface SaeService

setServiceUnitAmount

public void setServiceUnitAmount(Money unitAmount)
Specified by:
setServiceUnitAmount in interface SaeService

getDiscounts

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

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

addDiscount

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

getTax

public SaeTax getTax()
              throws SystemException
Description copied from interface: SaeService
Return the tax element for the service. Will be null for all services other than Standard S&H Service.

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

setTax

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

getServiceItem

public SaeItem getServiceItem()
                       throws SystemException
Description copied from interface: SaeService
Return the service item for this service element.

Specified by:
getServiceItem in interface SaeService
Returns:
SaeItem service item
Throws:
SystemException

setServiceItem

public void setServiceItem(SaeItem item)
Specified by:
setServiceItem in interface SaeService

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