com.bea.alcs.domain.shoppingcart.impl
Class ShoppingCartItemImpl

java.lang.Object
  extended by com.bea.alcs.domain.impl.AbstractEpDomainImpl
      extended by com.bea.alcs.domain.impl.AbstractPersistenceImpl
          extended by com.bea.alcs.domain.impl.AbstractValueObjectImpl
              extended by com.bea.alcs.domain.shoppingcart.impl.AbstractCartItemImpl
                  extended by com.bea.alcs.domain.shoppingcart.impl.ShoppingCartItemImpl
All Implemented Interfaces:
EpDomain, LineItem, Persistence, CartItem, ShoppingCartItem, ValueObject, java.io.Serializable

public class ShoppingCartItemImpl
extends AbstractCartItemImpl
implements ShoppingCartItem

A ShoppingCartItem represents a quantity of SKUs in a shopping cart.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Fields inherited from class com.bea.alcs.domain.shoppingcart.impl.AbstractCartItemImpl
TABLE_NAME
 
Fields inherited from class com.bea.alcs.domain.impl.AbstractPersistenceImpl
DECIMAL_PRECISION, DECIMAL_SCALE
 
Constructor Summary
ShoppingCartItemImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Return true if the given object is ShoppingCartItemImpl and is logically equal.
protected  java.lang.String getCartItemType()
          Must be implemented by subclasses to return their type.
 int hashCode()
          Return the hash code.
 boolean isTaxable()
          Shopping cart is tax aware.
 
Methods inherited from class com.bea.alcs.domain.shoppingcart.impl.AbstractCartItemImpl
addDependentCartItem, applyDiscount, clearDiscount, getAmount, getAmountMoney, getDefaultAssociationQuantity, getDependentCartItems, getDependentCartItemsInternal, getErrorMessage, getMinOrderQty, getParentCartItem, getProduct, getProductSku, getProductSkuPrice, getQuantity, getQuantityInternal, getShoppingCart, getTax, getType, getUidPk, hasDependentCartItem, hasDependentCartItems, hasSufficientInventory, isDependent, isExchangeCartItem, setDefaultAssociationQuantity, setDependentCartItems, setDependentCartItemsInternal, setErrorMessage, setExchangeCartItem, setParentCartItem, setProduct, setProductSku, setProductSkuPrice, setQuantity, setQuantityInternal, setShoppingCart, setTax, setType, setUidPk
 
Methods inherited from class com.bea.alcs.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, isPersistent
 
Methods inherited from class com.bea.alcs.domain.impl.AbstractEpDomainImpl
getBooleanHashCode, getElasticPath, getObjectHashCode, getUtility, setDefaultValues, setElasticPath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.bea.alcs.domain.shoppingcart.CartItem
addDependentCartItem, applyDiscount, clearDiscount, getAmount, getDefaultAssociationQuantity, getDependentCartItems, getErrorMessage, getMinOrderQty, getParentCartItem, getProduct, getProductSkuPrice, getShoppingCart, getType, hasDependentCartItem, hasDependentCartItems, hasSufficientInventory, isDependent, isExchangeCartItem, setDefaultAssociationQuantity, setDependentCartItems, setErrorMessage, setExchangeCartItem, setParentCartItem, setProduct, setProductSkuPrice, setShoppingCart, setType
 
Methods inherited from interface com.bea.alcs.domain.order.LineItem
getAmountMoney, getProductSku, getQuantity, getTax, setProductSku, setQuantity, setTax
 
Methods inherited from interface com.bea.alcs.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setUidPk
 
Methods inherited from interface com.bea.alcs.domain.EpDomain
getElasticPath, getUtility, setDefaultValues, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

ShoppingCartItemImpl

public ShoppingCartItemImpl()
Method Detail

getCartItemType

protected java.lang.String getCartItemType()
Must be implemented by subclasses to return their type. Make sure this matches the persistence layer subclass discriminator-value and the spring context bean id for this CartItem implementation.

Specified by:
getCartItemType in class AbstractCartItemImpl
Returns:
the type of the action subclass.

hashCode

public int hashCode()
Return the hash code.

Overrides:
hashCode in class AbstractCartItemImpl
Returns:
the hash code

equals

public boolean equals(java.lang.Object obj)
Return true if the given object is ShoppingCartItemImpl and is logically equal.

Overrides:
equals in class AbstractCartItemImpl
Parameters:
obj - the object to compare
Returns:
true if the given object is equal

isTaxable

public boolean isTaxable()
Shopping cart is tax aware.

Specified by:
isTaxable in interface LineItem
Returns:
true