|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface represents the public interface to the
DiscountAssociation object. A DiscountAssociation
object is an immutable representation of a discount association. A discount
association is the mapping of a Customer to a
Discount and it's primary purpose is to tack and limit how many
times discount is used by a particular customer
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Tests if two discount associations are the same |
java.lang.String |
getDescription()
Get the description for this discount association. |
java.lang.Integer |
getId()
Gets this discount association's unique id |
QualificationDiscountId |
getQualDiscountId()
Gets the id of the discount for this discount association |
int |
getUseCount()
Gets the current use count for this discount association, that is the number of times the user in the association has used the discount in this association. |
com.beasys.commerce.ebusiness.customer.CustomerPk |
getUser()
Gets this discount association's Customer or more
specifically the CustomerPK |
int |
hashCode()
A unique code for this discount association |
boolean |
isGlobal()
Gets the value of the the global flag for the discount in this discount association |
java.lang.String |
toString()
Gets a String |
| Method Detail |
public java.lang.Integer getId()
public com.beasys.commerce.ebusiness.customer.CustomerPk getUser()
Customer or more
specifically the CustomerPKCustomerPKpublic QualificationDiscountId getQualDiscountId()
QualificationDiscountId
for this discount associationpublic boolean isGlobal()
public int getUseCount()
allowedUses
values specified by the discount
- Returns:
- the number of time the user has used the discount
- See Also:
QualificationDiscountDef.getAllowedUses()
public java.lang.String getDescription()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the DiscountAssociation to compare this one
againstDiscountAssociation is the
same as this onepublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
String representation of this discount
- Overrides:
toString in class java.lang.Object
- Returns:
- a
String representation of this discount
|
© 2001 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||