|
Liferay 6.2-ce-ga5 | |||||||||
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
@ProviderType 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)
|
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. As of 6.1.0, replaced by 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(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
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 |
---|
public ShoppingCartWrapper(ShoppingCart shoppingCart)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ShoppingCart>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ShoppingCart>
public long getPrimaryKey()
getPrimaryKey
in interface ShoppingCartModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ShoppingCartModel
primaryKey
- the primary key of this shopping cartpublic long getCartId()
getCartId
in interface ShoppingCartModel
public void setCartId(long cartId)
setCartId
in interface ShoppingCartModel
cartId
- the cart ID of this shopping cartpublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface ShoppingCartModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface ShoppingCartModel
groupId
- the group ID of this shopping cartpublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShoppingCartModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShoppingCartModel
companyId
- the company ID of this shopping cartpublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface ShoppingCartModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface ShoppingCartModel
userId
- the user ID of this shopping cartpublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface ShoppingCartModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface ShoppingCartModel
userUuid
- the user uuid of this shopping cartpublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface ShoppingCartModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface ShoppingCartModel
userName
- the user name of this shopping cartpublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface ShoppingCartModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface ShoppingCartModel
createDate
- the create date of this shopping cartpublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface ShoppingCartModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface ShoppingCartModel
modifiedDate
- the modified date of this shopping cartpublic String getItemIds()
getItemIds
in interface ShoppingCartModel
public void setItemIds(String itemIds)
setItemIds
in interface ShoppingCartModel
itemIds
- the item IDs of this shopping cartpublic String getCouponCodes()
getCouponCodes
in interface ShoppingCartModel
public void setCouponCodes(String couponCodes)
setCouponCodes
in interface ShoppingCartModel
couponCodes
- the coupon codes of this shopping cartpublic int getAltShipping()
getAltShipping
in interface ShoppingCartModel
public void setAltShipping(int altShipping)
setAltShipping
in interface ShoppingCartModel
altShipping
- the alt shipping of this shopping cartpublic boolean getInsure()
getInsure
in interface ShoppingCartModel
public boolean isInsure()
true
if this shopping cart is insure.
isInsure
in interface ShoppingCartModel
true
if this shopping cart is insure; false
otherwisepublic void setInsure(boolean insure)
setInsure
in interface ShoppingCartModel
insure
- the insure of this shopping cartpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
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
true
if this model instance was retrieved from the
entity cache.
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
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<ShoppingCart>
isEscapedModel
in interface ShoppingCartModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingCart>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ShoppingCartModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ShoppingCart>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ShoppingCartModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingCart>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ShoppingCartModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<ShoppingCart>
setExpandoBridgeAttributes
in interface ShoppingCartModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<ShoppingCart>
setExpandoBridgeAttributes
in interface ShoppingCartModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingCart>
setExpandoBridgeAttributes
in interface ShoppingCartModel
serviceContext
- the service context to be appliedServiceContext.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 CacheModel<ShoppingCart> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ShoppingCart>
toCacheModel
in interface ShoppingCartModel
public ShoppingCart toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ShoppingCart>
toEscapedModel
in interface ShoppingCartModel
AutoEscapeBeanHandler
public ShoppingCart toUnescapedModel()
toUnescapedModel
in interface BaseModel<ShoppingCart>
toUnescapedModel
in interface ShoppingCartModel
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 persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic 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 boolean equals(Object obj)
equals
in class Object
public ShoppingCart getWrappedShoppingCart()
getWrappedModel()
public ShoppingCart getWrappedModel()
getWrappedModel
in interface ModelWrapper<ShoppingCart>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ShoppingCart>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |