|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Deprecated public interface QualificationDiscountDef
This interface defines the public interface of an immutable discount
definition object. Discount definition objects are the run time
representation of a discount. Discount are defined in XML discount set
definitions. The QualDiscountDefFactory is used to create
instance of discount definition objects from the discount set definition
| Field Summary | |
|---|---|
static String |
ITEM_DISCOUNT_TYPE
Deprecated Defines the item discount type |
static String |
ORDER_DISCOUNT_TYPE
Deprecated Defines the order discount type |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Deprecated Tests if two discounts are the same |
int |
getAllowedUses()
Deprecated Gets the value of the 'number of uses allowed' parameter for this discount. |
String |
getDescription()
Deprecated Gets this discount's description |
Date |
getEndDate()
Deprecated Gets the discount definition's expiration date |
String |
getGlobalDescription()
Deprecated Gets this discount's global description |
QualificationDiscountId |
getId()
Deprecated Get the QualificationDiscountId (unique identifier)
associated with this definition |
DiscountModifier |
getModifier()
Deprecated Gets the DiscountModifier associated with this discount |
String |
getName()
Deprecated Gets this discounts name, discount names are only unique within a given discount set |
int |
getPriority()
Deprecated Gets the priority associated with this definition |
DiscountRule |
getRule()
Deprecated Gets the DiscountRule associated with this discount |
String |
getSetName()
Deprecated As of version 4.0, this method now throws an UnsupportedOperationException. |
Date |
getStartDate()
Deprecated Gets the discount definition's begin date |
String |
getType()
Deprecated Gets the type of this discount, should be one of the discount type constants defined by this interface |
int |
hashCode()
Deprecated A unique code for this discount |
boolean |
isActive()
Deprecated Gets this discount's active flag |
boolean |
isGlobal()
Deprecated Gets this discount's global flag |
void |
setId(QualificationDiscountId newId)
Deprecated |
String |
toString()
Deprecated Gets a String |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final String ITEM_DISCOUNT_TYPE
static final String ORDER_DISCOUNT_TYPE
| Method Detail |
|---|
QualificationDiscountId getId()
QualificationDiscountId (unique identifier)
associated with this definition
QualificationDiscountId)void setId(QualificationDiscountId newId)
int getPriority()
boolean isGlobal()
String getName()
getSetName()String getType()
int getAllowedUses()
DiscountModifier getModifier()
DiscountModifier associated with this discount
DiscountModifier associated with this discountDiscountModifierDiscountRule getRule()
DiscountRule associated with this discount
DiscountRule associated with this discountDiscountRuleDate getEndDate()
Date getStartDate()
boolean isActive()
String getDescription()
String getGlobalDescription()
String getSetName()
UnsupportedOperationException.
UnsupportedOperationExceptionboolean equals(Object obj)
equals in class Objectobj - the QualificationDiscountDef to compare this one
against
QualificationDiscountDef is the
same as this oneint hashCode()
hashCode in class ObjectString toString()
String representation of this discount
- Overrides:
toString in class Object
- Returns
- a
String representation of this discount
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||