|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
com.bea.commerce.ebusiness.discount.mgmt.QualDiscountDefFactory
Field Summary | |
static java.lang.String |
ITEM_DISCOUNT_TYPE
Defines the item discount type |
static java.lang.String |
ORDER_DISCOUNT_TYPE
Defines the order discount type |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Tests if two discounts are the same |
int |
getAllowedUses()
Gets the value of the 'number of uses allowed' parameter for this discount. |
java.lang.String |
getDescription()
Gets this discount's description |
java.util.Date |
getEndDate()
Gets the discount definition's expiration date |
java.lang.String |
getGlobalDescription()
Gets this discount's global description |
QualificationDiscountId |
getId()
Get the QualificationDiscountId (unique identifier)
associated with this definition |
DiscountModifier |
getModifier()
Gets the DiscountModifier associated with this discount |
java.lang.String |
getName()
Gets this discounts name, discount names are only unique within a given discount set |
int |
getPriority()
Gets the priority associated with this definition |
DiscountRule |
getRule()
Gets the DiscountRule associated with this discount |
java.lang.String |
getSetName()
Deprecated. As of version 4.0, this method now throws an UnsupportedOperationException . |
java.util.Date |
getStartDate()
Gets the discount definition's begin date |
java.lang.String |
getType()
Gets the type of this discount, should be one of the discount type constants defined by this interface |
int |
hashCode()
A unique code for this discount |
boolean |
isActive()
Gets this discount's active flag |
boolean |
isGlobal()
Gets this discount's global flag |
void |
setId(QualificationDiscountId newId)
|
java.lang.String |
toString()
Gets a String |
Methods inherited from interface java.lang.Comparable |
compareTo |
Field Detail |
public static final java.lang.String ITEM_DISCOUNT_TYPE
public static final java.lang.String ORDER_DISCOUNT_TYPE
Method Detail |
public QualificationDiscountId getId()
QualificationDiscountId
(unique identifier)
associated with this definition
QualificationDiscountId
)public void setId(QualificationDiscountId newId)
public int getPriority()
public boolean isGlobal()
public java.lang.String getName()
getSetName()
public java.lang.String getType()
public int getAllowedUses()
public DiscountModifier getModifier()
DiscountModifier
associated with this discount
DiscountModifier
associated with this discountDiscountModifier
public DiscountRule getRule()
DiscountRule
associated with this discount
DiscountRule
associated with this discountDiscountRule
public java.util.Date getEndDate()
public java.util.Date getStartDate()
public boolean isActive()
public java.lang.String getDescription()
public java.lang.String getGlobalDescription()
public java.lang.String getSetName()
UnsupportedOperationException
.
public boolean equals(java.lang.Object obj)
obj
- the QualificationDiscountDef
to compare this one
againstQualificationDiscountDef
is the
same as this onepublic int hashCode()
public java.lang.String toString()
String representation of this discount
- Returns:
- a
String representation of this discount- Overrides:
- toString in class java.lang.Object
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |