com.retek.component.customerorder.impl
Class CustomerOrderPromotionDiscountImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.SecondClassObjectImpl
          extended bycom.retek.component.customerorder.impl.CustomerOrderPromotionDiscountImpl
All Implemented Interfaces:
BusinessObject, CustomerOrderPromotionDiscount, SecondClassObject

public class CustomerOrderPromotionDiscountImpl
extends SecondClassObjectImpl
implements CustomerOrderPromotionDiscount


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Constructor Summary
CustomerOrderPromotionDiscountImpl(DistributedContext context, CustomerOrderPromotionDiscountDto dto)
           
 
Method Summary
 void addDiscountAmountUsed(Money discountAmount)
           
 CustomerOrderPromotionDiscountImpl createCopy()
           
 RDate getCreateDate()
           
 User getCreatedByUser()
           
 Money getDiscountAmount()
          Return the discount amount for the discount.
 Money getDiscountAmountLeft()
           
 Money getDiscountAmountUsed()
           
 CustomerOrderPromotionDiscountType getDiscountType()
          Return the promotion discount type identifier for the discount.
 CustomerOrderPromotionDiscountDto getDto()
           
 PromotionDiscountable getParentObject()
           
 Promotion getPromotion()
          Return the promotion which triggered the discount.
 CustomerOrderServiceLine getServiceLine()
          Return the parent service line for the discount (if it is a service line level promotion discount).
 boolean isLocked()
          Return a boolean indicating if the promotion discount is locked (ie.
 void lockAllocation(Money amountToAllocate)
           
 void markLocked()
           
 void setCreateDate(RDate createDate)
           
 void setCreatedByUser(User user)
           
 void setDiscountAmount(Money dollarOffAmount)
           
 void setDiscountType(CustomerOrderPromotionDiscountType discountType)
           
 void setParentObject(PromotionDiscountable parentObject)
           
 void setPromotion(Promotion promotion)
           
 
Methods inherited from class com.retek.commons.component.impl.SecondClassObjectImpl
equals, getGenericDto, hashCode, setGenericDto, toString, 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.BusinessObject
getBusinessInterface
 

Constructor Detail

CustomerOrderPromotionDiscountImpl

public CustomerOrderPromotionDiscountImpl(DistributedContext context,
                                          CustomerOrderPromotionDiscountDto dto)
Method Detail

getDto

public CustomerOrderPromotionDiscountDto getDto()

getDiscountType

public CustomerOrderPromotionDiscountType getDiscountType()
Description copied from interface: CustomerOrderPromotionDiscount
Return the promotion discount type identifier for the discount.

Specified by:
getDiscountType in interface CustomerOrderPromotionDiscount
Returns:
CustomerOrderPromotionDiscountType discount type identifier

setDiscountType

public void setDiscountType(CustomerOrderPromotionDiscountType discountType)

getDiscountAmount

public Money getDiscountAmount()
Description copied from interface: CustomerOrderPromotionDiscount
Return the discount amount for the discount.

Specified by:
getDiscountAmount in interface CustomerOrderPromotionDiscount
Returns:
Money discount amount

setDiscountAmount

public void setDiscountAmount(Money dollarOffAmount)

addDiscountAmountUsed

public void addDiscountAmountUsed(Money discountAmount)

getDiscountAmountLeft

public Money getDiscountAmountLeft()

getDiscountAmountUsed

public Money getDiscountAmountUsed()

getParentObject

public PromotionDiscountable getParentObject()
                                      throws SystemException
Throws:
SystemException

setParentObject

public void setParentObject(PromotionDiscountable parentObject)
                     throws SystemException
Throws:
SystemException

getPromotion

public Promotion getPromotion()
                       throws SystemException
Description copied from interface: CustomerOrderPromotionDiscount
Return the promotion which triggered the discount.

Specified by:
getPromotion in interface CustomerOrderPromotionDiscount
Returns:
Promotion promotion source
Throws:
SystemException

setPromotion

public void setPromotion(Promotion promotion)
                  throws SystemException
Throws:
SystemException

isLocked

public boolean isLocked()
Description copied from interface: CustomerOrderPromotionDiscount
Return a boolean indicating if the promotion discount is locked (ie. it has been allocated during settlement processing when a line has been shipped). A locked discount record will not be removed from a particular parent business object if discounts are re-applied.

Specified by:
isLocked in interface CustomerOrderPromotionDiscount
Returns:
boolean true if discount is locked

markLocked

public void markLocked()

getCreatedByUser

public User getCreatedByUser()
                      throws SystemException
Throws:
SystemException

setCreatedByUser

public void setCreatedByUser(User user)

setCreateDate

public void setCreateDate(RDate createDate)

getCreateDate

public RDate getCreateDate()

getServiceLine

public CustomerOrderServiceLine getServiceLine()
                                        throws SystemException
Description copied from interface: CustomerOrderPromotionDiscount
Return the parent service line for the discount (if it is a service line level promotion discount). Returns null if the parent is an order or order line.

Specified by:
getServiceLine in interface CustomerOrderPromotionDiscount
Returns:
CustomerOrderServiceLine parent service line
Throws:
SystemException

createCopy

public CustomerOrderPromotionDiscountImpl createCopy()
                                              throws SystemException
Throws:
SystemException

lockAllocation

public void lockAllocation(Money amountToAllocate)
                    throws SystemException
Throws:
SystemException


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