|
Liferay 6.0.3 | |||||||||
| 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()
|
long |
getCartId()
|
long |
getCompanyId()
|
ShoppingCoupon |
getCoupon()
|
String |
getCouponCodes()
|
Date |
getCreateDate()
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getGroupId()
|
boolean |
getInsure()
|
String |
getItemIds()
|
Map<ShoppingCartItem,Integer> |
getItems()
|
int |
getItemsSize()
|
Date |
getModifiedDate()
|
long |
getPrimaryKey()
|
Serializable |
getPrimaryKeyObj()
Gets the primary key for this model instance. |
long |
getUserId()
|
String |
getUserName()
|
String |
getUserUuid()
|
ShoppingCart |
getWrappedShoppingCart()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance has been wrapped with an HTML auto escape handler. |
boolean |
isInsure()
|
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setAltShipping(int altShipping)
|
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCartId(long cartId)
|
void |
setCompanyId(long companyId)
|
void |
setCouponCodes(String couponCodes)
|
void |
setCreateDate(Date createDate)
|
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance has been wrapped with an HTML auto escape handler. |
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)
|
void |
setInsure(boolean insure)
|
void |
setItemIds(String itemIds)
|
void |
setModifiedDate(Date modifiedDate)
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
|
void |
setUserId(long userId)
|
void |
setUserName(String userName)
|
void |
setUserUuid(String userUuid)
|
ShoppingCart |
toEscapedModel()
|
String |
toString()
|
String |
toXmlString()
Gets 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 long getPrimaryKey()
getPrimaryKey in interface ShoppingCartModelpublic void setPrimaryKey(long pk)
setPrimaryKey in interface ShoppingCartModelpublic long getCartId()
getCartId in interface ShoppingCartModelpublic void setCartId(long cartId)
setCartId in interface ShoppingCartModelpublic long getGroupId()
getGroupId in interface ShoppingCartModelpublic void setGroupId(long groupId)
setGroupId in interface ShoppingCartModelpublic long getCompanyId()
getCompanyId in interface ShoppingCartModelpublic void setCompanyId(long companyId)
setCompanyId in interface ShoppingCartModelpublic long getUserId()
getUserId in interface ShoppingCartModelpublic void setUserId(long userId)
setUserId in interface ShoppingCartModel
public String getUserUuid()
throws SystemException
getUserUuid in interface ShoppingCartModelSystemExceptionpublic void setUserUuid(String userUuid)
setUserUuid in interface ShoppingCartModelpublic String getUserName()
getUserName in interface ShoppingCartModelpublic void setUserName(String userName)
setUserName in interface ShoppingCartModelpublic Date getCreateDate()
getCreateDate in interface ShoppingCartModelpublic void setCreateDate(Date createDate)
setCreateDate in interface ShoppingCartModelpublic Date getModifiedDate()
getModifiedDate in interface ShoppingCartModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface ShoppingCartModelpublic String getItemIds()
getItemIds in interface ShoppingCartModelpublic void setItemIds(String itemIds)
setItemIds in interface ShoppingCartModelpublic String getCouponCodes()
getCouponCodes in interface ShoppingCartModelpublic void setCouponCodes(String couponCodes)
setCouponCodes in interface ShoppingCartModelpublic int getAltShipping()
getAltShipping in interface ShoppingCartModelpublic void setAltShipping(int altShipping)
setAltShipping in interface ShoppingCartModelpublic boolean getInsure()
getInsure in interface ShoppingCartModelpublic boolean isInsure()
isInsure in interface ShoppingCartModelpublic void setInsure(boolean insure)
setInsure in interface ShoppingCartModelpublic ShoppingCart toEscapedModel()
toEscapedModel in interface ShoppingCartModelpublic boolean isNew()
BaseModel
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()
BaseModel
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()
BaseModel
isEscapedModel in interface BaseModel<ShoppingCart>isEscapedModel in interface ShoppingCartModeltrue if this model instance has been wrapped with an
HTML auto escape handler; false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be wrapped 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 has been wrapped with an
HTML auto escape handlerAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ShoppingCart>getPrimaryKeyObj in interface ShoppingCartModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ShoppingCart>getExpandoBridge in interface ShoppingCartModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>setExpandoBridgeAttributes in interface ShoppingCartModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.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 String toString()
toString in interface ShoppingCartModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ShoppingCart>toXmlString in interface ShoppingCartModel
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()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||