com.retek.component.promotion.impl
Class PromotionImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.promotion.impl.PromotionImpl
All Implemented Interfaces:
BusinessObject, DistributedObject, Promotion

public class PromotionImpl
extends DistributedObjectImpl
implements Promotion


Nested Class Summary
 
Nested classes inherited from class com.retek.commons.component.impl.DistributedObjectImpl
DistributedObjectImpl.DtoBurgular
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Fields inherited from interface com.retek.component.promotion.Promotion
BANNER, CHANNELTYPE, DESCRIPTION, DOLLAR_OR_PERCENTOFF, END_DATE, PROMOTION_BENEFITS, PROMOTION_DETAIL_TYPE, PROMOTION_DISCOUNT_AMOUNT, PROMOTION_FORMAT_TYPE, PROMOTION_QUANTITY, PROMOTION_SOURCE_CODE, PROMOTION_THRESHOLD_ITEM, PROMOTION_TRIGGER_TYPE, START_DATE, TYPE
 
Constructor Summary
PromotionImpl(DistributedContext context, DistributedReference ref)
           
PromotionImpl(DistributedContext context, DistributedReference ref, boolean createHollow)
           
 
Method Summary
 void addBenefit(PromotionBenefit benefit)
           
 void addOfferCode(OfferCode offerCode)
           
 void addSellingList(SellingList sellingList)
           
 void addSourceCode(SourceCode sourceCode)
           
 void addTenderType(TenderType tenderType)
           
 Banner getBanner()
           
 java.util.Set getBenefits()
           
 ChannelType getChannelType()
           
 User getCreatedByUser()
           
 java.lang.String getDescription()
           
 java.lang.String getDisplayCode()
           
 PromotionDto getDto()
           
 RDate getEndDate()
           
 User getLastUpdatedByUser()
           
 RDate getLastUpdatedDate()
           
 java.util.Set getOfferCodes()
           
 PromotionFormatType getPromotionFormatType()
           
 java.lang.String getPromotionId()
           
 java.lang.String getPromotionName()
           
 PromotionTriggerType getPromotionTriggerType()
           
 java.util.Set getSellingLists()
           
 java.util.Set getSourceCodes()
           
 RDate getStartDate()
           
 PromotionStatus getStatus()
           
 java.util.Set getTenderTypes()
           
 java.util.Set getThresholds()
           
 Money getTotalDollarOffForBenefits()
           
 boolean hasItemBenefits()
           
 boolean hasOrderBenefits()
           
 boolean hasServiceBenefits()
           
 boolean isDollarOffBenefits()
           
 boolean isPercentOffBenefits()
           
 boolean isThreshold()
           
 boolean isTriggerTenderType()
           
protected  Dto readLatest()
           
 void removeAllOfferCodes()
           
 void removeAllSellingLists()
           
 void removeAllSourceCodes()
           
 void removeAllTenderTypes()
           
 void removeBenefit(PromotionBenefit benefit)
           
 void removeOfferCode(OfferCode offerCode)
           
 void removeSellingList(SellingList sellingList)
           
 void removeSourceCode(SourceCode sourceCode)
           
 void removeTenderType(TenderType tenderType)
           
 void setBanner(Banner banner)
           
 void setBenefit(PromotionBenefit benefit)
           
 void setBenefits(java.util.Set newBenefits)
           
 void setChannelType(ChannelType channelType)
           
 void setDescription(java.lang.String description)
           
 void setEndDate(RDate endDate)
           
 void setPromotionName(java.lang.String name)
           
 void setPromotionTriggerType(PromotionTriggerType promotionTriggerType)
           
 void setSellingListItemBenefits(java.util.Set newBenefits)
           
 void setStartDate(RDate activeDate)
           
 void setThreshold(boolean threshold)
           
 void setThreshold(PromotionThreshold threshold)
           
 void setThresholds(java.util.Set newThresholds)
           
 void submit(User user)
           
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectImpl
attributesToString, createEmptyDto, debugToString, discardChanges, discardChangesShallow, equals, getGenericDto, getId, getReference, getReference, getVersion, hashCode, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isHollow, isPersisted, markAllDeleted, refresh, 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.DistributedObject
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Constructor Detail

PromotionImpl

public PromotionImpl(DistributedContext context,
                     DistributedReference ref,
                     boolean createHollow)
              throws SystemException

PromotionImpl

public PromotionImpl(DistributedContext context,
                     DistributedReference ref)
              throws SystemException
Method Detail

getDto

public PromotionDto getDto()
                    throws SystemException
Throws:
SystemException

submit

public void submit(User user)
            throws SystemException,
                   BusinessException
Specified by:
submit in interface Promotion
Throws:
SystemException
BusinessException

getBanner

public Banner getBanner()
                 throws SystemException
Specified by:
getBanner in interface Promotion
Throws:
SystemException

getDisplayCode

public java.lang.String getDisplayCode()
                                throws SystemException
Throws:
SystemException

getLastUpdatedByUser

public User getLastUpdatedByUser()
                          throws SystemException
Specified by:
getLastUpdatedByUser in interface Promotion
Throws:
SystemException

getCreatedByUser

public User getCreatedByUser()
                      throws SystemException,
                             BusinessException
Specified by:
getCreatedByUser in interface Promotion
Throws:
SystemException
BusinessException

getLastUpdatedDate

public RDate getLastUpdatedDate()
                         throws SystemException
Specified by:
getLastUpdatedDate in interface Promotion
Throws:
SystemException

setStartDate

public void setStartDate(RDate activeDate)
                  throws SystemException
Specified by:
setStartDate in interface Promotion
Throws:
SystemException

setEndDate

public void setEndDate(RDate endDate)
                throws SystemException
Specified by:
setEndDate in interface Promotion
Throws:
SystemException

setDescription

public void setDescription(java.lang.String description)
                    throws SystemException
Throws:
SystemException

getStatus

public PromotionStatus getStatus()
                          throws SystemException,
                                 BusinessException
Specified by:
getStatus in interface Promotion
Throws:
SystemException
BusinessException

getChannelType

public ChannelType getChannelType()
                           throws SystemException
Specified by:
getChannelType in interface Promotion
Throws:
SystemException

getEndDate

public RDate getEndDate()
                 throws SystemException
Specified by:
getEndDate in interface Promotion
Throws:
SystemException

getStartDate

public RDate getStartDate()
                   throws SystemException
Specified by:
getStartDate in interface Promotion
Throws:
SystemException

setBanner

public void setBanner(Banner banner)
               throws SystemException
Specified by:
setBanner in interface Promotion
Throws:
SystemException

setChannelType

public void setChannelType(ChannelType channelType)
                    throws SystemException
Specified by:
setChannelType in interface Promotion
Throws:
SystemException

setPromotionName

public void setPromotionName(java.lang.String name)
                      throws SystemException
Specified by:
setPromotionName in interface Promotion
Throws:
SystemException

getPromotionName

public java.lang.String getPromotionName()
                                  throws SystemException
Specified by:
getPromotionName in interface Promotion
Throws:
SystemException

getPromotionId

public java.lang.String getPromotionId()
                                throws SystemException
Specified by:
getPromotionId in interface Promotion
Throws:
SystemException

getDescription

public java.lang.String getDescription()
                                throws SystemException
Specified by:
getDescription in interface Promotion
Throws:
SystemException

getPromotionFormatType

public PromotionFormatType getPromotionFormatType()
                                           throws SystemException
Specified by:
getPromotionFormatType in interface Promotion
Throws:
SystemException

getPromotionTriggerType

public PromotionTriggerType getPromotionTriggerType()
                                             throws SystemException
Specified by:
getPromotionTriggerType in interface Promotion
Throws:
SystemException

setPromotionTriggerType

public void setPromotionTriggerType(PromotionTriggerType promotionTriggerType)
                             throws SystemException
Specified by:
setPromotionTriggerType in interface Promotion
Throws:
SystemException

addSourceCode

public void addSourceCode(SourceCode sourceCode)
                   throws SystemException
Specified by:
addSourceCode in interface Promotion
Throws:
SystemException

addOfferCode

public void addOfferCode(OfferCode offerCode)
                  throws SystemException
Specified by:
addOfferCode in interface Promotion
Throws:
SystemException

addSellingList

public void addSellingList(SellingList sellingList)
                    throws SystemException
Specified by:
addSellingList in interface Promotion
Throws:
SystemException

removeAllSourceCodes

public void removeAllSourceCodes()
                          throws SystemException,
                                 BusinessException
Specified by:
removeAllSourceCodes in interface Promotion
Throws:
SystemException
BusinessException

removeAllSellingLists

public void removeAllSellingLists()
                           throws SystemException,
                                  BusinessException
Specified by:
removeAllSellingLists in interface Promotion
Throws:
SystemException
BusinessException

removeAllOfferCodes

public void removeAllOfferCodes()
                         throws SystemException,
                                BusinessException
Specified by:
removeAllOfferCodes in interface Promotion
Throws:
SystemException
BusinessException

removeAllTenderTypes

public void removeAllTenderTypes()
                          throws SystemException
Specified by:
removeAllTenderTypes in interface Promotion
Throws:
SystemException

removeSourceCode

public void removeSourceCode(SourceCode sourceCode)
                      throws SystemException
Specified by:
removeSourceCode in interface Promotion
Throws:
SystemException

removeSellingList

public void removeSellingList(SellingList sellingList)
                       throws SystemException
Specified by:
removeSellingList in interface Promotion
Throws:
SystemException

removeOfferCode

public void removeOfferCode(OfferCode offerCode)
                     throws SystemException
Specified by:
removeOfferCode in interface Promotion
Throws:
SystemException

removeTenderType

public void removeTenderType(TenderType tenderType)
                      throws SystemException
Specified by:
removeTenderType in interface Promotion
Throws:
SystemException

getSourceCodes

public java.util.Set getSourceCodes()
                             throws SystemException,
                                    BusinessException
Specified by:
getSourceCodes in interface Promotion
Throws:
SystemException
BusinessException

getSellingLists

public java.util.Set getSellingLists()
                              throws SystemException,
                                     BusinessException
Specified by:
getSellingLists in interface Promotion
Throws:
SystemException
BusinessException

getOfferCodes

public java.util.Set getOfferCodes()
                            throws SystemException
Specified by:
getOfferCodes in interface Promotion
Throws:
SystemException

readLatest

protected Dto readLatest()
                  throws SystemException
Overrides:
readLatest in class DistributedObjectImpl
Throws:
SystemException

setBenefit

public void setBenefit(PromotionBenefit benefit)
                throws SystemException
Specified by:
setBenefit in interface Promotion
Throws:
SystemException

setBenefits

public void setBenefits(java.util.Set newBenefits)
                 throws SystemException,
                        BusinessException
Specified by:
setBenefits in interface Promotion
Throws:
SystemException
BusinessException

addBenefit

public void addBenefit(PromotionBenefit benefit)
                throws SystemException,
                       BusinessException
Specified by:
addBenefit in interface Promotion
Throws:
SystemException
BusinessException

removeBenefit

public void removeBenefit(PromotionBenefit benefit)
                   throws SystemException
Specified by:
removeBenefit in interface Promotion
Throws:
SystemException

setSellingListItemBenefits

public void setSellingListItemBenefits(java.util.Set newBenefits)
                                throws SystemException,
                                       BusinessException
Specified by:
setSellingListItemBenefits in interface Promotion
Throws:
SystemException
BusinessException

getBenefits

public java.util.Set getBenefits()
                          throws SystemException
Specified by:
getBenefits in interface Promotion
Throws:
SystemException

isDollarOffBenefits

public boolean isDollarOffBenefits()
                            throws SystemException
Specified by:
isDollarOffBenefits in interface Promotion
Throws:
SystemException

isPercentOffBenefits

public boolean isPercentOffBenefits()
                             throws SystemException
Specified by:
isPercentOffBenefits in interface Promotion
Throws:
SystemException

getThresholds

public java.util.Set getThresholds()
                            throws SystemException
Specified by:
getThresholds in interface Promotion
Throws:
SystemException

getTotalDollarOffForBenefits

public Money getTotalDollarOffForBenefits()
                                   throws SystemException
Specified by:
getTotalDollarOffForBenefits in interface Promotion
Throws:
SystemException

setThreshold

public void setThreshold(PromotionThreshold threshold)
                  throws SystemException
Specified by:
setThreshold in interface Promotion
Throws:
SystemException

setThresholds

public void setThresholds(java.util.Set newThresholds)
                   throws SystemException,
                          BusinessException
Specified by:
setThresholds in interface Promotion
Throws:
SystemException
BusinessException

hasOrderBenefits

public boolean hasOrderBenefits()
                         throws SystemException
Specified by:
hasOrderBenefits in interface Promotion
Throws:
SystemException

hasItemBenefits

public boolean hasItemBenefits()
                        throws SystemException
Specified by:
hasItemBenefits in interface Promotion
Throws:
SystemException

hasServiceBenefits

public boolean hasServiceBenefits()
                           throws SystemException
Specified by:
hasServiceBenefits in interface Promotion
Throws:
SystemException

setThreshold

public void setThreshold(boolean threshold)
Specified by:
setThreshold in interface Promotion

isThreshold

public boolean isThreshold()
Specified by:
isThreshold in interface Promotion

addTenderType

public void addTenderType(TenderType tenderType)
                   throws SystemException
Specified by:
addTenderType in interface Promotion
Throws:
SystemException

getTenderTypes

public java.util.Set getTenderTypes()
                             throws SystemException
Specified by:
getTenderTypes in interface Promotion
Throws:
SystemException

isTriggerTenderType

public boolean isTriggerTenderType()
                            throws SystemException
Specified by:
isTriggerTenderType in interface Promotion
Throws:
SystemException


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