Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.model
Class ShoppingCartWrapper

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

public class ShoppingCartWrapper
extends Object
implements ShoppingCart, ModelWrapper<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 it 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)
           
 boolean equals(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()
           
 String getCouponCodes()
          Returns the coupon codes of this shopping cart.
 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.
 String getItemIds()
          Returns the item IDs of this shopping cart.
 Map<ShoppingCartItem,Integer> getItems()
           
 int getItemsSize()
           
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this shopping cart.
 long getPrimaryKey()
          Returns the primary key of this shopping cart.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getUserId()
          Returns the user ID of this shopping cart.
 String getUserName()
          Returns the user name of this shopping cart.
 String getUserUuid()
          Returns the user uuid of this shopping cart.
 ShoppingCart getWrappedModel()
           
 ShoppingCart getWrappedShoppingCart()
          Deprecated. Renamed to getWrappedModel()
 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()
          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(String couponCodes)
          Sets the coupon codes of this shopping cart.
 void setCreateDate(Date createDate)
          Sets the create date of this shopping cart.
 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 setModelAttributes(Map<String,Object> attributes)
           
 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()
           
 ShoppingCart toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShoppingCartWrapper

public ShoppingCartWrapper(ShoppingCart shoppingCart)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<ShoppingCart>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<ShoppingCart>

getPrimaryKey

public long getPrimaryKey()
Returns 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 primaryKey)
Sets the primary key of this shopping cart.

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

getCartId

public long getCartId()
Returns 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)
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()
Returns the group ID of this shopping cart.

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

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this shopping cart.

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

getCompanyId

public long getCompanyId()
Returns the company ID of this shopping cart.

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

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this shopping cart.

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

getUserId

public long getUserId()
Returns the user ID of this shopping cart.

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

setUserId

public void setUserId(long userId)
Sets the user ID of this shopping cart.

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

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this shopping cart.

Specified by:
getUserUuid in interface AuditedModel
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)
Sets the user uuid of this shopping cart.

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

getUserName

public String getUserName()
Returns the user name of this shopping cart.

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

setUserName

public void setUserName(String userName)
Sets the user name of this shopping cart.

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

getCreateDate

public Date getCreateDate()
Returns the create date of this shopping cart.

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

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this shopping cart.

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

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this shopping cart.

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

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this shopping cart.

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

getItemIds

public String getItemIds()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns the insure of this shopping cart.

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

isInsure

public boolean isInsure()
Returns true if this shopping cart is insure.

Specified by:
isInsure in interface ShoppingCartModel
Returns:
true if this shopping cart is insure; false otherwise

setInsure

public void setInsure(boolean insure)
Sets whether this shopping cart is insure.

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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true 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
Returns true 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
Returns true 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

getPrimaryKeyObj

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

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

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<ShoppingCart>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingCartModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<ShoppingCart>
Specified by:
getExpandoBridge in interface ClassedModel
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
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

toCacheModel

public CacheModel<ShoppingCart> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<ShoppingCart>
Specified by:
toCacheModel in interface ShoppingCartModel
Returns:
the cache model object

toEscapedModel

public ShoppingCart toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<ShoppingCart>
Specified by:
toEscapedModel in interface ShoppingCartModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ShoppingCart toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingCart>
Specified by:
toUnescapedModel in interface ShoppingCartModel

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns 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

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedShoppingCart

public ShoppingCart getWrappedShoppingCart()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public ShoppingCart getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<ShoppingCart>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<ShoppingCart>

Liferay 6.1.2-ce-ga3