Liferay 6.0.3

com.liferay.portlet.shopping.model.impl
Class ShoppingItemModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<ShoppingItem>
      extended by com.liferay.portlet.shopping.model.impl.ShoppingItemModelImpl
All Implemented Interfaces:
BaseModel<ShoppingItem>, ShoppingItemModel, Serializable, Cloneable, Comparable<ShoppingItem>
Direct Known Subclasses:
ShoppingItemImpl

public class ShoppingItemModelImpl
extends BaseModelImpl<ShoppingItem>
implements ShoppingItemModel

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

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

Field Summary
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
 
Constructor Summary
ShoppingItemModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingItem shoppingItem)
           
 boolean equals(Object obj)
           
 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()
           
 long getOriginalCompanyId()
           
 long getOriginalLargeImageId()
           
 long getOriginalMediumImageId()
           
 String getOriginalSku()
           
 long getOriginalSmallImageId()
           
 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 isFeatured()
           
 boolean isFields()
           
 boolean isLargeImage()
           
 boolean isMediumImage()
           
 boolean isRequiresShipping()
           
 boolean isSale()
           
 boolean isSmallImage()
           
 boolean isTaxable()
           
 boolean isUseShippingFormula()
           
 void setCategoryId(long categoryId)
           
 void setCompanyId(long companyId)
           
 void setCreateDate(Date createDate)
           
 void setDescription(String description)
           
 void setDiscount(double discount)
           
 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 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()
           
static ShoppingItem toModel(ShoppingItemSoap soapModel)
           
static List<ShoppingItem> toModels(ShoppingItemSoap[] soapModels)
           
 String toString()
           
 String toXmlString()
          Gets the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.shopping.model.ShoppingItemModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setEscapedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

ShoppingItemModelImpl

public ShoppingItemModelImpl()
Method Detail

toModel

public static ShoppingItem toModel(ShoppingItemSoap soapModel)

toModels

public static List<ShoppingItem> toModels(ShoppingItemSoap[] soapModels)

getPrimaryKey

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

setPrimaryKey

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

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

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

getOriginalCompanyId

public long getOriginalCompanyId()

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

getOriginalSku

public String getOriginalSku()

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 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

getOriginalSmallImageId

public long getOriginalSmallImageId()

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

getOriginalMediumImageId

public long getOriginalMediumImageId()

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

getOriginalLargeImageId

public long getOriginalLargeImageId()

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

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
Overrides:
getExpandoBridge in class BaseModelImpl<ShoppingItem>
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
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<ShoppingItem>
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
Specified by:
clone in class BaseModelImpl<ShoppingItem>
Returns:
the clone

compareTo

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

equals

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

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

Liferay 6.0.3