org.broadleafcommerce.core.order.domain
Class FulfillmentGroupItemImpl

java.lang.Object
  extended by 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

Field Summary
protected  FulfillmentGroup fulfillmentGroup
           
protected  Long id
           
protected  OrderItem orderItem
           
protected  BigDecimal proratedOrderAdjustment
           
protected  int quantity
           
protected  BigDecimal taxableProratedOrderAdjustment
           
protected  List<TaxDetail> taxes
           
protected  BigDecimal totalItemAmount
           
protected  BigDecimal totalItemTaxableAmount
           
protected  BigDecimal totalTax
           
 
Constructor Summary
FulfillmentGroupItemImpl()
           
 
Method Summary
 void checkCloneable(FulfillmentGroupItem fulfillmentGroupItem)
           
 FulfillmentGroupItem clone()
           
protected  Money convertToMoney(BigDecimal amount)
           
 boolean equals(Object obj)
           
 FulfillmentGroup getFulfillmentGroup()
           
 boolean getHasProratedOrderAdjustments()
          Returns true if this item has pro-rated order adjustments.
 Long getId()
           
 OrderItem getOrderItem()
           
 Money getPrice()
           
 Money getProratedOrderAdjustmentAmount()
           
 int getQuantity()
           
 Money getRetailPrice()
           
 Money getSalePrice()
           
 FulfillmentGroupStatusType getStatus()
           
 List<TaxDetail> getTaxes()
          Gets a list of TaxDetail objects, which are taxes that apply directly to this item.
 Money getTotalItemAmount()
           
 Money getTotalItemTaxableAmount()
           
 Money getTotalTax()
          Gets the total tax for this item, which is the sum of all taxes for this item.
 int hashCode()
           
 void removeAssociations()
           
 void setFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
           
 void setId(Long id)
           
 void setOrderItem(OrderItem orderItem)
           
 void setProratedOrderAdjustmentAmount(Money proratedOrderAdjustment)
           
 void setQuantity(int quantity)
           
 void setStatus(FulfillmentGroupStatusType status)
           
 void setTaxes(List<TaxDetail> taxes)
          Sets the list of TaxDetail objects, which are taxes that apply directly to this item.
 void setTotalItemAmount(Money amount)
           
 void setTotalItemTaxableAmount(Money taxableAmount)
           
 void setTotalTax(Money totalTax)
          Sets the total tax for this item, which is the sum of all taxes for this item.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

totalItemAmount

protected BigDecimal totalItemAmount

totalItemTaxableAmount

protected BigDecimal totalItemTaxableAmount

taxableProratedOrderAdjustment

protected BigDecimal taxableProratedOrderAdjustment

proratedOrderAdjustment

protected BigDecimal proratedOrderAdjustment
Constructor Detail

FulfillmentGroupItemImpl

public FulfillmentGroupItemImpl()
Method Detail

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

convertToMoney

protected Money convertToMoney(BigDecimal amount)

getTotalItemAmount

public Money getTotalItemAmount()
Specified by:
getTotalItemAmount in interface FulfillmentGroupItem

setTotalItemAmount

public void setTotalItemAmount(Money amount)
Specified by:
setTotalItemAmount in interface FulfillmentGroupItem

getProratedOrderAdjustmentAmount

public Money getProratedOrderAdjustmentAmount()
Specified by:
getProratedOrderAdjustmentAmount in interface FulfillmentGroupItem

setProratedOrderAdjustmentAmount

public void setProratedOrderAdjustmentAmount(Money proratedOrderAdjustment)
Specified by:
setProratedOrderAdjustmentAmount in interface FulfillmentGroupItem

getTotalItemTaxableAmount

public Money getTotalItemTaxableAmount()
Specified by:
getTotalItemTaxableAmount in interface FulfillmentGroupItem

setTotalItemTaxableAmount

public void setTotalItemTaxableAmount(Money taxableAmount)
Specified by:
setTotalItemTaxableAmount in interface FulfillmentGroupItem

getStatus

public FulfillmentGroupStatusType getStatus()
Specified by:
getStatus in interface FulfillmentGroupItem

setStatus

public void setStatus(FulfillmentGroupStatusType 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

getHasProratedOrderAdjustments

public boolean getHasProratedOrderAdjustments()
Description copied from interface: FulfillmentGroupItem
Returns true if this item has pro-rated order adjustments.

Specified by:
getHasProratedOrderAdjustments in interface FulfillmentGroupItem
Returns:

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.