com.elasticpath.domain.order.impl
Class OrderTaxValueImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractTransientImpl
          extended by com.elasticpath.domain.order.impl.OrderTaxValueImpl
All Implemented Interfaces:
EpDomain, OrderTaxValue, Transient, java.io.Serializable

public class OrderTaxValueImpl
extends AbstractTransientImpl
implements OrderTaxValue

Represents order tax information.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
OrderTaxValueImpl()
           
 
Method Summary
 boolean equals(java.lang.Object compareAgainst)
          Had to override the equals to make sure that hibernate wouldn't insert and delete these value objects upon initialization.
 java.lang.String getTaxCategoryDisplayName()
          Get the taxCategory display name in order locale.
 java.lang.String getTaxCategoryName()
          Get the taxCategory name.
 java.math.BigDecimal getTaxValue()
          Get the tax value.
 Money getTaxValueMoney(java.util.Currency orderCurrency)
          Return the taxValue as Money object, given the order locale.
 int hashCode()
          Had to override the equals to make sure that hibernate wouldn't insert and delete these value objects upon initialization.
 void setTaxCategoryDisplayName(java.lang.String taxCategoryDisplayName)
          Set the taxCategory display name in order locale.
 void setTaxCategoryName(java.lang.String taxCategoryName)
          Set the taxCategory name.
 void setTaxValue(java.math.BigDecimal taxValue)
          Set the tax value.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

OrderTaxValueImpl

public OrderTaxValueImpl()
Method Detail

equals

public boolean equals(java.lang.Object compareAgainst)
Had to override the equals to make sure that hibernate wouldn't insert and delete these value objects upon initialization.

Overrides:
equals in class java.lang.Object
Parameters:
compareAgainst - object to compare.
Returns:
boolean are the objects equals.

getTaxCategoryDisplayName

public java.lang.String getTaxCategoryDisplayName()
Get the taxCategory display name in order locale.

Specified by:
getTaxCategoryDisplayName in interface OrderTaxValue
Returns:
the taxCategory display name in order locale.

getTaxCategoryName

public java.lang.String getTaxCategoryName()
Get the taxCategory name.

Specified by:
getTaxCategoryName in interface OrderTaxValue
Returns:
the taxCategory name.

getTaxValue

public java.math.BigDecimal getTaxValue()
Get the tax value.

Specified by:
getTaxValue in interface OrderTaxValue
Returns:
the tax value.

getTaxValueMoney

public Money getTaxValueMoney(java.util.Currency orderCurrency)
Return the taxValue as Money object, given the order locale.

Specified by:
getTaxValueMoney in interface OrderTaxValue
Parameters:
orderCurrency - - the currency the order is placed in.
Returns:
the taxValue as Money object.

hashCode

public int hashCode()
Had to override the equals to make sure that hibernate wouldn't insert and delete these value objects upon initialization.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code.

setTaxCategoryDisplayName

public void setTaxCategoryDisplayName(java.lang.String taxCategoryDisplayName)
Set the taxCategory display name in order locale.

Specified by:
setTaxCategoryDisplayName in interface OrderTaxValue
Parameters:
taxCategoryDisplayName - - taxCategory display name in order locale.

setTaxCategoryName

public void setTaxCategoryName(java.lang.String taxCategoryName)
Set the taxCategory name.

Specified by:
setTaxCategoryName in interface OrderTaxValue
Parameters:
taxCategoryName - the taxCategory name.

setTaxValue

public void setTaxValue(java.math.BigDecimal taxValue)
Set the tax value.

Specified by:
setTaxValue in interface OrderTaxValue
Parameters:
taxValue - the tax value.