org.broadleafcommerce.core.order.domain
Class FulfillmentGroupItemImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.FulfillmentGroupItemImpl
- All Implemented Interfaces:
- Serializable, Cloneable, FulfillmentGroupItem
@Entity
public class FulfillmentGroupItemImpl
- extends Object
- implements FulfillmentGroupItem, Cloneable
- See Also:
- Serialized Form
id
protected Long id
fulfillmentGroup
protected FulfillmentGroup fulfillmentGroup
orderItem
protected OrderItem orderItem
quantity
protected int quantity
taxes
protected List<TaxDetail> taxes
totalTax
protected BigDecimal totalTax
FulfillmentGroupItemImpl
public FulfillmentGroupItemImpl()
getId
public Long getId()
- Specified by:
getId in interface FulfillmentGroupItem
setId
public void setId(Long id)
- Specified by:
setId in interface FulfillmentGroupItem
getFulfillmentGroup
public FulfillmentGroup getFulfillmentGroup()
- Specified by:
getFulfillmentGroup in interface FulfillmentGroupItem
setFulfillmentGroup
public void setFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
- Specified by:
setFulfillmentGroup in interface FulfillmentGroupItem
getOrderItem
public OrderItem getOrderItem()
- Specified by:
getOrderItem in interface FulfillmentGroupItem
setOrderItem
public void setOrderItem(OrderItem orderItem)
- Specified by:
setOrderItem in interface FulfillmentGroupItem
getQuantity
public int getQuantity()
- Specified by:
getQuantity in interface FulfillmentGroupItem
setQuantity
public void setQuantity(int quantity)
- Specified by:
setQuantity in interface FulfillmentGroupItem
getRetailPrice
public Money getRetailPrice()
- Specified by:
getRetailPrice in interface FulfillmentGroupItem
getSalePrice
public Money getSalePrice()
- Specified by:
getSalePrice in interface FulfillmentGroupItem
getPrice
public Money getPrice()
- Specified by:
getPrice in interface FulfillmentGroupItem
getStatus
public String getStatus()
- Specified by:
getStatus in interface FulfillmentGroupItem
setStatus
public void setStatus(String status)
- Specified by:
setStatus in interface FulfillmentGroupItem
removeAssociations
public void removeAssociations()
- Specified by:
removeAssociations in interface FulfillmentGroupItem
getTaxes
public List<TaxDetail> getTaxes()
- Description copied from interface:
FulfillmentGroupItem
- Gets a list of TaxDetail objects, which are taxes that apply directly to this item.
The amount in each TaxDetail takes into account the quantity of this item
- Specified by:
getTaxes in interface FulfillmentGroupItem
- Returns:
- a list of taxes that apply to this item
setTaxes
public void setTaxes(List<TaxDetail> taxes)
- Description copied from interface:
FulfillmentGroupItem
- Sets the list of TaxDetail objects, which are taxes that apply directly to this item.
The amount in each TaxDetail must take into account the quantity of this item
- Specified by:
setTaxes in interface FulfillmentGroupItem
- Parameters:
taxes - the list of taxes on this item
getTotalTax
public Money getTotalTax()
- Description copied from interface:
FulfillmentGroupItem
- Gets the total tax for this item, which is the sum of all taxes for this item.
This total is calculated in the TotalActivity stage of the pricing workflow.
- Specified by:
getTotalTax in interface FulfillmentGroupItem
- Returns:
- the total tax for this item
setTotalTax
public void setTotalTax(Money totalTax)
- Description copied from interface:
FulfillmentGroupItem
- Sets the total tax for this item, which is the sum of all taxes for this item.
This total should only be set during the TotalActivity stage of the pricing workflow.
- Specified by:
setTotalTax in interface FulfillmentGroupItem
- Parameters:
totalTax - the total tax for this item
checkCloneable
public void checkCloneable(FulfillmentGroupItem fulfillmentGroupItem)
throws CloneNotSupportedException,
SecurityException,
NoSuchMethodException
- Throws:
CloneNotSupportedException
SecurityException
NoSuchMethodException
clone
public FulfillmentGroupItem clone()
- Specified by:
clone in interface FulfillmentGroupItem- Overrides:
clone in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013. All Rights Reserved.