@ProviderType public class ShoppingCartWrapper extends java.lang.Object implements ShoppingCart, com.liferay.portal.kernel.model.ModelWrapper<ShoppingCart>
This class is a wrapper for ShoppingCart.
ShoppingCart,
Serialized FormCART_ID_ACCESSOR| Constructor and Description |
|---|
ShoppingCartWrapper(ShoppingCart shoppingCart) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemId(long itemId,
java.lang.String fields) |
java.lang.Object |
clone() |
int |
compareTo(ShoppingCart shoppingCart) |
boolean |
equals(java.lang.Object obj) |
int |
getAltShipping()
Returns the alt shipping of this shopping cart.
|
long |
getCartId()
Returns the cart ID of this shopping cart.
|
long |
getCompanyId()
Returns the company ID of this shopping cart.
|
ShoppingCoupon |
getCoupon() |
java.lang.String |
getCouponCodes()
Returns the coupon codes of this shopping cart.
|
java.util.Date |
getCreateDate()
Returns the create date of this shopping cart.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
long |
getGroupId()
Returns the group ID of this shopping cart.
|
boolean |
getInsure()
Returns the insure of this shopping cart.
|
java.lang.String |
getItemIds()
Returns the item IDs of this shopping cart.
|
java.util.Map<ShoppingCartItem,java.lang.Integer> |
getItems() |
int |
getItemsSize() |
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this shopping cart.
|
long |
getPrimaryKey()
Returns the primary key of this shopping cart.
|
java.io.Serializable |
getPrimaryKeyObj() |
long |
getUserId()
Returns the user ID of this shopping cart.
|
java.lang.String |
getUserName()
Returns the user name of this shopping cart.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this shopping cart.
|
ShoppingCart |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel() |
boolean |
isEntityCacheEnabled() |
boolean |
isEscapedModel() |
boolean |
isFinderCacheEnabled() |
boolean |
isInsure()
Returns
true if this shopping cart is insure. |
boolean |
isNew() |
void |
persist() |
void |
resetOriginalValues() |
void |
setAltShipping(int altShipping)
Sets the alt shipping of this shopping cart.
|
void |
setCachedModel(boolean cachedModel) |
void |
setCartId(long cartId)
Sets the cart ID of this shopping cart.
|
void |
setCompanyId(long companyId)
Sets the company ID of this shopping cart.
|
void |
setCouponCodes(java.lang.String couponCodes)
Sets the coupon codes of this shopping cart.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this shopping cart.
|
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
setGroupId(long groupId)
Sets the group ID of this shopping cart.
|
void |
setInsure(boolean insure)
Sets whether this shopping cart is insure.
|
void |
setItemIds(java.lang.String itemIds)
Sets the item IDs of this shopping cart.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this shopping cart.
|
void |
setNew(boolean n) |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this shopping cart.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
void |
setUserId(long userId)
Sets the user ID of this shopping cart.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this shopping cart.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this shopping cart.
|
com.liferay.portal.kernel.model.CacheModel<ShoppingCart> |
toCacheModel() |
ShoppingCart |
toEscapedModel() |
java.lang.String |
toString() |
ShoppingCart |
toUnescapedModel() |
java.lang.String |
toXmlString() |
public ShoppingCartWrapper(ShoppingCart shoppingCart)
public java.lang.Class<?> getModelClass()
getModelClass in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface com.liferay.portal.kernel.model.ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>public ShoppingCart toEscapedModel()
toEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>toEscapedModel in interface ShoppingCartModelpublic ShoppingCart toUnescapedModel()
toUnescapedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>toUnescapedModel in interface ShoppingCartModelpublic ShoppingCoupon getCoupon() throws com.liferay.portal.kernel.exception.PortalException
getCoupon in interface ShoppingCartcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean getInsure()
getInsure in interface ShoppingCartModelpublic boolean isCachedModel()
isCachedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>isCachedModel in interface ShoppingCartModelpublic boolean isEscapedModel()
isEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>isEscapedModel in interface ShoppingCartModelpublic boolean isInsure()
true if this shopping cart is insure.isInsure in interface ShoppingCartModeltrue if this shopping cart is insure; false otherwisepublic boolean isNew()
isNew in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>isNew in interface ShoppingCartModelpublic com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModelgetExpandoBridge in interface ShoppingCartModelpublic com.liferay.portal.kernel.model.CacheModel<ShoppingCart> toCacheModel()
toCacheModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>toCacheModel in interface ShoppingCartModelpublic int compareTo(ShoppingCart shoppingCart)
compareTo in interface ShoppingCartModelcompareTo in interface java.lang.Comparable<ShoppingCart>public int getAltShipping()
getAltShipping in interface ShoppingCartModelpublic int getItemsSize()
getItemsSize in interface ShoppingCartpublic int hashCode()
hashCode in interface ShoppingCartModelhashCode in class java.lang.Objectpublic java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelgetPrimaryKeyObj in interface ShoppingCartModelpublic java.lang.Object clone()
clone in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>clone in interface ShoppingCartModelclone in class java.lang.Objectpublic java.lang.String getCouponCodes()
getCouponCodes in interface ShoppingCartModelpublic java.lang.String getItemIds()
getItemIds in interface ShoppingCartModelpublic java.lang.String getUserName()
getUserName in interface com.liferay.portal.kernel.model.AuditedModelgetUserName in interface ShoppingCartModelpublic java.lang.String getUserUuid()
getUserUuid in interface com.liferay.portal.kernel.model.AuditedModelgetUserUuid in interface ShoppingCartModelpublic java.lang.String toString()
toString in interface ShoppingCartModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
toXmlString in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>toXmlString in interface ShoppingCartModelpublic java.util.Date getCreateDate()
getCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface ShoppingCartModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface ShoppingCartModelpublic java.util.Map<ShoppingCartItem,java.lang.Integer> getItems()
getItems in interface ShoppingCartpublic long getCartId()
getCartId in interface ShoppingCartModelpublic long getCompanyId()
getCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface ShoppingCartModelpublic long getGroupId()
getGroupId in interface com.liferay.portal.kernel.model.GroupedModelgetGroupId in interface ShoppingCartModelpublic long getPrimaryKey()
getPrimaryKey in interface ShoppingCartModelpublic long getUserId()
getUserId in interface com.liferay.portal.kernel.model.AuditedModelgetUserId in interface ShoppingCartModelpublic void addItemId(long itemId,
java.lang.String fields)
addItemId in interface ShoppingCartpublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setAltShipping(int altShipping)
setAltShipping in interface ShoppingCartModelaltShipping - the alt shipping of this shopping cartpublic void setCachedModel(boolean cachedModel)
setCachedModel in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>setCachedModel in interface ShoppingCartModelpublic void setCartId(long cartId)
setCartId in interface ShoppingCartModelcartId - the cart ID of this shopping cartpublic void setCompanyId(long companyId)
setCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelsetCompanyId in interface ShoppingCartModelcompanyId - the company ID of this shopping cartpublic void setCouponCodes(java.lang.String couponCodes)
setCouponCodes in interface ShoppingCartModelcouponCodes - the coupon codes of this shopping cartpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface ShoppingCartModelcreateDate - the create date of this shopping cartpublic void setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelpublic void setGroupId(long groupId)
setGroupId in interface com.liferay.portal.kernel.model.GroupedModelsetGroupId in interface ShoppingCartModelgroupId - the group ID of this shopping cartpublic void setInsure(boolean insure)
setInsure in interface ShoppingCartModelinsure - the insure of this shopping cartpublic void setItemIds(java.lang.String itemIds)
setItemIds in interface ShoppingCartModelitemIds - the item IDs of this shopping cartpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface ShoppingCartModelmodifiedDate - the modified date of this shopping cartpublic void setNew(boolean n)
setNew in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>setNew in interface ShoppingCartModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShoppingCartModelprimaryKey - the primary key of this shopping cartpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelsetPrimaryKeyObj in interface ShoppingCartModelpublic void setUserId(long userId)
setUserId in interface com.liferay.portal.kernel.model.AuditedModelsetUserId in interface ShoppingCartModeluserId - the user ID of this shopping cartpublic void setUserName(java.lang.String userName)
setUserName in interface com.liferay.portal.kernel.model.AuditedModelsetUserName in interface ShoppingCartModeluserName - the user name of this shopping cartpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface com.liferay.portal.kernel.model.AuditedModelsetUserUuid in interface ShoppingCartModeluserUuid - the user uuid of this shopping cartpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ShoppingCart getWrappedModel()
getWrappedModel in interface com.liferay.portal.kernel.model.ModelWrapper<ShoppingCart>public boolean isEntityCacheEnabled()
isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>public boolean isFinderCacheEnabled()
isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>public void resetOriginalValues()
resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<ShoppingCart>