|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.shopping.model.ShoppingCartWrapper
public class ShoppingCartWrapper
This class is a wrapper for ShoppingCart.
ShoppingCart,
Serialized Form| Constructor Summary | |
|---|---|
ShoppingCartWrapper(ShoppingCart shoppingCart)
|
|
| Method Summary | |
|---|---|
void |
addItemId(long itemId,
String fields)
|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ShoppingCart shoppingCart)
|
int |
getAltShipping()
Gets the alt shipping of this shopping cart. |
long |
getCartId()
Gets the cart ID of this shopping cart. |
long |
getCompanyId()
Gets the company ID of this shopping cart. |
ShoppingCoupon |
getCoupon()
|
String |
getCouponCodes()
Gets the coupon codes of this shopping cart. |
Date |
getCreateDate()
Gets the create date of this shopping cart. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Gets the group ID of this shopping cart. |
boolean |
getInsure()
Gets the insure of this shopping cart. |
String |
getItemIds()
Gets the item IDs of this shopping cart. |
Map<ShoppingCartItem,Integer> |
getItems()
|
int |
getItemsSize()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Gets the modified date of this shopping cart. |
long |
getPrimaryKey()
Gets the primary key of this shopping cart. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getUserId()
Gets the user ID of this shopping cart. |
String |
getUserName()
Gets the user name of this shopping cart. |
String |
getUserUuid()
Gets the user uuid of this shopping cart. |
ShoppingCart |
getWrappedShoppingCart()
|
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isInsure()
Determines 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(String couponCodes)
Sets the coupon codes of this shopping cart. |
void |
setCreateDate(Date createDate)
Sets the create date of this shopping cart. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
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(String itemIds)
Sets the item IDs of this shopping cart. |
void |
setModifiedDate(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(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setUserId(long userId)
Sets the user ID of this shopping cart. |
void |
setUserName(String userName)
Sets the user name of this shopping cart. |
void |
setUserUuid(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. |
String |
toString()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShoppingCartWrapper(ShoppingCart shoppingCart)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface ShoppingCartModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShoppingCartModelprimaryKey - the primary key of this shopping cartpublic long getCartId()
getCartId in interface ShoppingCartModelpublic void setCartId(long cartId)
setCartId in interface ShoppingCartModelcartId - the cart ID of this shopping cartpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface ShoppingCartModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface ShoppingCartModelgroupId - the group ID of this shopping cartpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface ShoppingCartModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface ShoppingCartModelcompanyId - the company ID of this shopping cartpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface ShoppingCartModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface ShoppingCartModeluserId - the user ID of this shopping cart
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface ShoppingCartModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface ShoppingCartModeluserUuid - the user uuid of this shopping cartpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface ShoppingCartModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface ShoppingCartModeluserName - the user name of this shopping cartpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface ShoppingCartModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface ShoppingCartModelcreateDate - the create date of this shopping cartpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface ShoppingCartModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface ShoppingCartModelmodifiedDate - the modified date of this shopping cartpublic String getItemIds()
getItemIds in interface ShoppingCartModelpublic void setItemIds(String itemIds)
setItemIds in interface ShoppingCartModelitemIds - the item IDs of this shopping cartpublic String getCouponCodes()
getCouponCodes in interface ShoppingCartModelpublic void setCouponCodes(String couponCodes)
setCouponCodes in interface ShoppingCartModelcouponCodes - the coupon codes of this shopping cartpublic int getAltShipping()
getAltShipping in interface ShoppingCartModelpublic void setAltShipping(int altShipping)
setAltShipping in interface ShoppingCartModelaltShipping - the alt shipping of this shopping cartpublic boolean getInsure()
getInsure in interface ShoppingCartModelpublic boolean isInsure()
isInsure in interface ShoppingCartModeltrue if this shopping cart is insure; false otherwisepublic void setInsure(boolean insure)
setInsure in interface ShoppingCartModelinsure - the insure of this shopping cartpublic 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 setNew(boolean n)
BaseModel
setNew in interface BaseModel<ShoppingCart>setNew in interface ShoppingCartModeln - whether this model instance does not yet exist in the databasepublic 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 void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<ShoppingCart>setCachedModel in interface ShoppingCartModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic 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 otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<ShoppingCart>setEscapedModel in interface ShoppingCartModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ShoppingCart>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShoppingCartModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ShoppingCart>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShoppingCartModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ShoppingCart>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShoppingCartModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<ShoppingCart>clone in interface ShoppingCartModelclone in class Objectpublic int compareTo(ShoppingCart shoppingCart)
compareTo in interface ShoppingCartModelcompareTo in interface Comparable<ShoppingCart>public int hashCode()
hashCode in interface ShoppingCartModelhashCode in class Objectpublic CacheModel<ShoppingCart> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ShoppingCart>toCacheModel in interface ShoppingCartModelpublic ShoppingCart toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ShoppingCart>toEscapedModel in interface ShoppingCartModelAutoEscapeBeanHandlerpublic String toString()
toString in interface ShoppingCartModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ShoppingCart>toXmlString in interface ShoppingCartModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurred
public void addItemId(long itemId,
String fields)
addItemId in interface ShoppingCart
public ShoppingCoupon getCoupon()
throws PortalException,
SystemException
getCoupon in interface ShoppingCartPortalException
SystemException
public Map<ShoppingCartItem,Integer> getItems()
throws SystemException
getItems in interface ShoppingCartSystemExceptionpublic int getItemsSize()
getItemsSize in interface ShoppingCartpublic ShoppingCart getWrappedShoppingCart()
public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ShoppingCart>
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||