com.retek.component.salesaudit.impl
Class SaeDiscountImpl

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

public class SaeDiscountImpl
extends SaeElementImpl
implements SaeDiscount


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.salesaudit.SaeDiscount
DISCOUNT_TYPE_EMPLOYEE_DISCOUNT
 
Fields inherited from interface com.retek.component.salesaudit.SaeElement
SALES_AUDIT_NO, SALES_AUDIT_YES
 
Constructor Summary
SaeDiscountImpl(DistributedContext context, SaeDiscountDto dto)
           
 
Method Summary
 void accept(SaeElementVisitor txnVisitor)
          Accept a transaction visitor.
 void addElement(ElementObject element)
           
 Money getDiscountAmount()
           
 java.lang.String getDiscountType()
           
 java.lang.String getPromotionFormatType()
           
 java.lang.String getPromotionNumber()
           
protected  SaeDiscountDto getSaeDiscountDto()
           
 void setAttributes(java.util.Map attributes)
           
 void setDiscountAmount(Money discountAmount)
           
 void setDiscountType(java.lang.String discountType)
           
 void setPromotionFormatType(java.lang.String promotionFormatType)
           
 void setPromotionNumber(java.lang.String promotionNumber)
           
 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

SaeDiscountImpl

public SaeDiscountImpl(DistributedContext context,
                       SaeDiscountDto dto)
Method Detail

getSaeDiscountDto

protected SaeDiscountDto getSaeDiscountDto()

getDiscountType

public java.lang.String getDiscountType()
Specified by:
getDiscountType in interface SaeDiscount

setDiscountType

public void setDiscountType(java.lang.String discountType)
Specified by:
setDiscountType in interface SaeDiscount

getDiscountAmount

public Money getDiscountAmount()
Specified by:
getDiscountAmount in interface SaeDiscount

setDiscountAmount

public void setDiscountAmount(Money discountAmount)
Specified by:
setDiscountAmount in interface SaeDiscount

getPromotionNumber

public java.lang.String getPromotionNumber()
Specified by:
getPromotionNumber in interface SaeDiscount

setPromotionNumber

public void setPromotionNumber(java.lang.String promotionNumber)
Specified by:
setPromotionNumber in interface SaeDiscount

getPromotionFormatType

public java.lang.String getPromotionFormatType()
Specified by:
getPromotionFormatType in interface SaeDiscount

setPromotionFormatType

public void setPromotionFormatType(java.lang.String promotionFormatType)
Specified by:
setPromotionFormatType in interface SaeDiscount

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

addElement

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

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