Liferay 6.0.3

com.liferay.portlet.shopping.model
Interface ShoppingItemModel

All Superinterfaces:
BaseModel<ShoppingItem>, Cloneable, Comparable<ShoppingItem>, Serializable
All Known Subinterfaces:
ShoppingItem
All Known Implementing Classes:
ShoppingItemImpl, ShoppingItemModelImpl, ShoppingItemWrapper

public interface ShoppingItemModel
extends BaseModel<ShoppingItem>

This interface is a model that represents the ShoppingItem table in the database.

See Also:
ShoppingItem, ShoppingItemImpl, ShoppingItemModelImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingItem shoppingItem)
           
 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()
           
 long getGroupId()
           
 long getItemId()
           
 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()
           
 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 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.
 

Method Detail

getPrimaryKey

long getPrimaryKey()

setPrimaryKey

void setPrimaryKey(long pk)

getItemId

long getItemId()

setItemId

void setItemId(long itemId)

getGroupId

long getGroupId()

setGroupId

void setGroupId(long groupId)

getCompanyId

long getCompanyId()

setCompanyId

void setCompanyId(long companyId)

getUserId

long getUserId()

setUserId

void setUserId(long userId)

getUserUuid

String getUserUuid()
                   throws SystemException
Throws:
SystemException

setUserUuid

void setUserUuid(String userUuid)

getUserName

String getUserName()

setUserName

void setUserName(String userName)

getCreateDate

Date getCreateDate()

setCreateDate

void setCreateDate(Date createDate)

getModifiedDate

Date getModifiedDate()

setModifiedDate

void setModifiedDate(Date modifiedDate)

getCategoryId

long getCategoryId()

setCategoryId

void setCategoryId(long categoryId)

getSku

String getSku()

setSku

void setSku(String sku)

getName

String getName()

setName

void setName(String name)

getDescription

String getDescription()

setDescription

void setDescription(String description)

getProperties

String getProperties()

setProperties

void setProperties(String properties)

getFields

boolean getFields()

isFields

boolean isFields()

setFields

void setFields(boolean fields)

getFieldsQuantities

String getFieldsQuantities()

setFieldsQuantities

void setFieldsQuantities(String fieldsQuantities)

getMinQuantity

int getMinQuantity()

setMinQuantity

void setMinQuantity(int minQuantity)

getMaxQuantity

int getMaxQuantity()

setMaxQuantity

void setMaxQuantity(int maxQuantity)

getPrice

double getPrice()

setPrice

void setPrice(double price)

getDiscount

double getDiscount()

setDiscount

void setDiscount(double discount)

getTaxable

boolean getTaxable()

isTaxable

boolean isTaxable()

setTaxable

void setTaxable(boolean taxable)

getShipping

double getShipping()

setShipping

void setShipping(double shipping)

getUseShippingFormula

boolean getUseShippingFormula()

isUseShippingFormula

boolean isUseShippingFormula()

setUseShippingFormula

void setUseShippingFormula(boolean useShippingFormula)

getRequiresShipping

boolean getRequiresShipping()

isRequiresShipping

boolean isRequiresShipping()

setRequiresShipping

void setRequiresShipping(boolean requiresShipping)

getStockQuantity

int getStockQuantity()

setStockQuantity

void setStockQuantity(int stockQuantity)

getFeatured

boolean getFeatured()

isFeatured

boolean isFeatured()

setFeatured

void setFeatured(boolean featured)

getSale

boolean getSale()

isSale

boolean isSale()

setSale

void setSale(boolean sale)

getSmallImage

boolean getSmallImage()

isSmallImage

boolean isSmallImage()

setSmallImage

void setSmallImage(boolean smallImage)

getSmallImageId

long getSmallImageId()

setSmallImageId

void setSmallImageId(long smallImageId)

getSmallImageURL

String getSmallImageURL()

setSmallImageURL

void setSmallImageURL(String smallImageURL)

getMediumImage

boolean getMediumImage()

isMediumImage

boolean isMediumImage()

setMediumImage

void setMediumImage(boolean mediumImage)

getMediumImageId

long getMediumImageId()

setMediumImageId

void setMediumImageId(long mediumImageId)

getMediumImageURL

String getMediumImageURL()

setMediumImageURL

void setMediumImageURL(String mediumImageURL)

getLargeImage

boolean getLargeImage()

isLargeImage

boolean isLargeImage()

setLargeImage

void setLargeImage(boolean largeImage)

getLargeImageId

long getLargeImageId()

setLargeImageId

void setLargeImageId(long largeImageId)

getLargeImageURL

String getLargeImageURL()

setLargeImageURL

void setLargeImageURL(String largeImageURL)

toEscapedModel

ShoppingItem toEscapedModel()

isNew

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>
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

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>
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

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>
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

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>
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

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>
Returns:
true if this model instance has been wrapped with an HTML auto escape handler; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

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>
Parameters:
escapedModel - whether this model instance has been wrapped with an HTML auto escape handler
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

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

getExpandoBridge

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

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

setExpandoBridgeAttributes

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>
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<ShoppingItem>
Returns:
the clone

compareTo

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

hashCode

int hashCode()
Overrides:
hashCode in class Object

toString

String toString()
Overrides:
toString in class Object

toXmlString

String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<ShoppingItem>
Returns:
the XML representation of this model instance

Liferay 6.0.3