com.retek.component.customerorder.impl
Class CustomerOrderValueAddedServiceLineImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customerorder.impl.CustomerOrderServiceLineImpl
              extended bycom.retek.component.customerorder.impl.CustomerOrderValueAddedServiceLineImpl
All Implemented Interfaces:
BusinessObject, java.lang.Comparable, CustomerOrderServiceLine, CustomerOrderValueAddedServiceLine, com.retek.swing11.commons.type.Displayable, DistributedObject, PromotionDiscountable
Direct Known Subclasses:
CustomerOrderMonogramServiceLineImpl, CustomerOrderPersonalizationServiceLineImpl

public abstract class CustomerOrderValueAddedServiceLineImpl
extends CustomerOrderServiceLineImpl
implements CustomerOrderValueAddedServiceLine


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.customerorder.CustomerOrderValueAddedServiceLine
CHARACTERS, COLOR_NOT_SUPPORTED, FONT_NOT_SUPPORTED, PERSISTED_ORDER, PERSONALIZATION_STYLE, PERSONALIZATION_TYPE, PLACEMENT_ON_ITEM, SUPPLIER, UNIT_PRICE, VALUE_ADDED_SERVICE
 
Fields inherited from interface com.retek.component.customerorder.CustomerOrderServiceLine
SERVICE_LINE_TYPE
 
Constructor Summary
CustomerOrderValueAddedServiceLineImpl(DistributedContext context, DistributedReference ref)
           
CustomerOrderValueAddedServiceLineImpl(DistributedContext context, DistributedReference ref, boolean createHollow)
           
 
Method Summary
protected abstract  CustomerOrderServiceLine buildInstanceForCopy(CustomerOrderLine copyToLine)
           
protected abstract  void copyData(CustomerOrderValueAddedServiceLine newServiceLine)
           
 CustomerOrderServiceLine createCopy(CustomerOrderLine copyToLine)
           
 CustomerOrderServiceLine createCopyUnchecked(CustomerOrderLine copyToLine)
           
protected  ValueAddedService findTargetValueAddedService(CustomerOrderValueAddedServiceLine fromServiceLine, CustomerOrderLine toOrderLine)
           
 Money getCalculatedPrice(java.util.List text, Quantity orderedQuantity)
           
protected abstract  java.util.List getCharactersForPricing()
           
protected abstract  int getChargeableNumberOfCharacters(java.util.List text)
           
 java.lang.String getComments()
           
protected  CustomerOrderValueAddedServiceLineDto getCustomerOrderValueAddedServiceLineDto()
           
 Money getExtendedPrice()
           
 Money getExtendedPrice(Quantity qty)
           
abstract  int getNumberOfCharacters()
           
 java.lang.String getPlacementOnItem()
           
 Money getUnitPrice()
           
 Money getUnitPriceForSingleItem()
           
 ValueAddedService getValueAddedService()
           
 boolean isEngraving()
           
 boolean isPriceByCharacter()
           
 void setComments(java.lang.String comments)
           
 void setPlacementOnItem(java.lang.String placementOnItem)
           
 void setPriceByCharacter(boolean priceByCharacter)
           
 void setUnitPrice(Money price)
           
 void setValueAddedService(ValueAddedService valueAddedService)
           
 
Methods inherited from class com.retek.component.customerorder.impl.CustomerOrderServiceLineImpl
addPromotionDiscount, clearPromotionDiscounts, compareTo, equalsType, getCopySourceCustomerOrderServiceLine, getCreatedByUser, getCreatedDate, getCustomerOrderServiceLineDto, getEstimatedDeliveryDate, getLastUpdatedByUser, getLastUpdatedDate, getOrderedQuantity, getOrderLine, getPromotionDiscounts, getServicePromotionDiscountValue, getSortRank, setCopySourceCustomerOrderServiceLine, setEstimatedDeliveryDate, setOrderedQuantity, setOrderLine
 
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, readLatest, 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.component.customerorder.CustomerOrderServiceLine
equalsType, getCode, getCreatedByUser, getCreatedDate, getDescription, getDetailDescription, getEstimatedDeliveryDate, getLastUpdatedByUser, getLastUpdatedDate, getOrderedQuantity, getPromotionDiscounts, getServicePromotionDiscountValue, getWorkOrderInstructions, setEstimatedDeliveryDate, setOrderedQuantity
 
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
 
Methods inherited from interface com.retek.swing11.commons.type.Displayable
toDisplayString
 

Constructor Detail

CustomerOrderValueAddedServiceLineImpl

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

CustomerOrderValueAddedServiceLineImpl

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

getValueAddedService

public ValueAddedService getValueAddedService()
                                       throws SystemException
Specified by:
getValueAddedService in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

isEngraving

public boolean isEngraving()
                    throws BusinessException,
                           SystemException
Specified by:
isEngraving in interface CustomerOrderValueAddedServiceLine
Throws:
BusinessException
SystemException

getComments

public java.lang.String getComments()
                             throws SystemException
Specified by:
getComments in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

getPlacementOnItem

public java.lang.String getPlacementOnItem()
                                    throws SystemException
Specified by:
getPlacementOnItem in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

isPriceByCharacter

public boolean isPriceByCharacter()
                           throws SystemException
Specified by:
isPriceByCharacter in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

getUnitPrice

public Money getUnitPrice()
                   throws SystemException
Specified by:
getUnitPrice in interface CustomerOrderServiceLine
Throws:
SystemException

getExtendedPrice

public Money getExtendedPrice()
                       throws SystemException
Specified by:
getExtendedPrice in interface CustomerOrderServiceLine
Throws:
SystemException

getUnitPriceForSingleItem

public Money getUnitPriceForSingleItem()
                                throws SystemException
Specified by:
getUnitPriceForSingleItem in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

getExtendedPrice

public Money getExtendedPrice(Quantity qty)
                       throws SystemException
Specified by:
getExtendedPrice in interface CustomerOrderServiceLine
Throws:
SystemException

setComments

public void setComments(java.lang.String comments)
                 throws SystemException
Specified by:
setComments in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

setPlacementOnItem

public void setPlacementOnItem(java.lang.String placementOnItem)
                        throws SystemException
Specified by:
setPlacementOnItem in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

setPriceByCharacter

public void setPriceByCharacter(boolean priceByCharacter)
                         throws SystemException
Specified by:
setPriceByCharacter in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

setUnitPrice

public void setUnitPrice(Money price)
                  throws SystemException
Specified by:
setUnitPrice in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

setValueAddedService

public void setValueAddedService(ValueAddedService valueAddedService)
                          throws BusinessException,
                                 SystemException
Specified by:
setValueAddedService in interface CustomerOrderValueAddedServiceLine
Throws:
BusinessException
SystemException

createCopy

public CustomerOrderServiceLine createCopy(CustomerOrderLine copyToLine)
                                    throws SystemException,
                                           BusinessException
Specified by:
createCopy in interface CustomerOrderServiceLine
Specified by:
createCopy in class CustomerOrderServiceLineImpl
Throws:
SystemException
BusinessException

createCopyUnchecked

public CustomerOrderServiceLine createCopyUnchecked(CustomerOrderLine copyToLine)
                                             throws SystemException,
                                                    BusinessException
Specified by:
createCopyUnchecked in class CustomerOrderServiceLineImpl
Throws:
SystemException
BusinessException

copyData

protected abstract void copyData(CustomerOrderValueAddedServiceLine newServiceLine)
                          throws SystemException
Throws:
SystemException

buildInstanceForCopy

protected abstract CustomerOrderServiceLine buildInstanceForCopy(CustomerOrderLine copyToLine)
                                                          throws SystemException
Throws:
SystemException

getCharactersForPricing

protected abstract java.util.List getCharactersForPricing()
                                                   throws SystemException
Throws:
SystemException

getNumberOfCharacters

public abstract int getNumberOfCharacters()
                                   throws SystemException
Specified by:
getNumberOfCharacters in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException

getChargeableNumberOfCharacters

protected abstract int getChargeableNumberOfCharacters(java.util.List text)

getCustomerOrderValueAddedServiceLineDto

protected CustomerOrderValueAddedServiceLineDto getCustomerOrderValueAddedServiceLineDto()
                                                                                  throws SystemException
Throws:
SystemException

findTargetValueAddedService

protected ValueAddedService findTargetValueAddedService(CustomerOrderValueAddedServiceLine fromServiceLine,
                                                        CustomerOrderLine toOrderLine)
                                                 throws SystemException,
                                                        BusinessException
Throws:
SystemException
BusinessException

getCalculatedPrice

public Money getCalculatedPrice(java.util.List text,
                                Quantity orderedQuantity)
                         throws SystemException
Specified by:
getCalculatedPrice in interface CustomerOrderValueAddedServiceLine
Throws:
SystemException


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