Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.model
Class ShoppingItemWrapper

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

public class ShoppingItemWrapper
extends Object
implements ShoppingItem, ModelWrapper<ShoppingItem>

This class is a wrapper for ShoppingItem.

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

Constructor Summary
ShoppingItemWrapper(ShoppingItem shoppingItem)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingItem shoppingItem)
           
 boolean equals(Object obj)
           
 ShoppingCategory getCategory()
           
 long getCategoryId()
          Returns the category ID of this shopping item.
 long getCompanyId()
          Returns the company ID of this shopping item.
 Date getCreateDate()
          Returns the create date of this shopping item.
 String getDescription()
          Returns the description of this shopping item.
 double getDiscount()
          Returns the discount of this shopping item.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 boolean getFeatured()
          Returns the featured of this shopping item.
 boolean getFields()
          Returns the fields of this shopping item.
 String getFieldsQuantities()
          Returns the fields quantities of this shopping item.
 String[] getFieldsQuantitiesArray()
           
 long getGroupId()
          Returns the group ID of this shopping item.
 long getItemId()
          Returns the item ID of this shopping item.
 List<ShoppingItemPrice> getItemPrices()
           
 boolean getLargeImage()
          Returns the large image of this shopping item.
 long getLargeImageId()
          Returns the large image ID of this shopping item.
 String getLargeImageURL()
          Returns the large image u r l of this shopping item.
 int getMaxQuantity()
          Returns the max quantity of this shopping item.
 boolean getMediumImage()
          Returns the medium image of this shopping item.
 long getMediumImageId()
          Returns the medium image ID of this shopping item.
 String getMediumImageURL()
          Returns the medium image u r l of this shopping item.
 int getMinQuantity()
          Returns the min quantity of this shopping item.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this shopping item.
 String getName()
          Returns the name of this shopping item.
 double getPrice()
          Returns the price of this shopping item.
 long getPrimaryKey()
          Returns the primary key of this shopping item.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getProperties()
          Returns the properties of this shopping item.
 boolean getRequiresShipping()
          Returns the requires shipping of this shopping item.
 boolean getSale()
          Returns the sale of this shopping item.
 double getShipping()
          Returns the shipping of this shopping item.
 String getSku()
          Returns the sku of this shopping item.
 boolean getSmallImage()
          Returns the small image of this shopping item.
 long getSmallImageId()
          Returns the small image ID of this shopping item.
 String getSmallImageURL()
          Returns the small image u r l of this shopping item.
 int getStockQuantity()
          Returns the stock quantity of this shopping item.
 boolean getTaxable()
          Returns the taxable of this shopping item.
 long getUserId()
          Returns the user ID of this shopping item.
 String getUserName()
          Returns the user name of this shopping item.
 String getUserUuid()
          Returns the user uuid of this shopping item.
 boolean getUseShippingFormula()
          Returns the use shipping formula of this shopping item.
 ShoppingItem getWrappedModel()
           
 ShoppingItem getWrappedShoppingItem()
          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 isFeatured()
          Returns true if this shopping item is featured.
 boolean isFields()
          Returns true if this shopping item is fields.
 boolean isLargeImage()
          Returns true if this shopping item is large image.
 boolean isMediumImage()
          Returns true if this shopping item is medium image.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 boolean isRequiresShipping()
          Returns true if this shopping item is requires shipping.
 boolean isSale()
          Returns true if this shopping item is sale.
 boolean isSmallImage()
          Returns true if this shopping item is small image.
 boolean isTaxable()
          Returns true if this shopping item is taxable.
 boolean isUseShippingFormula()
          Returns true if this shopping item is use shipping formula.
 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 setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCategoryId(long categoryId)
          Sets the category ID of this shopping item.
 void setCompanyId(long companyId)
          Sets the company ID of this shopping item.
 void setCreateDate(Date createDate)
          Sets the create date of this shopping item.
 void setDescription(String description)
          Sets the description of this shopping item.
 void setDiscount(double discount)
          Sets the discount of this shopping item.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFeatured(boolean featured)
          Sets whether this shopping item is featured.
 void setFields(boolean fields)
          Sets whether this shopping item is fields.
 void setFieldsQuantities(String fieldsQuantities)
          Sets the fields quantities of this shopping item.
 void setFieldsQuantitiesArray(String[] fieldsQuantitiesArray)
           
 void setGroupId(long groupId)
          Sets the group ID of this shopping item.
 void setItemId(long itemId)
          Sets the item ID of this shopping item.
 void setLargeImage(boolean largeImage)
          Sets whether this shopping item is large image.
 void setLargeImageId(long largeImageId)
          Sets the large image ID of this shopping item.
 void setLargeImageURL(String largeImageURL)
          Sets the large image u r l of this shopping item.
 void setMaxQuantity(int maxQuantity)
          Sets the max quantity of this shopping item.
 void setMediumImage(boolean mediumImage)
          Sets whether this shopping item is medium image.
 void setMediumImageId(long mediumImageId)
          Sets the medium image ID of this shopping item.
 void setMediumImageURL(String mediumImageURL)
          Sets the medium image u r l of this shopping item.
 void setMinQuantity(int minQuantity)
          Sets the min quantity of this shopping item.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this shopping item.
 void setName(String name)
          Sets the name of this shopping item.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrice(double price)
          Sets the price of this shopping item.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this shopping item.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setProperties(String properties)
          Sets the properties of this shopping item.
 void setRequiresShipping(boolean requiresShipping)
          Sets whether this shopping item is requires shipping.
 void setSale(boolean sale)
          Sets whether this shopping item is sale.
 void setShipping(double shipping)
          Sets the shipping of this shopping item.
 void setSku(String sku)
          Sets the sku of this shopping item.
 void setSmallImage(boolean smallImage)
          Sets whether this shopping item is small image.
 void setSmallImageId(long smallImageId)
          Sets the small image ID of this shopping item.
 void setSmallImageURL(String smallImageURL)
          Sets the small image u r l of this shopping item.
 void setStockQuantity(int stockQuantity)
          Sets the stock quantity of this shopping item.
 void setTaxable(boolean taxable)
          Sets whether this shopping item is taxable.
 void setUserId(long userId)
          Sets the user ID of this shopping item.
 void setUserName(String userName)
          Sets the user name of this shopping item.
 void setUserUuid(String userUuid)
          Sets the user uuid of this shopping item.
 void setUseShippingFormula(boolean useShippingFormula)
          Sets whether this shopping item is use shipping formula.
 CacheModel<ShoppingItem> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ShoppingItem toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 ShoppingItem 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

ShoppingItemWrapper

public ShoppingItemWrapper(ShoppingItem shoppingItem)
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<ShoppingItem>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this shopping item.

Specified by:
getPrimaryKey in interface ShoppingItemModel
Returns:
the primary key of this shopping item

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this shopping item.

Specified by:
setPrimaryKey in interface ShoppingItemModel
Parameters:
primaryKey - the primary key of this shopping item

getItemId

public long getItemId()
Returns the item ID of this shopping item.

Specified by:
getItemId in interface ShoppingItemModel
Returns:
the item ID of this shopping item

setItemId

public void setItemId(long itemId)
Sets the item ID of this shopping item.

Specified by:
setItemId in interface ShoppingItemModel
Parameters:
itemId - the item ID of this shopping item

getGroupId

public long getGroupId()
Returns the group ID of this shopping item.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface ShoppingItemModel
Returns:
the group ID of this shopping item

setGroupId

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

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

getCompanyId

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

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface ShoppingItemModel
Returns:
the company ID of this shopping item

setCompanyId

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

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

getUserId

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

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface ShoppingItemModel
Returns:
the user ID of this shopping item

setUserId

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

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

getUserUuid

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

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

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this shopping item.

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

getUserName

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

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface ShoppingItemModel
Returns:
the user name of this shopping item

setUserName

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

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

getCreateDate

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

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface ShoppingItemModel
Returns:
the create date of this shopping item

setCreateDate

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

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

getModifiedDate

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

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface ShoppingItemModel
Returns:
the modified date of this shopping item

setModifiedDate

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

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

getCategoryId

public long getCategoryId()
Returns the category ID of this shopping item.

Specified by:
getCategoryId in interface ShoppingItemModel
Returns:
the category ID of this shopping item

setCategoryId

public void setCategoryId(long categoryId)
Sets the category ID of this shopping item.

Specified by:
setCategoryId in interface ShoppingItemModel
Parameters:
categoryId - the category ID of this shopping item

getSku

public String getSku()
Returns the sku of this shopping item.

Specified by:
getSku in interface ShoppingItemModel
Returns:
the sku of this shopping item

setSku

public void setSku(String sku)
Sets the sku of this shopping item.

Specified by:
setSku in interface ShoppingItemModel
Parameters:
sku - the sku of this shopping item

getName

public String getName()
Returns the name of this shopping item.

Specified by:
getName in interface ShoppingItemModel
Returns:
the name of this shopping item

setName

public void setName(String name)
Sets the name of this shopping item.

Specified by:
setName in interface ShoppingItemModel
Parameters:
name - the name of this shopping item

getDescription

public String getDescription()
Returns the description of this shopping item.

Specified by:
getDescription in interface ShoppingItemModel
Returns:
the description of this shopping item

setDescription

public void setDescription(String description)
Sets the description of this shopping item.

Specified by:
setDescription in interface ShoppingItemModel
Parameters:
description - the description of this shopping item

getProperties

public String getProperties()
Returns the properties of this shopping item.

Specified by:
getProperties in interface ShoppingItemModel
Returns:
the properties of this shopping item

setProperties

public void setProperties(String properties)
Sets the properties of this shopping item.

Specified by:
setProperties in interface ShoppingItemModel
Parameters:
properties - the properties of this shopping item

getFields

public boolean getFields()
Returns the fields of this shopping item.

Specified by:
getFields in interface ShoppingItemModel
Returns:
the fields of this shopping item

isFields

public boolean isFields()
Returns true if this shopping item is fields.

Specified by:
isFields in interface ShoppingItemModel
Returns:
true if this shopping item is fields; false otherwise

setFields

public void setFields(boolean fields)
Sets whether this shopping item is fields.

Specified by:
setFields in interface ShoppingItemModel
Parameters:
fields - the fields of this shopping item

getFieldsQuantities

public String getFieldsQuantities()
Returns the fields quantities of this shopping item.

Specified by:
getFieldsQuantities in interface ShoppingItemModel
Returns:
the fields quantities of this shopping item

setFieldsQuantities

public void setFieldsQuantities(String fieldsQuantities)
Sets the fields quantities of this shopping item.

Specified by:
setFieldsQuantities in interface ShoppingItem
Specified by:
setFieldsQuantities in interface ShoppingItemModel
Parameters:
fieldsQuantities - the fields quantities of this shopping item

getMinQuantity

public int getMinQuantity()
Returns the min quantity of this shopping item.

Specified by:
getMinQuantity in interface ShoppingItemModel
Returns:
the min quantity of this shopping item

setMinQuantity

public void setMinQuantity(int minQuantity)
Sets the min quantity of this shopping item.

Specified by:
setMinQuantity in interface ShoppingItemModel
Parameters:
minQuantity - the min quantity of this shopping item

getMaxQuantity

public int getMaxQuantity()
Returns the max quantity of this shopping item.

Specified by:
getMaxQuantity in interface ShoppingItemModel
Returns:
the max quantity of this shopping item

setMaxQuantity

public void setMaxQuantity(int maxQuantity)
Sets the max quantity of this shopping item.

Specified by:
setMaxQuantity in interface ShoppingItemModel
Parameters:
maxQuantity - the max quantity of this shopping item

getPrice

public double getPrice()
Returns the price of this shopping item.

Specified by:
getPrice in interface ShoppingItemModel
Returns:
the price of this shopping item

setPrice

public void setPrice(double price)
Sets the price of this shopping item.

Specified by:
setPrice in interface ShoppingItemModel
Parameters:
price - the price of this shopping item

getDiscount

public double getDiscount()
Returns the discount of this shopping item.

Specified by:
getDiscount in interface ShoppingItemModel
Returns:
the discount of this shopping item

setDiscount

public void setDiscount(double discount)
Sets the discount of this shopping item.

Specified by:
setDiscount in interface ShoppingItemModel
Parameters:
discount - the discount of this shopping item

getTaxable

public boolean getTaxable()
Returns the taxable of this shopping item.

Specified by:
getTaxable in interface ShoppingItemModel
Returns:
the taxable of this shopping item

isTaxable

public boolean isTaxable()
Returns true if this shopping item is taxable.

Specified by:
isTaxable in interface ShoppingItemModel
Returns:
true if this shopping item is taxable; false otherwise

setTaxable

public void setTaxable(boolean taxable)
Sets whether this shopping item is taxable.

Specified by:
setTaxable in interface ShoppingItemModel
Parameters:
taxable - the taxable of this shopping item

getShipping

public double getShipping()
Returns the shipping of this shopping item.

Specified by:
getShipping in interface ShoppingItemModel
Returns:
the shipping of this shopping item

setShipping

public void setShipping(double shipping)
Sets the shipping of this shopping item.

Specified by:
setShipping in interface ShoppingItemModel
Parameters:
shipping - the shipping of this shopping item

getUseShippingFormula

public boolean getUseShippingFormula()
Returns the use shipping formula of this shopping item.

Specified by:
getUseShippingFormula in interface ShoppingItemModel
Returns:
the use shipping formula of this shopping item

isUseShippingFormula

public boolean isUseShippingFormula()
Returns true if this shopping item is use shipping formula.

Specified by:
isUseShippingFormula in interface ShoppingItemModel
Returns:
true if this shopping item is use shipping formula; false otherwise

setUseShippingFormula

public void setUseShippingFormula(boolean useShippingFormula)
Sets whether this shopping item is use shipping formula.

Specified by:
setUseShippingFormula in interface ShoppingItemModel
Parameters:
useShippingFormula - the use shipping formula of this shopping item

getRequiresShipping

public boolean getRequiresShipping()
Returns the requires shipping of this shopping item.

Specified by:
getRequiresShipping in interface ShoppingItemModel
Returns:
the requires shipping of this shopping item

isRequiresShipping

public boolean isRequiresShipping()
Returns true if this shopping item is requires shipping.

Specified by:
isRequiresShipping in interface ShoppingItemModel
Returns:
true if this shopping item is requires shipping; false otherwise

setRequiresShipping

public void setRequiresShipping(boolean requiresShipping)
Sets whether this shopping item is requires shipping.

Specified by:
setRequiresShipping in interface ShoppingItemModel
Parameters:
requiresShipping - the requires shipping of this shopping item

getStockQuantity

public int getStockQuantity()
Returns the stock quantity of this shopping item.

Specified by:
getStockQuantity in interface ShoppingItemModel
Returns:
the stock quantity of this shopping item

setStockQuantity

public void setStockQuantity(int stockQuantity)
Sets the stock quantity of this shopping item.

Specified by:
setStockQuantity in interface ShoppingItemModel
Parameters:
stockQuantity - the stock quantity of this shopping item

getFeatured

public boolean getFeatured()
Returns the featured of this shopping item.

Specified by:
getFeatured in interface ShoppingItemModel
Returns:
the featured of this shopping item

isFeatured

public boolean isFeatured()
Returns true if this shopping item is featured.

Specified by:
isFeatured in interface ShoppingItemModel
Returns:
true if this shopping item is featured; false otherwise

setFeatured

public void setFeatured(boolean featured)
Sets whether this shopping item is featured.

Specified by:
setFeatured in interface ShoppingItemModel
Parameters:
featured - the featured of this shopping item

getSale

public boolean getSale()
Returns the sale of this shopping item.

Specified by:
getSale in interface ShoppingItemModel
Returns:
the sale of this shopping item

isSale

public boolean isSale()
Returns true if this shopping item is sale.

Specified by:
isSale in interface ShoppingItemModel
Returns:
true if this shopping item is sale; false otherwise

setSale

public void setSale(boolean sale)
Sets whether this shopping item is sale.

Specified by:
setSale in interface ShoppingItemModel
Parameters:
sale - the sale of this shopping item

getSmallImage

public boolean getSmallImage()
Returns the small image of this shopping item.

Specified by:
getSmallImage in interface ShoppingItemModel
Returns:
the small image of this shopping item

isSmallImage

public boolean isSmallImage()
Returns true if this shopping item is small image.

Specified by:
isSmallImage in interface ShoppingItemModel
Returns:
true if this shopping item is small image; false otherwise

setSmallImage

public void setSmallImage(boolean smallImage)
Sets whether this shopping item is small image.

Specified by:
setSmallImage in interface ShoppingItemModel
Parameters:
smallImage - the small image of this shopping item

getSmallImageId

public long getSmallImageId()
Returns the small image ID of this shopping item.

Specified by:
getSmallImageId in interface ShoppingItemModel
Returns:
the small image ID of this shopping item

setSmallImageId

public void setSmallImageId(long smallImageId)
Sets the small image ID of this shopping item.

Specified by:
setSmallImageId in interface ShoppingItemModel
Parameters:
smallImageId - the small image ID of this shopping item

getSmallImageURL

public String getSmallImageURL()
Returns the small image u r l of this shopping item.

Specified by:
getSmallImageURL in interface ShoppingItemModel
Returns:
the small image u r l of this shopping item

setSmallImageURL

public void setSmallImageURL(String smallImageURL)
Sets the small image u r l of this shopping item.

Specified by:
setSmallImageURL in interface ShoppingItemModel
Parameters:
smallImageURL - the small image u r l of this shopping item

getMediumImage

public boolean getMediumImage()
Returns the medium image of this shopping item.

Specified by:
getMediumImage in interface ShoppingItemModel
Returns:
the medium image of this shopping item

isMediumImage

public boolean isMediumImage()
Returns true if this shopping item is medium image.

Specified by:
isMediumImage in interface ShoppingItemModel
Returns:
true if this shopping item is medium image; false otherwise

setMediumImage

public void setMediumImage(boolean mediumImage)
Sets whether this shopping item is medium image.

Specified by:
setMediumImage in interface ShoppingItemModel
Parameters:
mediumImage - the medium image of this shopping item

getMediumImageId

public long getMediumImageId()
Returns the medium image ID of this shopping item.

Specified by:
getMediumImageId in interface ShoppingItemModel
Returns:
the medium image ID of this shopping item

setMediumImageId

public void setMediumImageId(long mediumImageId)
Sets the medium image ID of this shopping item.

Specified by:
setMediumImageId in interface ShoppingItemModel
Parameters:
mediumImageId - the medium image ID of this shopping item

getMediumImageURL

public String getMediumImageURL()
Returns the medium image u r l of this shopping item.

Specified by:
getMediumImageURL in interface ShoppingItemModel
Returns:
the medium image u r l of this shopping item

setMediumImageURL

public void setMediumImageURL(String mediumImageURL)
Sets the medium image u r l of this shopping item.

Specified by:
setMediumImageURL in interface ShoppingItemModel
Parameters:
mediumImageURL - the medium image u r l of this shopping item

getLargeImage

public boolean getLargeImage()
Returns the large image of this shopping item.

Specified by:
getLargeImage in interface ShoppingItemModel
Returns:
the large image of this shopping item

isLargeImage

public boolean isLargeImage()
Returns true if this shopping item is large image.

Specified by:
isLargeImage in interface ShoppingItemModel
Returns:
true if this shopping item is large image; false otherwise

setLargeImage

public void setLargeImage(boolean largeImage)
Sets whether this shopping item is large image.

Specified by:
setLargeImage in interface ShoppingItemModel
Parameters:
largeImage - the large image of this shopping item

getLargeImageId

public long getLargeImageId()
Returns the large image ID of this shopping item.

Specified by:
getLargeImageId in interface ShoppingItemModel
Returns:
the large image ID of this shopping item

setLargeImageId

public void setLargeImageId(long largeImageId)
Sets the large image ID of this shopping item.

Specified by:
setLargeImageId in interface ShoppingItemModel
Parameters:
largeImageId - the large image ID of this shopping item

getLargeImageURL

public String getLargeImageURL()
Returns the large image u r l of this shopping item.

Specified by:
getLargeImageURL in interface ShoppingItemModel
Returns:
the large image u r l of this shopping item

setLargeImageURL

public void setLargeImageURL(String largeImageURL)
Sets the large image u r l of this shopping item.

Specified by:
setLargeImageURL in interface ShoppingItemModel
Parameters:
largeImageURL - the large image u r l of this shopping item

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<ShoppingItem>
Specified by:
isNew in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
setNew in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
isCachedModel in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
setCachedModel in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
isEscapedModel in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
setExpandoBridgeAttributes in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
clone in interface ShoppingItemModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ShoppingItem shoppingItem)
Specified by:
compareTo in interface ShoppingItem
Specified by:
compareTo in interface ShoppingItemModel
Specified by:
compareTo in interface Comparable<ShoppingItem>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<ShoppingItem>
Specified by:
toCacheModel in interface ShoppingItemModel
Returns:
the cache model object

toEscapedModel

public ShoppingItem 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<ShoppingItem>
Specified by:
toEscapedModel in interface ShoppingItemModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ShoppingItem toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingItem>
Specified by:
toUnescapedModel in interface ShoppingItemModel

toString

public String toString()
Specified by:
toString in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
toXmlString in interface ShoppingItemModel
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

getCategory

public ShoppingCategory getCategory()
Specified by:
getCategory in interface ShoppingItem

getFieldsQuantitiesArray

public String[] getFieldsQuantitiesArray()
Specified by:
getFieldsQuantitiesArray in interface ShoppingItem

getItemPrices

public List<ShoppingItemPrice> getItemPrices()
                                      throws PortalException,
                                             SystemException
Specified by:
getItemPrices in interface ShoppingItem
Throws:
PortalException
SystemException

setFieldsQuantitiesArray

public void setFieldsQuantitiesArray(String[] fieldsQuantitiesArray)
Specified by:
setFieldsQuantitiesArray in interface ShoppingItem

equals

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

getWrappedShoppingItem

public ShoppingItem getWrappedShoppingItem()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<ShoppingItem>

Liferay 6.1.2-ce-ga3