org.broadleafcommerce.core.offer.domain
Class CandidateItemOfferImpl

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

@Entity
public class CandidateItemOfferImpl
extends java.lang.Object
implements CandidateItemOffer, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
protected  java.lang.Long id
           
static org.apache.commons.logging.Log LOG
           
protected  Offer offer
           
protected  OrderItem orderItem
           
static long serialVersionUID
           
 
Constructor Summary
CandidateItemOfferImpl()
           
 
Method Summary
 void checkCloneable(CandidateItemOffer itemOffer)
           
 CandidateItemOffer clone()
           
 boolean equals(java.lang.Object obj)
           
 Money getDiscountedPrice()
           
 java.lang.Long getId()
           
 Offer getOffer()
           
 OrderItem getOrderItem()
           
 int getPriority()
           
 int hashCode()
           
 void setDiscountedPrice(Money discountedPrice)
           
 void setId(java.lang.Long id)
           
 void setOffer(Offer offer)
           
 void setOrderItem(OrderItem orderItem)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

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

getPriority

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

getOffer

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

getDiscountedPrice

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

setDiscountedPrice

public void setDiscountedPrice(Money discountedPrice)
Specified by:
setDiscountedPrice in interface CandidateItemOffer

checkCloneable

public void checkCloneable(CandidateItemOffer itemOffer)
                    throws java.lang.CloneNotSupportedException,
                           java.lang.SecurityException,
                           java.lang.NoSuchMethodException
Throws:
java.lang.CloneNotSupportedException
java.lang.SecurityException
java.lang.NoSuchMethodException

clone

public CandidateItemOffer clone()
Specified by:
clone in interface CandidateItemOffer
Overrides:
clone in class java.lang.Object

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 © 2012. All Rights Reserved.