com.retek.component.customerorder.impl
Class ReturnReasonImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.DistributedObjectImpl
          extended bycom.retek.component.customerorder.impl.ReturnReasonImpl
All Implemented Interfaces:
BusinessObject, com.retek.swing11.commons.type.Displayable, DistributedObject, ReturnReason

public class ReturnReasonImpl
extends DistributedObjectImpl
implements ReturnReason


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
 
Constructor Summary
ReturnReasonImpl(DistributedContext context, DistributedReference ref, boolean createHollow)
           
ReturnReasonImpl(DistributedContext context, DistributedReference ref, java.lang.String description)
           
 
Method Summary
 java.lang.String getDescription()
          Return the return reason description.
 ReturnReasonDto getDto()
           
 boolean isRefundGiftingReason()
          Returns true if the ReturnReason is one in which the cost of gift wrapping the line item is refundable.
 boolean isRefundShippingAndHandlingReason()
          Returns true if the ReturnReason is one in which the cost of shipping and handling for the line item is refundable.
 boolean isRefundValueAddedServicesReason()
          Returns true if the ReturnReason is one in which the cost of value added services for the line item are refundable.
protected  Dto readLatest()
           
 void setDescription(java.lang.String description)
          Sets the return reason description.
 void setRefundGiftingReason(boolean refundGiftingReason)
          Setter to specify if this return reason results in a refund of the gift wrapping charge
 void setRefundShippingAndHandlingReason(boolean refundShippingAndHandlingReason)
          Setter to specify if this return reason results in a refund of the shipping and handling charge
 void setRefundValueAddedServicesReason(boolean refundValueAddedServicesReason)
          Setter to specify if this return reason results in a refund of any value added service charges
 void submit()
          Persists the object.
 java.lang.String toDisplayString()
           
 
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

ReturnReasonImpl

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

ReturnReasonImpl

public ReturnReasonImpl(DistributedContext context,
                        DistributedReference ref,
                        java.lang.String description)
                 throws SystemException
Method Detail

getDto

public ReturnReasonDto getDto()
                       throws SystemException
Throws:
SystemException

submit

public void submit()
            throws SystemException,
                   BusinessException
Description copied from interface: ReturnReason
Persists the object.

Specified by:
submit in interface ReturnReason
Throws:
BusinessException
SystemException

isRefundGiftingReason

public boolean isRefundGiftingReason()
                              throws SystemException
Description copied from interface: ReturnReason
Returns true if the ReturnReason is one in which the cost of gift wrapping the line item is refundable.

Specified by:
isRefundGiftingReason in interface ReturnReason
Returns:
Throws:
SystemException

isRefundShippingAndHandlingReason

public boolean isRefundShippingAndHandlingReason()
                                          throws SystemException
Description copied from interface: ReturnReason
Returns true if the ReturnReason is one in which the cost of shipping and handling for the line item is refundable.

Specified by:
isRefundShippingAndHandlingReason in interface ReturnReason
Returns:
Throws:
SystemException

isRefundValueAddedServicesReason

public boolean isRefundValueAddedServicesReason()
                                         throws SystemException
Description copied from interface: ReturnReason
Returns true if the ReturnReason is one in which the cost of value added services for the line item are refundable.

Specified by:
isRefundValueAddedServicesReason in interface ReturnReason
Returns:
Throws:
SystemException

setRefundGiftingReason

public void setRefundGiftingReason(boolean refundGiftingReason)
                            throws SystemException
Description copied from interface: ReturnReason
Setter to specify if this return reason results in a refund of the gift wrapping charge

Specified by:
setRefundGiftingReason in interface ReturnReason
Parameters:
refundGiftingReason -
Throws:
SystemException

setRefundShippingAndHandlingReason

public void setRefundShippingAndHandlingReason(boolean refundShippingAndHandlingReason)
                                        throws SystemException
Description copied from interface: ReturnReason
Setter to specify if this return reason results in a refund of the shipping and handling charge

Specified by:
setRefundShippingAndHandlingReason in interface ReturnReason
Throws:
SystemException

setRefundValueAddedServicesReason

public void setRefundValueAddedServicesReason(boolean refundValueAddedServicesReason)
                                       throws SystemException
Description copied from interface: ReturnReason
Setter to specify if this return reason results in a refund of any value added service charges

Specified by:
setRefundValueAddedServicesReason in interface ReturnReason
Throws:
SystemException

readLatest

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

getDescription

public java.lang.String getDescription()
                                throws SystemException
Description copied from interface: ReturnReason
Return the return reason description.

Specified by:
getDescription in interface ReturnReason
Throws:
SystemException

setDescription

public void setDescription(java.lang.String description)
                    throws SystemException
Description copied from interface: ReturnReason
Sets the return reason description.

Specified by:
setDescription in interface ReturnReason
Parameters:
description -
Throws:
SystemException

toDisplayString

public java.lang.String toDisplayString()
Specified by:
toDisplayString in interface com.retek.swing11.commons.type.Displayable


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