com.retek.component.customerorder
Class CustomerOrderPromotionDiscountType

java.lang.Object
  extended byorg.apache.commons.lang.enums.Enum
      extended bycom.retek.commons.util.type.Enum
          extended bycom.retek.component.customerorder.CustomerOrderPromotionDiscountType
All Implemented Interfaces:
java.lang.Comparable, com.retek.swing11.commons.type.Displayable, java.io.Serializable

public class CustomerOrderPromotionDiscountType
extends Enum

Class which encapsulates type-safe enum for identifying types of customer order discount records. This type represents a flattened representation of promotion benefit types (and service types).

See Also:
Serialized Form

Field Summary
static CustomerOrderPromotionDiscountType ADDITIONAL_SHIPPING
           
static java.lang.String ADDITIONAL_SHIPPING_CODE
           
static CustomerOrderPromotionDiscountType GIFT_CARD
           
static java.lang.String GIFT_CARD_CODE
           
static CustomerOrderPromotionDiscountType GIFT_CERTIFICATE
           
static java.lang.String GIFT_CERTIFICATE_CODE
           
static CustomerOrderPromotionDiscountType GIFT_WRAP
           
static java.lang.String GIFT_WRAP_CODE
           
static CustomerOrderPromotionDiscountType ITEM
           
static java.lang.String ITEM_CODE
           
static CustomerOrderPromotionDiscountType LINE_MERCH_AMOUNT
           
static java.lang.String LINE_MERCH_AMOUNT_CODE
           
static java.lang.String MONOGRAM_CODE
           
static CustomerOrderPromotionDiscountType MONOGRAMMING
           
static java.util.Set ORDER_DISCOUNT_TYPES
           
static java.util.Set ORDER_LINE_DISCOUNT_TYPES
           
static CustomerOrderPromotionDiscountType ORDER_MERCH_AMOUNT
           
static java.lang.String ORDER_MERCH_AMOUNT_CODE
           
static CustomerOrderPromotionDiscountType PERSONALIZATION
           
static java.lang.String PERSONALIZATION_CODE
           
static CustomerOrderPromotionDiscountType PLAN_CODE
           
static java.lang.String PLAN_CODE_CODE
           
static CustomerOrderPromotionDiscountType SELLING_LIST
           
static java.lang.String SELLING_LIST_CODE
           
static long serialVersionUID
           
static java.util.Set SERVICE_LINE_DISCOUNT_TYPES
           
static CustomerOrderPromotionDiscountType STANDARD_SHIPPING
           
static java.lang.String STANDARD_SHIPPING_CODE
           
 
Fields inherited from class org.apache.commons.lang.enums.Enum
iToString
 
Method Summary
static CustomerOrderPromotionDiscountType fromCode(java.lang.String code)
           
static CustomerOrderPromotionDiscountType fromPromotionBenefit(PromotionBenefit promotionBenefit)
           
static java.util.List getValues()
           
 boolean isOrderDiscountType()
          Return a boolean indicating if the promotion discount type is for an order level discount.
 boolean isOrderLineDiscountType()
          Return a boolean indicating if the promotion discount type is for an order line level discount.
 boolean isServiceLineDiscountType()
          Return a boolean indicating if the promotion discount type is for a service line level discount.
 
Methods inherited from class com.retek.commons.util.type.Enum
fromCode, getCode, getDescription, getEnumSet, getId, toDisplayString, toString
 
Methods inherited from class org.apache.commons.lang.enums.Enum
compareTo, equals, getEnum, getEnumClass, getEnumList, getEnumMap, getName, hashCode, iterator, readResolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

STANDARD_SHIPPING_CODE

public static final java.lang.String STANDARD_SHIPPING_CODE
See Also:
Constant Field Values

ADDITIONAL_SHIPPING_CODE

public static final java.lang.String ADDITIONAL_SHIPPING_CODE
See Also:
Constant Field Values

PERSONALIZATION_CODE

public static final java.lang.String PERSONALIZATION_CODE
See Also:
Constant Field Values

MONOGRAM_CODE

public static final java.lang.String MONOGRAM_CODE
See Also:
Constant Field Values

GIFT_WRAP_CODE

public static final java.lang.String GIFT_WRAP_CODE
See Also:
Constant Field Values

GIFT_CARD_CODE

public static final java.lang.String GIFT_CARD_CODE
See Also:
Constant Field Values

GIFT_CERTIFICATE_CODE

public static final java.lang.String GIFT_CERTIFICATE_CODE
See Also:
Constant Field Values

ITEM_CODE

public static final java.lang.String ITEM_CODE
See Also:
Constant Field Values

LINE_MERCH_AMOUNT_CODE

public static final java.lang.String LINE_MERCH_AMOUNT_CODE
See Also:
Constant Field Values

ORDER_MERCH_AMOUNT_CODE

public static final java.lang.String ORDER_MERCH_AMOUNT_CODE
See Also:
Constant Field Values

PLAN_CODE_CODE

public static final java.lang.String PLAN_CODE_CODE
See Also:
Constant Field Values

SELLING_LIST_CODE

public static final java.lang.String SELLING_LIST_CODE
See Also:
Constant Field Values

STANDARD_SHIPPING

public static final CustomerOrderPromotionDiscountType STANDARD_SHIPPING

ADDITIONAL_SHIPPING

public static final CustomerOrderPromotionDiscountType ADDITIONAL_SHIPPING

PERSONALIZATION

public static final CustomerOrderPromotionDiscountType PERSONALIZATION

MONOGRAMMING

public static final CustomerOrderPromotionDiscountType MONOGRAMMING

GIFT_WRAP

public static final CustomerOrderPromotionDiscountType GIFT_WRAP

GIFT_CARD

public static final CustomerOrderPromotionDiscountType GIFT_CARD

GIFT_CERTIFICATE

public static final CustomerOrderPromotionDiscountType GIFT_CERTIFICATE

ITEM

public static final CustomerOrderPromotionDiscountType ITEM

LINE_MERCH_AMOUNT

public static final CustomerOrderPromotionDiscountType LINE_MERCH_AMOUNT

ORDER_MERCH_AMOUNT

public static final CustomerOrderPromotionDiscountType ORDER_MERCH_AMOUNT

PLAN_CODE

public static final CustomerOrderPromotionDiscountType PLAN_CODE

SELLING_LIST

public static final CustomerOrderPromotionDiscountType SELLING_LIST

ORDER_DISCOUNT_TYPES

public static final java.util.Set ORDER_DISCOUNT_TYPES

ORDER_LINE_DISCOUNT_TYPES

public static final java.util.Set ORDER_LINE_DISCOUNT_TYPES

SERVICE_LINE_DISCOUNT_TYPES

public static final java.util.Set SERVICE_LINE_DISCOUNT_TYPES
Method Detail

fromCode

public static CustomerOrderPromotionDiscountType fromCode(java.lang.String code)

fromPromotionBenefit

public static CustomerOrderPromotionDiscountType fromPromotionBenefit(PromotionBenefit promotionBenefit)
                                                               throws SystemException
Throws:
SystemException

getValues

public static java.util.List getValues()

isOrderLineDiscountType

public boolean isOrderLineDiscountType()
Return a boolean indicating if the promotion discount type is for an order line level discount.

Returns:
true if order line level discount

isServiceLineDiscountType

public boolean isServiceLineDiscountType()
Return a boolean indicating if the promotion discount type is for a service line level discount.

Returns:
true if service line level discount

isOrderDiscountType

public boolean isOrderDiscountType()
Return a boolean indicating if the promotion discount type is for an order level discount.

Returns:
true if order level discount


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25