@ProviderType public class ShoppingCartWrapper extends java.lang.Object implements ShoppingCart, ModelWrapper<ShoppingCart>
This class is a wrapper for ShoppingCart.
ShoppingCart,
Serialized Form| Constructor and Description |
|---|
ShoppingCartWrapper(ShoppingCart shoppingCart) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItemId(long itemId,
java.lang.String fields) |
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
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.
|
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance.
|
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()
Returns the primary key of this model instance.
|
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() |
ShoppingCart |
getWrappedShoppingCart()
Deprecated.
As of 6.1.0, replaced by
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
boolean |
isInsure()
Returns
true if this shopping cart is insure. |
boolean |
isNew()
Returns
true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet
exist.
|
void |
resetOriginalValues()
Reset all original fields to current values.
|
void |
setAltShipping(int altShipping)
Sets the alt shipping of this shopping cart.
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache.
|
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(BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the
attributes stored in the service context.
|
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)
Sets whether this model instance does not yet exist in the database.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this shopping cart.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
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.
|
CacheModel<ShoppingCart> |
toCacheModel()
Returns a cache model object for this entity used by entity cache.
|
ShoppingCart |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it
with an
AutoEscapeBeanHandler. |
java.lang.String |
toString() |
ShoppingCart |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public ShoppingCartWrapper(ShoppingCart shoppingCart)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<ShoppingCart>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<ShoppingCart>public void addItemId(long itemId,
java.lang.String fields)
addItemId in interface ShoppingCartpublic java.lang.Object clone()
BaseModelclone in interface BaseModel<ShoppingCart>clone in interface ShoppingCartModelclone in class java.lang.Objectpublic int compareTo(ShoppingCart shoppingCart)
compareTo in interface ShoppingCartModelcompareTo in interface java.lang.Comparable<ShoppingCart>public int getAltShipping()
getAltShipping in interface ShoppingCartModelpublic long getCartId()
getCartId in interface ShoppingCartModelpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface ShoppingCartModelpublic ShoppingCoupon getCoupon() throws PortalException
getCoupon in interface ShoppingCartPortalExceptionpublic java.lang.String getCouponCodes()
getCouponCodes in interface ShoppingCartModelpublic java.util.Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface ShoppingCartModelpublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ShoppingCart>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShoppingCartModelpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface ShoppingCartModelpublic boolean getInsure()
getInsure in interface ShoppingCartModelpublic java.lang.String getItemIds()
getItemIds in interface ShoppingCartModelpublic java.util.Map<ShoppingCartItem,java.lang.Integer> getItems()
getItems in interface ShoppingCartpublic int getItemsSize()
getItemsSize in interface ShoppingCartpublic java.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface ShoppingCartModelpublic long getPrimaryKey()
getPrimaryKey in interface ShoppingCartModelpublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ShoppingCart>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShoppingCartModelpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface ShoppingCartModelpublic java.lang.String getUserName()
getUserName in interface AuditedModelgetUserName in interface ShoppingCartModelpublic java.lang.String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface ShoppingCartModelpublic int hashCode()
hashCode in interface ShoppingCartModelhashCode in class java.lang.Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ShoppingCart>isCachedModel in interface ShoppingCartModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ShoppingCart>isEscapedModel in interface ShoppingCartModeltrue if this model instance is escaped;
false otherwisepublic boolean isInsure()
true if this shopping cart is insure.isInsure in interface ShoppingCartModeltrue if this shopping cart is insure; false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<ShoppingCart>isNew in interface ShoppingCartModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setAltShipping(int altShipping)
setAltShipping in interface ShoppingCartModelaltShipping - the alt shipping of this shopping cartpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ShoppingCart>setCachedModel in interface ShoppingCartModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCartId(long cartId)
setCartId in interface ShoppingCartModelcartId - the cart ID of this shopping cartpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId 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 AuditedModelsetCreateDate in interface ShoppingCartModelcreateDate - the create date of this shopping cartpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public void setGroupId(long groupId)
setGroupId in interface 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 AuditedModelsetModifiedDate in interface ShoppingCartModelmodifiedDate - the modified date of this shopping cartpublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<ShoppingCart>setNew in interface ShoppingCartModeln - whether this model instance does not yet exist in the databasepublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShoppingCartModelprimaryKey - the primary key of this shopping cartpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ShoppingCart>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShoppingCartModelprimaryKeyObj - the primary key of this model instancepublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface ShoppingCartModeluserId - the user ID of this shopping cartpublic void setUserName(java.lang.String userName)
setUserName in interface AuditedModelsetUserName in interface ShoppingCartModeluserName - the user name of this shopping cartpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface ShoppingCartModeluserUuid - the user uuid of this shopping cartpublic CacheModel<ShoppingCart> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ShoppingCart>toCacheModel in interface ShoppingCartModelpublic ShoppingCart toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ShoppingCart>toEscapedModel in interface ShoppingCartModelAutoEscapeBeanHandlerpublic java.lang.String toString()
toString in interface ShoppingCartModeltoString in class java.lang.Objectpublic ShoppingCart toUnescapedModel()
toUnescapedModel in interface BaseModel<ShoppingCart>toUnescapedModel in interface ShoppingCartModelpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<ShoppingCart>toXmlString in interface ShoppingCartModelpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object@Deprecated public ShoppingCart getWrappedShoppingCart()
getWrappedModel()public ShoppingCart getWrappedModel()
getWrappedModel in interface ModelWrapper<ShoppingCart>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<ShoppingCart>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<ShoppingCart>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<ShoppingCart>