@ProviderType public interface ShoppingCartModel extends BaseModel<ShoppingCart>, GroupedModel
This interface and its corresponding implementation com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portlet.shopping.model.impl.ShoppingCartImpl.
ShoppingCart,
com.liferay.portlet.shopping.model.impl.ShoppingCartImpl,
com.liferay.portlet.shopping.model.impl.ShoppingCartModelImpl| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ShoppingCart shoppingCart) |
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.
|
java.lang.String |
getCouponCodes()
Returns the coupon codes of this shopping cart.
|
java.util.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.
|
java.lang.String |
getItemIds()
Returns the item IDs of this shopping cart.
|
java.util.Date |
getModifiedDate()
Returns the modified date of this shopping cart.
|
long |
getPrimaryKey()
Returns the primary key of this shopping cart.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
long |
getUserId()
Returns the user ID of this shopping cart.
|
java.lang.String |
getUserName()
Returns the user name of this shopping cart.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this shopping cart.
|
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 |
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(java.lang.String couponCodes)
Sets the coupon codes of this shopping cart.
|
void |
setCreateDate(java.util.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(java.lang.String itemIds)
Sets the item IDs of this shopping cart.
|
void |
setModifiedDate(java.util.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(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setUserId(long userId)
Sets the user ID of this shopping cart.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this shopping cart.
|
void |
setUserUuid(java.lang.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. |
java.lang.String |
toString() |
ShoppingCart |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributesgetModelClass, getModelClassNamelong getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey - the primary key of this shopping cartlong getCartId()
void setCartId(long cartId)
cartId - the cart ID of this shopping cartlong getGroupId()
getGroupId in interface GroupedModelvoid setGroupId(long groupId)
setGroupId in interface GroupedModelgroupId - the group ID of this shopping cartlong getCompanyId()
getCompanyId in interface AuditedModelvoid setCompanyId(long companyId)
setCompanyId in interface AuditedModelcompanyId - the company ID of this shopping cartlong getUserId()
getUserId in interface AuditedModelvoid setUserId(long userId)
setUserId in interface AuditedModeluserId - the user ID of this shopping cartjava.lang.String getUserUuid()
getUserUuid in interface AuditedModelvoid setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModeluserUuid - the user uuid of this shopping cart@AutoEscape java.lang.String getUserName()
getUserName in interface AuditedModelvoid setUserName(java.lang.String userName)
setUserName in interface AuditedModeluserName - the user name of this shopping cartjava.util.Date getCreateDate()
getCreateDate in interface AuditedModelvoid setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelcreateDate - the create date of this shopping cartjava.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelvoid setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelmodifiedDate - the modified date of this shopping cart@AutoEscape java.lang.String getItemIds()
void setItemIds(java.lang.String itemIds)
itemIds - the item IDs of this shopping cart@AutoEscape java.lang.String getCouponCodes()
void setCouponCodes(java.lang.String couponCodes)
couponCodes - the coupon codes of this shopping cartint getAltShipping()
void setAltShipping(int altShipping)
altShipping - the alt shipping of this shopping cartboolean getInsure()
boolean isInsure()
true if this shopping cart is insure.true if this shopping cart is insure; false otherwisevoid setInsure(boolean insure)
insure - the insure of this shopping cartboolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<ShoppingCart>true if this model instance does not yet exist in
the database; false otherwisevoid setNew(boolean n)
BaseModelsetNew in interface BaseModel<ShoppingCart>n - whether this model instance does not yet exist in the databaseboolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ShoppingCart>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ShoppingCart>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCacheboolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ShoppingCart>true if this model instance is escaped;
false otherwisejava.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ShoppingCart>getPrimaryKeyObj in interface ClassedModelvoid setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ShoppingCart>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ShoppingCart>getExpandoBridge in interface ClassedModelvoid setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ShoppingCart>void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ShoppingCart>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)java.lang.Object clone()
BaseModelclone in interface BaseModel<ShoppingCart>int compareTo(ShoppingCart shoppingCart)
compareTo in interface java.lang.Comparable<ShoppingCart>int hashCode()
hashCode in class java.lang.ObjectCacheModel<ShoppingCart> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ShoppingCart>ShoppingCart toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ShoppingCart>AutoEscapeBeanHandlerShoppingCart toUnescapedModel()
toUnescapedModel in interface BaseModel<ShoppingCart>java.lang.String toString()
toString in class java.lang.Objectjava.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<ShoppingCart>