org.broadleafcommerce.offer.domain
Class CandidateItemOfferImpl

java.lang.Object
  extended by org.broadleafcommerce.offer.domain.CandidateItemOfferImpl
All Implemented Interfaces:
java.io.Serializable, CandidateItemOffer

public class CandidateItemOfferImpl
extends java.lang.Object
implements CandidateItemOffer

See Also:
Serialized Form

Field Summary
protected  java.lang.Long id
           
protected  Offer offer
           
protected  OrderItem orderItem
           
static long serialVersionUID
           
 
Constructor Summary
CandidateItemOfferImpl()
           
 
Method Summary
protected  void computeDiscountedPriceAndAmount()
           
 boolean equals(java.lang.Object obj)
           
 Money getDiscountAmount()
           
 Money getDiscountedPrice()
           
 java.lang.Long getId()
           
 Offer getOffer()
           
 OrderItem getOrderItem()
           
 int getPriority()
           
 int hashCode()
           
 void setId(java.lang.Long id)
           
 void setOffer(Offer offer)
           
 void setOrderItem(OrderItem orderItem)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

id

protected java.lang.Long id

orderItem

protected OrderItem orderItem

offer

protected Offer offer
Constructor Detail

CandidateItemOfferImpl

public CandidateItemOfferImpl()
Method Detail

getId

public java.lang.Long getId()
Specified by:
getId in interface CandidateItemOffer

setId

public void setId(java.lang.Long id)
Specified by:
setId in interface CandidateItemOffer

getOrderItem

public OrderItem getOrderItem()
Specified by:
getOrderItem in interface CandidateItemOffer

setOrderItem

public void setOrderItem(OrderItem orderItem)
Specified by:
setOrderItem in interface CandidateItemOffer

setOffer

public void setOffer(Offer offer)
Specified by:
setOffer in interface CandidateItemOffer

getDiscountedPrice

public Money getDiscountedPrice()
Specified by:
getDiscountedPrice in interface CandidateItemOffer

getDiscountAmount

public Money getDiscountAmount()
Specified by:
getDiscountAmount in interface CandidateItemOffer

getPriority

public int getPriority()
Specified by:
getPriority in interface CandidateItemOffer

getOffer

public Offer getOffer()
Specified by:
getOffer in interface CandidateItemOffer

computeDiscountedPriceAndAmount

protected void computeDiscountedPriceAndAmount()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010. All Rights Reserved.