Liferay 6.0.5

com.liferay.portlet.shopping.model
Class ShoppingCartWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.model.ShoppingCartWrapper
All Implemented Interfaces:
BaseModel<ShoppingCart>, ShoppingCart, ShoppingCartModel, Serializable, Cloneable, Comparable<ShoppingCart>

public class ShoppingCartWrapper
extends Object
implements ShoppingCart

This class is a wrapper for ShoppingCart.

See Also:
ShoppingCart, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

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()
          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

ShoppingCartWrapper

public ShoppingCartWrapper(ShoppingCart shoppingCart)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ShoppingCartModel
Gets the primary key of this shopping cart.

Specified by:
getPrimaryKey in interface ShoppingCartModel
Returns:
the primary key of this shopping cart

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: ShoppingCartModel
Sets the primary key of this shopping cart

Specified by:
setPrimaryKey in interface ShoppingCartModel
Parameters:
pk - the primary key of this shopping cart

getCartId

public long getCartId()
Description copied from interface: ShoppingCartModel
Gets the cart id of this shopping cart.

Specified by:
getCartId in interface ShoppingCartModel
Returns:
the cart id of this shopping cart

setCartId

public void setCartId(long cartId)
Description copied from interface: ShoppingCartModel
Sets the cart id of this shopping cart.

Specified by:
setCartId in interface ShoppingCartModel
Parameters:
cartId - the cart id of this shopping cart

getGroupId

public long getGroupId()
Description copied from interface: ShoppingCartModel
Gets the group id of this shopping cart.

Specified by:
getGroupId in interface ShoppingCartModel
Returns:
the group id of this shopping cart

setGroupId

public void setGroupId(long groupId)
Description copied from interface: ShoppingCartModel
Sets the group id of this shopping cart.

Specified by:
setGroupId in interface ShoppingCartModel
Parameters:
groupId - the group id of this shopping cart

getCompanyId

public long getCompanyId()
Description copied from interface: ShoppingCartModel
Gets the company id of this shopping cart.

Specified by:
getCompanyId in interface ShoppingCartModel
Returns:
the company id of this shopping cart

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: ShoppingCartModel
Sets the company id of this shopping cart.

Specified by:
setCompanyId in interface ShoppingCartModel
Parameters:
companyId - the company id of this shopping cart

getUserId

public long getUserId()
Description copied from interface: ShoppingCartModel
Gets the user id of this shopping cart.

Specified by:
getUserId in interface ShoppingCartModel
Returns:
the user id of this shopping cart

setUserId

public void setUserId(long userId)
Description copied from interface: ShoppingCartModel
Sets the user id of this shopping cart.

Specified by:
setUserId in interface ShoppingCartModel
Parameters:
userId - the user id of this shopping cart

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: ShoppingCartModel
Gets the user uuid of this shopping cart.

Specified by:
getUserUuid in interface ShoppingCartModel
Returns:
the user uuid of this shopping cart
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: ShoppingCartModel
Sets the user uuid of this shopping cart.

Specified by:
setUserUuid in interface ShoppingCartModel
Parameters:
userUuid - the user uuid of this shopping cart

getUserName

public String getUserName()
Description copied from interface: ShoppingCartModel
Gets the user name of this shopping cart.

Specified by:
getUserName in interface ShoppingCartModel
Returns:
the user name of this shopping cart

setUserName

public void setUserName(String userName)
Description copied from interface: ShoppingCartModel
Sets the user name of this shopping cart.

Specified by:
setUserName in interface ShoppingCartModel
Parameters:
userName - the user name of this shopping cart

getCreateDate

public Date getCreateDate()
Description copied from interface: ShoppingCartModel
Gets the create date of this shopping cart.

Specified by:
getCreateDate in interface ShoppingCartModel
Returns:
the create date of this shopping cart

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: ShoppingCartModel
Sets the create date of this shopping cart.

Specified by:
setCreateDate in interface ShoppingCartModel
Parameters:
createDate - the create date of this shopping cart

getModifiedDate

public Date getModifiedDate()
Description copied from interface: ShoppingCartModel
Gets the modified date of this shopping cart.

Specified by:
getModifiedDate in interface ShoppingCartModel
Returns:
the modified date of this shopping cart

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: ShoppingCartModel
Sets the modified date of this shopping cart.

Specified by:
setModifiedDate in interface ShoppingCartModel
Parameters:
modifiedDate - the modified date of this shopping cart

getItemIds

public String getItemIds()
Description copied from interface: ShoppingCartModel
Gets the item ids of this shopping cart.

Specified by:
getItemIds in interface ShoppingCartModel
Returns:
the item ids of this shopping cart

setItemIds

public void setItemIds(String itemIds)
Description copied from interface: ShoppingCartModel
Sets the item ids of this shopping cart.

Specified by:
setItemIds in interface ShoppingCartModel
Parameters:
itemIds - the item ids of this shopping cart

getCouponCodes

public String getCouponCodes()
Description copied from interface: ShoppingCartModel
Gets the coupon codes of this shopping cart.

Specified by:
getCouponCodes in interface ShoppingCartModel
Returns:
the coupon codes of this shopping cart

setCouponCodes

public void setCouponCodes(String couponCodes)
Description copied from interface: ShoppingCartModel
Sets the coupon codes of this shopping cart.

Specified by:
setCouponCodes in interface ShoppingCartModel
Parameters:
couponCodes - the coupon codes of this shopping cart

getAltShipping

public int getAltShipping()
Description copied from interface: ShoppingCartModel
Gets the alt shipping of this shopping cart.

Specified by:
getAltShipping in interface ShoppingCartModel
Returns:
the alt shipping of this shopping cart

setAltShipping

public void setAltShipping(int altShipping)
Description copied from interface: ShoppingCartModel
Sets the alt shipping of this shopping cart.

Specified by:
setAltShipping in interface ShoppingCartModel
Parameters:
altShipping - the alt shipping of this shopping cart

getInsure

public boolean getInsure()
Description copied from interface: ShoppingCartModel
Gets the insure of this shopping cart.

Specified by:
getInsure in interface ShoppingCartModel
Returns:
the insure of this shopping cart

isInsure

public boolean isInsure()
Description copied from interface: ShoppingCartModel
Determines whether this shopping cart is insure.

Specified by:
isInsure in interface ShoppingCartModel
Returns:
whether this shopping cart is insure

setInsure

public void setInsure(boolean insure)
Description copied from interface: ShoppingCartModel
Sets whether this {$entity.humanName} is insure.

Specified by:
setInsure in interface ShoppingCartModel
Parameters:
insure - the insure of this shopping cart

toEscapedModel

public ShoppingCart toEscapedModel()
Description copied from interface: ShoppingCartModel
Gets a copy of this shopping cart as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface ShoppingCartModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<ShoppingCart>
Specified by:
isNew in interface ShoppingCartModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<ShoppingCart>
Specified by:
setNew in interface ShoppingCartModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<ShoppingCart>
Specified by:
isCachedModel in interface ShoppingCartModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<ShoppingCart>
Specified by:
setCachedModel in interface ShoppingCartModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<ShoppingCart>
Specified by:
isEscapedModel in interface ShoppingCartModel
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<ShoppingCart>
Specified by:
setEscapedModel in interface ShoppingCartModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingCart>
Specified by:
getPrimaryKeyObj in interface ShoppingCartModel
Returns:
the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<ShoppingCart>
Specified by:
getExpandoBridge in interface ShoppingCartModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>
Specified by:
setExpandoBridgeAttributes in interface ShoppingCartModel
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<ShoppingCart>
Specified by:
clone in interface ShoppingCartModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ShoppingCart shoppingCart)
Specified by:
compareTo in interface ShoppingCartModel
Specified by:
compareTo in interface Comparable<ShoppingCart>

hashCode

public int hashCode()
Specified by:
hashCode in interface ShoppingCartModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface ShoppingCartModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<ShoppingCart>
Specified by:
toXmlString in interface ShoppingCartModel
Returns:
the XML representation of this model instance

addItemId

public void addItemId(long itemId,
                      String fields)
Specified by:
addItemId in interface ShoppingCart

getCoupon

public ShoppingCoupon getCoupon()
                         throws PortalException,
                                SystemException
Specified by:
getCoupon in interface ShoppingCart
Throws:
PortalException
SystemException

getItems

public Map<ShoppingCartItem,Integer> getItems()
                                       throws SystemException
Specified by:
getItems in interface ShoppingCart
Throws:
SystemException

getItemsSize

public int getItemsSize()
Specified by:
getItemsSize in interface ShoppingCart

getWrappedShoppingCart

public ShoppingCart getWrappedShoppingCart()

Liferay 6.0.5