|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.model.ShoppingCartWrapper
public class ShoppingCartWrapper
This class is a wrapper for ShoppingCart
.
ShoppingCart
,
Serialized FormConstructor 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()
Gets 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()
|
Date |
getModifiedDate()
Gets the modified date of this shopping cart. |
long |
getPrimaryKey()
Gets the primary key of this shopping cart. |
Serializable |
getPrimaryKeyObj()
Gets 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()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isInsure()
Determines whether this shopping cart is insure. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
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 {$entity.humanName} 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 pk)
Sets the primary key of this shopping cart |
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. |
ShoppingCart |
toEscapedModel()
Gets a copy of this shopping cart as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
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()
ShoppingCartModel
getPrimaryKey
in interface ShoppingCartModel
public void setPrimaryKey(long pk)
ShoppingCartModel
setPrimaryKey
in interface ShoppingCartModel
pk
- the primary key of this shopping cartpublic long getCartId()
ShoppingCartModel
getCartId
in interface ShoppingCartModel
public void setCartId(long cartId)
ShoppingCartModel
setCartId
in interface ShoppingCartModel
cartId
- the cart id of this shopping cartpublic long getGroupId()
ShoppingCartModel
getGroupId
in interface ShoppingCartModel
public void setGroupId(long groupId)
ShoppingCartModel
setGroupId
in interface ShoppingCartModel
groupId
- the group id of this shopping cartpublic long getCompanyId()
ShoppingCartModel
getCompanyId
in interface ShoppingCartModel
public void setCompanyId(long companyId)
ShoppingCartModel
setCompanyId
in interface ShoppingCartModel
companyId
- the company id of this shopping cartpublic long getUserId()
ShoppingCartModel
getUserId
in interface ShoppingCartModel
public void setUserId(long userId)
ShoppingCartModel
setUserId
in interface ShoppingCartModel
userId
- the user id of this shopping cartpublic String getUserUuid() throws SystemException
ShoppingCartModel
getUserUuid
in interface ShoppingCartModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
ShoppingCartModel
setUserUuid
in interface ShoppingCartModel
userUuid
- the user uuid of this shopping cartpublic String getUserName()
ShoppingCartModel
getUserName
in interface ShoppingCartModel
public void setUserName(String userName)
ShoppingCartModel
setUserName
in interface ShoppingCartModel
userName
- the user name of this shopping cartpublic Date getCreateDate()
ShoppingCartModel
getCreateDate
in interface ShoppingCartModel
public void setCreateDate(Date createDate)
ShoppingCartModel
setCreateDate
in interface ShoppingCartModel
createDate
- the create date of this shopping cartpublic Date getModifiedDate()
ShoppingCartModel
getModifiedDate
in interface ShoppingCartModel
public void setModifiedDate(Date modifiedDate)
ShoppingCartModel
setModifiedDate
in interface ShoppingCartModel
modifiedDate
- the modified date of this shopping cartpublic String getItemIds()
ShoppingCartModel
getItemIds
in interface ShoppingCartModel
public void setItemIds(String itemIds)
ShoppingCartModel
setItemIds
in interface ShoppingCartModel
itemIds
- the item ids of this shopping cartpublic String getCouponCodes()
ShoppingCartModel
getCouponCodes
in interface ShoppingCartModel
public void setCouponCodes(String couponCodes)
ShoppingCartModel
setCouponCodes
in interface ShoppingCartModel
couponCodes
- the coupon codes of this shopping cartpublic int getAltShipping()
ShoppingCartModel
getAltShipping
in interface ShoppingCartModel
public void setAltShipping(int altShipping)
ShoppingCartModel
setAltShipping
in interface ShoppingCartModel
altShipping
- the alt shipping of this shopping cartpublic boolean getInsure()
ShoppingCartModel
getInsure
in interface ShoppingCartModel
public boolean isInsure()
ShoppingCartModel
isInsure
in interface ShoppingCartModel
public void setInsure(boolean insure)
ShoppingCartModel
setInsure
in interface ShoppingCartModel
insure
- the insure of this shopping cartpublic ShoppingCart toEscapedModel()
ShoppingCartModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface ShoppingCartModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<ShoppingCart>
isNew
in interface ShoppingCartModel
true
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 ShoppingCartModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<ShoppingCart>
isCachedModel
in interface ShoppingCartModel
true
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 ShoppingCartModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<ShoppingCart>
isEscapedModel
in interface ShoppingCartModel
true
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 ShoppingCartModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingCart>
getPrimaryKeyObj
in interface ShoppingCartModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingCart>
getExpandoBridge
in interface ShoppingCartModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingCart>
setExpandoBridgeAttributes
in interface ShoppingCartModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ShoppingCart>
clone
in interface ShoppingCartModel
clone
in class Object
public int compareTo(ShoppingCart shoppingCart)
compareTo
in interface ShoppingCartModel
compareTo
in interface Comparable<ShoppingCart>
public int hashCode()
hashCode
in interface ShoppingCartModel
hashCode
in class Object
public String toString()
toString
in interface ShoppingCartModel
toString
in class Object
public 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 ShoppingCart
PortalException
SystemException
public Map<ShoppingCartItem,Integer> getItems() throws SystemException
getItems
in interface ShoppingCart
SystemException
public int getItemsSize()
getItemsSize
in interface ShoppingCart
public ShoppingCart getWrappedShoppingCart()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |