com.liferay.portlet.shopping.model
Class ShoppingCartWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.model.ShoppingCartWrapper
All Implemented Interfaces:
BaseModel<ShoppingCart>, ShoppingCart, ShoppingCartModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ShoppingCart>

public class ShoppingCartWrapper
extends java.lang.Object
implements ShoppingCart

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This class is a wrapper for ShoppingCart.

Author:
Brian Wing Shun Chan
See Also:
ShoppingCart, Serialized Form
Generated:

Constructor Summary
ShoppingCartWrapper(ShoppingCart shoppingCart)
           
 
Method Summary
 void addItemId(long itemId, java.lang.String fields)
           
 java.lang.Object clone()
           
 int compareTo(ShoppingCart shoppingCart)
           
 int getAltShipping()
           
 long getCartId()
           
 long getCompanyId()
           
 ShoppingCoupon getCoupon()
           
 java.lang.String getCouponCodes()
           
 java.util.Date getCreateDate()
           
 ExpandoBridge getExpandoBridge()
           
 long getGroupId()
           
 boolean getInsure()
           
 java.lang.String getItemIds()
           
 java.util.Map<ShoppingCartItem,java.lang.Integer> getItems()
           
 int getItemsSize()
           
 java.util.Date getModifiedDate()
           
 long getPrimaryKey()
           
 java.io.Serializable getPrimaryKeyObj()
           
 long getUserId()
           
 java.lang.String getUserName()
           
 java.lang.String getUserUuid()
           
 ShoppingCart getWrappedShoppingCart()
           
 int hashCode()
           
 boolean isCachedModel()
           
 boolean isEscapedModel()
           
 boolean isInsure()
           
 boolean isNew()
           
 void setAltShipping(int altShipping)
           
 void setCachedModel(boolean cachedModel)
           
 void setCartId(long cartId)
           
 void setCompanyId(long companyId)
           
 void setCouponCodes(java.lang.String couponCodes)
           
 void setCreateDate(java.util.Date createDate)
           
 void setEscapedModel(boolean escapedModel)
           
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
           
 void setGroupId(long groupId)
           
 void setInsure(boolean insure)
           
 void setItemIds(java.lang.String itemIds)
           
 void setModifiedDate(java.util.Date modifiedDate)
           
 boolean setNew(boolean n)
           
 void setPrimaryKey(long pk)
           
 void setUserId(long userId)
           
 void setUserName(java.lang.String userName)
           
 void setUserUuid(java.lang.String userUuid)
           
 ShoppingCart toEscapedModel()
           
 java.lang.String toString()
           
 java.lang.String toXmlString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShoppingCartWrapper

public ShoppingCartWrapper(ShoppingCart shoppingCart)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface ShoppingCartModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface ShoppingCartModel

getCartId

public long getCartId()
Specified by:
getCartId in interface ShoppingCartModel

setCartId

public void setCartId(long cartId)
Specified by:
setCartId in interface ShoppingCartModel

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface ShoppingCartModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface ShoppingCartModel

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface ShoppingCartModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface ShoppingCartModel

getUserId

public long getUserId()
Specified by:
getUserId in interface ShoppingCartModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface ShoppingCartModel

getUserUuid

public java.lang.String getUserUuid()
                             throws com.liferay.portal.kernel.exception.SystemException
Specified by:
getUserUuid in interface ShoppingCartModel
Throws:
com.liferay.portal.kernel.exception.SystemException

setUserUuid

public void setUserUuid(java.lang.String userUuid)
Specified by:
setUserUuid in interface ShoppingCartModel

getUserName

public java.lang.String getUserName()
Specified by:
getUserName in interface ShoppingCartModel

setUserName

public void setUserName(java.lang.String userName)
Specified by:
setUserName in interface ShoppingCartModel

getCreateDate

public java.util.Date getCreateDate()
Specified by:
getCreateDate in interface ShoppingCartModel

setCreateDate

public void setCreateDate(java.util.Date createDate)
Specified by:
setCreateDate in interface ShoppingCartModel

getModifiedDate

public java.util.Date getModifiedDate()
Specified by:
getModifiedDate in interface ShoppingCartModel

setModifiedDate

public void setModifiedDate(java.util.Date modifiedDate)
Specified by:
setModifiedDate in interface ShoppingCartModel

getItemIds

public java.lang.String getItemIds()
Specified by:
getItemIds in interface ShoppingCartModel

setItemIds

public void setItemIds(java.lang.String itemIds)
Specified by:
setItemIds in interface ShoppingCartModel

getCouponCodes

public java.lang.String getCouponCodes()
Specified by:
getCouponCodes in interface ShoppingCartModel

setCouponCodes

public void setCouponCodes(java.lang.String couponCodes)
Specified by:
setCouponCodes in interface ShoppingCartModel

getAltShipping

public int getAltShipping()
Specified by:
getAltShipping in interface ShoppingCartModel

setAltShipping

public void setAltShipping(int altShipping)
Specified by:
setAltShipping in interface ShoppingCartModel

getInsure

public boolean getInsure()
Specified by:
getInsure in interface ShoppingCartModel

isInsure

public boolean isInsure()
Specified by:
isInsure in interface ShoppingCartModel

setInsure

public void setInsure(boolean insure)
Specified by:
setInsure in interface ShoppingCartModel

toEscapedModel

public ShoppingCart toEscapedModel()
Specified by:
toEscapedModel in interface ShoppingCartModel

isNew

public boolean isNew()
Specified by:
isNew in interface BaseModel<ShoppingCart>
Specified by:
isNew in interface ShoppingCartModel

setNew

public boolean setNew(boolean n)
Specified by:
setNew in interface BaseModel<ShoppingCart>
Specified by:
setNew in interface ShoppingCartModel

isCachedModel

public boolean isCachedModel()
Specified by:
isCachedModel in interface BaseModel<ShoppingCart>
Specified by:
isCachedModel in interface ShoppingCartModel

setCachedModel

public void setCachedModel(boolean cachedModel)
Specified by:
setCachedModel in interface BaseModel<ShoppingCart>
Specified by:
setCachedModel in interface ShoppingCartModel

isEscapedModel

public boolean isEscapedModel()
Specified by:
isEscapedModel in interface BaseModel<ShoppingCart>
Specified by:
isEscapedModel in interface ShoppingCartModel

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Specified by:
setEscapedModel in interface BaseModel<ShoppingCart>
Specified by:
setEscapedModel in interface ShoppingCartModel

getPrimaryKeyObj

public java.io.Serializable getPrimaryKeyObj()
Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingCart>
Specified by:
getPrimaryKeyObj in interface ShoppingCartModel

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Specified by:
getExpandoBridge in interface BaseModel<ShoppingCart>
Specified by:
getExpandoBridge in interface ShoppingCartModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>
Specified by:
setExpandoBridgeAttributes in interface ShoppingCartModel

clone

public java.lang.Object clone()
Specified by:
clone in interface BaseModel<ShoppingCart>
Specified by:
clone in interface ShoppingCartModel
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(ShoppingCart shoppingCart)
Specified by:
compareTo in interface ShoppingCartModel
Specified by:
compareTo in interface java.lang.Comparable<ShoppingCart>

hashCode

public int hashCode()
Specified by:
hashCode in interface ShoppingCartModel
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Specified by:
toString in interface ShoppingCartModel
Overrides:
toString in class java.lang.Object

toXmlString

public java.lang.String toXmlString()
Specified by:
toXmlString in interface BaseModel<ShoppingCart>
Specified by:
toXmlString in interface ShoppingCartModel

addItemId

public void addItemId(long itemId,
                      java.lang.String fields)
Specified by:
addItemId in interface ShoppingCart

getCoupon

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

getItems

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

getItemsSize

public int getItemsSize()
Specified by:
getItemsSize in interface ShoppingCart

getWrappedShoppingCart

public ShoppingCart getWrappedShoppingCart()