com.liferay.portlet.shopping.model.impl
Class ShoppingCartImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl
      extended by com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl
          extended by com.liferay.portlet.shopping.model.impl.ShoppingCartImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel, com.liferay.portlet.shopping.model.ShoppingCart, com.liferay.portlet.shopping.model.ShoppingCartModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class ShoppingCartImpl
extends ShoppingCartModelImpl
implements com.liferay.portlet.shopping.model.ShoppingCart

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl
CACHE_ENABLED, DATA_SOURCE, LOCK_EXPIRATION_TIME, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
 
Constructor Summary
ShoppingCartImpl()
           
 
Method Summary
 void addItemId(long itemId, java.lang.String fields)
           
 com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon()
           
 java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem,java.lang.Integer> getItems()
           
 int getItemsSize()
           
 
Methods inherited from class com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl
clone, compareTo, equals, getAltShipping, getCartId, getCompanyId, getCouponCodes, getCreateDate, getExpandoBridge, getGroupId, getInsure, getItemIds, getModifiedDate, getPrimaryKey, getPrimaryKeyObj, getUserId, getUserName, hashCode, isInsure, setAltShipping, setCartId, setCompanyId, setCouponCodes, setCreateDate, setGroupId, setInsure, setItemIds, setModifiedDate, setPrimaryKey, setUserId, setUserName, toEscapedModel, toModel, toModels
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isEscapedModel, isNew, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.shopping.model.ShoppingCartModel
getAltShipping, getCartId, getCompanyId, getCouponCodes, getCreateDate, getGroupId, getInsure, getItemIds, getModifiedDate, getPrimaryKey, getUserId, getUserName, isInsure, setAltShipping, setCartId, setCompanyId, setCouponCodes, setCreateDate, setGroupId, setInsure, setItemIds, setModifiedDate, setPrimaryKey, setUserId, setUserName, toEscapedModel
 
Methods inherited from interface com.liferay.portal.model.BaseModel
clone, getExpandoBridge, getPrimaryKeyObj, isEscapedModel, isNew, setEscapedModel, setNew
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

ShoppingCartImpl

public ShoppingCartImpl()
Method Detail

addItemId

public void addItemId(long itemId,
                      java.lang.String fields)
Specified by:
addItemId in interface com.liferay.portlet.shopping.model.ShoppingCart

getItems

public java.util.Map<com.liferay.portlet.shopping.model.ShoppingCartItem,java.lang.Integer> getItems()
                                                                                              throws com.liferay.portal.SystemException
Specified by:
getItems in interface com.liferay.portlet.shopping.model.ShoppingCart
Throws:
com.liferay.portal.SystemException

getItemsSize

public int getItemsSize()
Specified by:
getItemsSize in interface com.liferay.portlet.shopping.model.ShoppingCart

getCoupon

public com.liferay.portlet.shopping.model.ShoppingCoupon getCoupon()
                                                            throws com.liferay.portal.PortalException,
                                                                   com.liferay.portal.SystemException
Specified by:
getCoupon in interface com.liferay.portlet.shopping.model.ShoppingCart
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException