Liferay 6.0.3

com.liferay.portlet.shopping.model
Class ShoppingItemWrapper

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

public class ShoppingItemWrapper
extends Object
implements 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 is generated.

Constructor Summary
ShoppingItemWrapper(ShoppingItem shoppingItem)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingItem shoppingItem)
           
 ShoppingCategory getCategory()
           
 long getCategoryId()
           
 long getCompanyId()
           
 Date getCreateDate()
           
 String getDescription()
           
 double getDiscount()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 boolean getFeatured()
           
 boolean getFields()
           
 String getFieldsQuantities()
           
 String[] getFieldsQuantitiesArray()
           
 long getGroupId()
           
 long getItemId()
           
 List<ShoppingItemPrice> getItemPrices()
           
 boolean getLargeImage()
           
 long getLargeImageId()
           
 String getLargeImageURL()
           
 int getMaxQuantity()
           
 boolean getMediumImage()
           
 long getMediumImageId()
           
 String getMediumImageURL()
           
 int getMinQuantity()
           
 Date getModifiedDate()
           
 String getName()
           
 double getPrice()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
          Gets the primary key for this model instance.
 String getProperties()
           
 boolean getRequiresShipping()
           
 boolean getSale()
           
 double getShipping()
           
 String getSku()
           
 boolean getSmallImage()
           
 long getSmallImageId()
           
 String getSmallImageURL()
           
 int getStockQuantity()
           
 boolean getTaxable()
           
 long getUserId()
           
 String getUserName()
           
 String getUserUuid()
           
 boolean getUseShippingFormula()
           
 ShoppingItem getWrappedShoppingItem()
           
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance has been wrapped with an HTML auto escape handler.
 boolean isFeatured()
           
 boolean isFields()
           
 boolean isLargeImage()
           
 boolean isMediumImage()
           
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isRequiresShipping()
           
 boolean isSale()
           
 boolean isSmallImage()
           
 boolean isTaxable()
           
 boolean isUseShippingFormula()
           
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCategoryId(long categoryId)
           
 void setCompanyId(long companyId)
           
 void setCreateDate(Date createDate)
           
 void setDescription(String description)
           
 void setDiscount(double discount)
           
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance has been wrapped with an HTML auto escape handler.
 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)
           
 void setFields(boolean fields)
           
 void setFieldsQuantities(String fieldsQuantities)
           
 void setFieldsQuantitiesArray(String[] fieldsQuantitiesArray)
           
 void setGroupId(long groupId)
           
 void setItemId(long itemId)
           
 void setLargeImage(boolean largeImage)
           
 void setLargeImageId(long largeImageId)
           
 void setLargeImageURL(String largeImageURL)
           
 void setMaxQuantity(int maxQuantity)
           
 void setMediumImage(boolean mediumImage)
           
 void setMediumImageId(long mediumImageId)
           
 void setMediumImageURL(String mediumImageURL)
           
 void setMinQuantity(int minQuantity)
           
 void setModifiedDate(Date modifiedDate)
           
 void setName(String name)
           
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrice(double price)
           
 void setPrimaryKey(long pk)
           
 void setProperties(String properties)
           
 void setRequiresShipping(boolean requiresShipping)
           
 void setSale(boolean sale)
           
 void setShipping(double shipping)
           
 void setSku(String sku)
           
 void setSmallImage(boolean smallImage)
           
 void setSmallImageId(long smallImageId)
           
 void setSmallImageURL(String smallImageURL)
           
 void setStockQuantity(int stockQuantity)
           
 void setTaxable(boolean taxable)
           
 void setUserId(long userId)
           
 void setUserName(String userName)
           
 void setUserUuid(String userUuid)
           
 void setUseShippingFormula(boolean useShippingFormula)
           
 ShoppingItem toEscapedModel()
           
 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

ShoppingItemWrapper

public ShoppingItemWrapper(ShoppingItem shoppingItem)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Specified by:
getPrimaryKey in interface ShoppingItemModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface ShoppingItemModel

getItemId

public long getItemId()
Specified by:
getItemId in interface ShoppingItemModel

setItemId

public void setItemId(long itemId)
Specified by:
setItemId in interface ShoppingItemModel

getGroupId

public long getGroupId()
Specified by:
getGroupId in interface ShoppingItemModel

setGroupId

public void setGroupId(long groupId)
Specified by:
setGroupId in interface ShoppingItemModel

getCompanyId

public long getCompanyId()
Specified by:
getCompanyId in interface ShoppingItemModel

setCompanyId

public void setCompanyId(long companyId)
Specified by:
setCompanyId in interface ShoppingItemModel

getUserId

public long getUserId()
Specified by:
getUserId in interface ShoppingItemModel

setUserId

public void setUserId(long userId)
Specified by:
setUserId in interface ShoppingItemModel

getUserUuid

public String getUserUuid()
                   throws SystemException
Specified by:
getUserUuid in interface ShoppingItemModel
Throws:
SystemException

setUserUuid

public void setUserUuid(String userUuid)
Specified by:
setUserUuid in interface ShoppingItemModel

getUserName

public String getUserName()
Specified by:
getUserName in interface ShoppingItemModel

setUserName

public void setUserName(String userName)
Specified by:
setUserName in interface ShoppingItemModel

getCreateDate

public Date getCreateDate()
Specified by:
getCreateDate in interface ShoppingItemModel

setCreateDate

public void setCreateDate(Date createDate)
Specified by:
setCreateDate in interface ShoppingItemModel

getModifiedDate

public Date getModifiedDate()
Specified by:
getModifiedDate in interface ShoppingItemModel

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Specified by:
setModifiedDate in interface ShoppingItemModel

getCategoryId

public long getCategoryId()
Specified by:
getCategoryId in interface ShoppingItemModel

setCategoryId

public void setCategoryId(long categoryId)
Specified by:
setCategoryId in interface ShoppingItemModel

getSku

public String getSku()
Specified by:
getSku in interface ShoppingItemModel

setSku

public void setSku(String sku)
Specified by:
setSku in interface ShoppingItemModel

getName

public String getName()
Specified by:
getName in interface ShoppingItemModel

setName

public void setName(String name)
Specified by:
setName in interface ShoppingItemModel

getDescription

public String getDescription()
Specified by:
getDescription in interface ShoppingItemModel

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface ShoppingItemModel

getProperties

public String getProperties()
Specified by:
getProperties in interface ShoppingItemModel

setProperties

public void setProperties(String properties)
Specified by:
setProperties in interface ShoppingItemModel

getFields

public boolean getFields()
Specified by:
getFields in interface ShoppingItemModel

isFields

public boolean isFields()
Specified by:
isFields in interface ShoppingItemModel

setFields

public void setFields(boolean fields)
Specified by:
setFields in interface ShoppingItemModel

getFieldsQuantities

public String getFieldsQuantities()
Specified by:
getFieldsQuantities in interface ShoppingItemModel

setFieldsQuantities

public void setFieldsQuantities(String fieldsQuantities)
Specified by:
setFieldsQuantities in interface ShoppingItem
Specified by:
setFieldsQuantities in interface ShoppingItemModel

getMinQuantity

public int getMinQuantity()
Specified by:
getMinQuantity in interface ShoppingItemModel

setMinQuantity

public void setMinQuantity(int minQuantity)
Specified by:
setMinQuantity in interface ShoppingItemModel

getMaxQuantity

public int getMaxQuantity()
Specified by:
getMaxQuantity in interface ShoppingItemModel

setMaxQuantity

public void setMaxQuantity(int maxQuantity)
Specified by:
setMaxQuantity in interface ShoppingItemModel

getPrice

public double getPrice()
Specified by:
getPrice in interface ShoppingItemModel

setPrice

public void setPrice(double price)
Specified by:
setPrice in interface ShoppingItemModel

getDiscount

public double getDiscount()
Specified by:
getDiscount in interface ShoppingItemModel

setDiscount

public void setDiscount(double discount)
Specified by:
setDiscount in interface ShoppingItemModel

getTaxable

public boolean getTaxable()
Specified by:
getTaxable in interface ShoppingItemModel

isTaxable

public boolean isTaxable()
Specified by:
isTaxable in interface ShoppingItemModel

setTaxable

public void setTaxable(boolean taxable)
Specified by:
setTaxable in interface ShoppingItemModel

getShipping

public double getShipping()
Specified by:
getShipping in interface ShoppingItemModel

setShipping

public void setShipping(double shipping)
Specified by:
setShipping in interface ShoppingItemModel

getUseShippingFormula

public boolean getUseShippingFormula()
Specified by:
getUseShippingFormula in interface ShoppingItemModel

isUseShippingFormula

public boolean isUseShippingFormula()
Specified by:
isUseShippingFormula in interface ShoppingItemModel

setUseShippingFormula

public void setUseShippingFormula(boolean useShippingFormula)
Specified by:
setUseShippingFormula in interface ShoppingItemModel

getRequiresShipping

public boolean getRequiresShipping()
Specified by:
getRequiresShipping in interface ShoppingItemModel

isRequiresShipping

public boolean isRequiresShipping()
Specified by:
isRequiresShipping in interface ShoppingItemModel

setRequiresShipping

public void setRequiresShipping(boolean requiresShipping)
Specified by:
setRequiresShipping in interface ShoppingItemModel

getStockQuantity

public int getStockQuantity()
Specified by:
getStockQuantity in interface ShoppingItemModel

setStockQuantity

public void setStockQuantity(int stockQuantity)
Specified by:
setStockQuantity in interface ShoppingItemModel

getFeatured

public boolean getFeatured()
Specified by:
getFeatured in interface ShoppingItemModel

isFeatured

public boolean isFeatured()
Specified by:
isFeatured in interface ShoppingItemModel

setFeatured

public void setFeatured(boolean featured)
Specified by:
setFeatured in interface ShoppingItemModel

getSale

public boolean getSale()
Specified by:
getSale in interface ShoppingItemModel

isSale

public boolean isSale()
Specified by:
isSale in interface ShoppingItemModel

setSale

public void setSale(boolean sale)
Specified by:
setSale in interface ShoppingItemModel

getSmallImage

public boolean getSmallImage()
Specified by:
getSmallImage in interface ShoppingItemModel

isSmallImage

public boolean isSmallImage()
Specified by:
isSmallImage in interface ShoppingItemModel

setSmallImage

public void setSmallImage(boolean smallImage)
Specified by:
setSmallImage in interface ShoppingItemModel

getSmallImageId

public long getSmallImageId()
Specified by:
getSmallImageId in interface ShoppingItemModel

setSmallImageId

public void setSmallImageId(long smallImageId)
Specified by:
setSmallImageId in interface ShoppingItemModel

getSmallImageURL

public String getSmallImageURL()
Specified by:
getSmallImageURL in interface ShoppingItemModel

setSmallImageURL

public void setSmallImageURL(String smallImageURL)
Specified by:
setSmallImageURL in interface ShoppingItemModel

getMediumImage

public boolean getMediumImage()
Specified by:
getMediumImage in interface ShoppingItemModel

isMediumImage

public boolean isMediumImage()
Specified by:
isMediumImage in interface ShoppingItemModel

setMediumImage

public void setMediumImage(boolean mediumImage)
Specified by:
setMediumImage in interface ShoppingItemModel

getMediumImageId

public long getMediumImageId()
Specified by:
getMediumImageId in interface ShoppingItemModel

setMediumImageId

public void setMediumImageId(long mediumImageId)
Specified by:
setMediumImageId in interface ShoppingItemModel

getMediumImageURL

public String getMediumImageURL()
Specified by:
getMediumImageURL in interface ShoppingItemModel

setMediumImageURL

public void setMediumImageURL(String mediumImageURL)
Specified by:
setMediumImageURL in interface ShoppingItemModel

getLargeImage

public boolean getLargeImage()
Specified by:
getLargeImage in interface ShoppingItemModel

isLargeImage

public boolean isLargeImage()
Specified by:
isLargeImage in interface ShoppingItemModel

setLargeImage

public void setLargeImage(boolean largeImage)
Specified by:
setLargeImage in interface ShoppingItemModel

getLargeImageId

public long getLargeImageId()
Specified by:
getLargeImageId in interface ShoppingItemModel

setLargeImageId

public void setLargeImageId(long largeImageId)
Specified by:
setLargeImageId in interface ShoppingItemModel

getLargeImageURL

public String getLargeImageURL()
Specified by:
getLargeImageURL in interface ShoppingItemModel

setLargeImageURL

public void setLargeImageURL(String largeImageURL)
Specified by:
setLargeImageURL in interface ShoppingItemModel

toEscapedModel

public ShoppingItem toEscapedModel()
Specified by:
toEscapedModel in interface ShoppingItemModel

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<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
Determines 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
Determines if this model instance has been wrapped with an HTML auto escape handler.

Specified by:
isEscapedModel in interface BaseModel<ShoppingItem>
Specified by:
isEscapedModel in interface ShoppingItemModel
Returns:
true if this model instance has been wrapped with an HTML auto escape handler; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance has been wrapped with an HTML auto escape handler.

A model instance can be wrapped with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<ShoppingItem>
Specified by:
setEscapedModel in interface ShoppingItemModel
Parameters:
escapedModel - whether this model instance has been wrapped with an HTML auto escape handler
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingItem>
Specified by:
getPrimaryKeyObj in interface ShoppingItemModel
Returns:
the primary key

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<ShoppingItem>
Specified by:
getExpandoBridge in interface ShoppingItemModel
Returns:
the expando bridge

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 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<ShoppingItem>
Specified by:
clone in interface ShoppingItemModel
Overrides:
clone in class Object
Returns:
the clone

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

toString

public String toString()
Specified by:
toString in interface ShoppingItemModel
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<ShoppingItem>
Specified by:
toXmlString in interface ShoppingItemModel
Returns:
the XML representation of this model instance

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

getWrappedShoppingItem

public ShoppingItem getWrappedShoppingItem()

Liferay 6.0.3