|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.model.ShoppingItemWrapper
public class ShoppingItemWrapper
This class is a wrapper for ShoppingItem
.
ShoppingItem
,
Serialized FormConstructor 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 |
---|
public ShoppingItemWrapper(ShoppingItem shoppingItem)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ShoppingItem>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ShoppingItem>
public long getPrimaryKey()
getPrimaryKey
in interface ShoppingItemModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ShoppingItemModel
primaryKey
- the primary key of this shopping itempublic long getItemId()
getItemId
in interface ShoppingItemModel
public void setItemId(long itemId)
setItemId
in interface ShoppingItemModel
itemId
- the item ID of this shopping itempublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface ShoppingItemModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface ShoppingItemModel
groupId
- the group ID of this shopping itempublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface ShoppingItemModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface ShoppingItemModel
companyId
- the company ID of this shopping itempublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface ShoppingItemModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface ShoppingItemModel
userId
- the user ID of this shopping itempublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface ShoppingItemModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface ShoppingItemModel
userUuid
- the user uuid of this shopping itempublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface ShoppingItemModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface ShoppingItemModel
userName
- the user name of this shopping itempublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface ShoppingItemModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface ShoppingItemModel
createDate
- the create date of this shopping itempublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface ShoppingItemModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface ShoppingItemModel
modifiedDate
- the modified date of this shopping itempublic long getCategoryId()
getCategoryId
in interface ShoppingItemModel
public void setCategoryId(long categoryId)
setCategoryId
in interface ShoppingItemModel
categoryId
- the category ID of this shopping itempublic String getSku()
getSku
in interface ShoppingItemModel
public void setSku(String sku)
setSku
in interface ShoppingItemModel
sku
- the sku of this shopping itempublic String getName()
getName
in interface ShoppingItemModel
public void setName(String name)
setName
in interface ShoppingItemModel
name
- the name of this shopping itempublic String getDescription()
getDescription
in interface ShoppingItemModel
public void setDescription(String description)
setDescription
in interface ShoppingItemModel
description
- the description of this shopping itempublic String getProperties()
getProperties
in interface ShoppingItemModel
public void setProperties(String properties)
setProperties
in interface ShoppingItemModel
properties
- the properties of this shopping itempublic boolean getFields()
getFields
in interface ShoppingItemModel
public boolean isFields()
true
if this shopping item is fields.
isFields
in interface ShoppingItemModel
true
if this shopping item is fields; false
otherwisepublic void setFields(boolean fields)
setFields
in interface ShoppingItemModel
fields
- the fields of this shopping itempublic String getFieldsQuantities()
getFieldsQuantities
in interface ShoppingItemModel
public void setFieldsQuantities(String fieldsQuantities)
setFieldsQuantities
in interface ShoppingItem
setFieldsQuantities
in interface ShoppingItemModel
fieldsQuantities
- the fields quantities of this shopping itempublic int getMinQuantity()
getMinQuantity
in interface ShoppingItemModel
public void setMinQuantity(int minQuantity)
setMinQuantity
in interface ShoppingItemModel
minQuantity
- the min quantity of this shopping itempublic int getMaxQuantity()
getMaxQuantity
in interface ShoppingItemModel
public void setMaxQuantity(int maxQuantity)
setMaxQuantity
in interface ShoppingItemModel
maxQuantity
- the max quantity of this shopping itempublic double getPrice()
getPrice
in interface ShoppingItemModel
public void setPrice(double price)
setPrice
in interface ShoppingItemModel
price
- the price of this shopping itempublic double getDiscount()
getDiscount
in interface ShoppingItemModel
public void setDiscount(double discount)
setDiscount
in interface ShoppingItemModel
discount
- the discount of this shopping itempublic boolean getTaxable()
getTaxable
in interface ShoppingItemModel
public boolean isTaxable()
true
if this shopping item is taxable.
isTaxable
in interface ShoppingItemModel
true
if this shopping item is taxable; false
otherwisepublic void setTaxable(boolean taxable)
setTaxable
in interface ShoppingItemModel
taxable
- the taxable of this shopping itempublic double getShipping()
getShipping
in interface ShoppingItemModel
public void setShipping(double shipping)
setShipping
in interface ShoppingItemModel
shipping
- the shipping of this shopping itempublic boolean getUseShippingFormula()
getUseShippingFormula
in interface ShoppingItemModel
public boolean isUseShippingFormula()
true
if this shopping item is use shipping formula.
isUseShippingFormula
in interface ShoppingItemModel
true
if this shopping item is use shipping formula; false
otherwisepublic void setUseShippingFormula(boolean useShippingFormula)
setUseShippingFormula
in interface ShoppingItemModel
useShippingFormula
- the use shipping formula of this shopping itempublic boolean getRequiresShipping()
getRequiresShipping
in interface ShoppingItemModel
public boolean isRequiresShipping()
true
if this shopping item is requires shipping.
isRequiresShipping
in interface ShoppingItemModel
true
if this shopping item is requires shipping; false
otherwisepublic void setRequiresShipping(boolean requiresShipping)
setRequiresShipping
in interface ShoppingItemModel
requiresShipping
- the requires shipping of this shopping itempublic int getStockQuantity()
getStockQuantity
in interface ShoppingItemModel
public void setStockQuantity(int stockQuantity)
setStockQuantity
in interface ShoppingItemModel
stockQuantity
- the stock quantity of this shopping itempublic boolean getFeatured()
getFeatured
in interface ShoppingItemModel
public boolean isFeatured()
true
if this shopping item is featured.
isFeatured
in interface ShoppingItemModel
true
if this shopping item is featured; false
otherwisepublic void setFeatured(boolean featured)
setFeatured
in interface ShoppingItemModel
featured
- the featured of this shopping itempublic boolean getSale()
getSale
in interface ShoppingItemModel
public boolean isSale()
true
if this shopping item is sale.
isSale
in interface ShoppingItemModel
true
if this shopping item is sale; false
otherwisepublic void setSale(boolean sale)
setSale
in interface ShoppingItemModel
sale
- the sale of this shopping itempublic boolean getSmallImage()
getSmallImage
in interface ShoppingItemModel
public boolean isSmallImage()
true
if this shopping item is small image.
isSmallImage
in interface ShoppingItemModel
true
if this shopping item is small image; false
otherwisepublic void setSmallImage(boolean smallImage)
setSmallImage
in interface ShoppingItemModel
smallImage
- the small image of this shopping itempublic long getSmallImageId()
getSmallImageId
in interface ShoppingItemModel
public void setSmallImageId(long smallImageId)
setSmallImageId
in interface ShoppingItemModel
smallImageId
- the small image ID of this shopping itempublic String getSmallImageURL()
getSmallImageURL
in interface ShoppingItemModel
public void setSmallImageURL(String smallImageURL)
setSmallImageURL
in interface ShoppingItemModel
smallImageURL
- the small image u r l of this shopping itempublic boolean getMediumImage()
getMediumImage
in interface ShoppingItemModel
public boolean isMediumImage()
true
if this shopping item is medium image.
isMediumImage
in interface ShoppingItemModel
true
if this shopping item is medium image; false
otherwisepublic void setMediumImage(boolean mediumImage)
setMediumImage
in interface ShoppingItemModel
mediumImage
- the medium image of this shopping itempublic long getMediumImageId()
getMediumImageId
in interface ShoppingItemModel
public void setMediumImageId(long mediumImageId)
setMediumImageId
in interface ShoppingItemModel
mediumImageId
- the medium image ID of this shopping itempublic String getMediumImageURL()
getMediumImageURL
in interface ShoppingItemModel
public void setMediumImageURL(String mediumImageURL)
setMediumImageURL
in interface ShoppingItemModel
mediumImageURL
- the medium image u r l of this shopping itempublic boolean getLargeImage()
getLargeImage
in interface ShoppingItemModel
public boolean isLargeImage()
true
if this shopping item is large image.
isLargeImage
in interface ShoppingItemModel
true
if this shopping item is large image; false
otherwisepublic void setLargeImage(boolean largeImage)
setLargeImage
in interface ShoppingItemModel
largeImage
- the large image of this shopping itempublic long getLargeImageId()
getLargeImageId
in interface ShoppingItemModel
public void setLargeImageId(long largeImageId)
setLargeImageId
in interface ShoppingItemModel
largeImageId
- the large image ID of this shopping itempublic String getLargeImageURL()
getLargeImageURL
in interface ShoppingItemModel
public void setLargeImageURL(String largeImageURL)
setLargeImageURL
in interface ShoppingItemModel
largeImageURL
- the large image u r l of this shopping itempublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<ShoppingItem>
isNew
in interface ShoppingItemModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ShoppingItem>
setNew
in interface ShoppingItemModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<ShoppingItem>
isCachedModel
in interface ShoppingItemModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<ShoppingItem>
setCachedModel
in interface ShoppingItemModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<ShoppingItem>
isEscapedModel
in interface ShoppingItemModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingItem>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ShoppingItemModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ShoppingItem>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ShoppingItemModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingItem>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ShoppingItemModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingItem>
setExpandoBridgeAttributes
in interface ShoppingItemModel
serviceContext
- the service contextServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ShoppingItem>
clone
in interface ShoppingItemModel
clone
in class Object
public int compareTo(ShoppingItem shoppingItem)
compareTo
in interface ShoppingItem
compareTo
in interface ShoppingItemModel
compareTo
in interface Comparable<ShoppingItem>
public int hashCode()
hashCode
in interface ShoppingItemModel
hashCode
in class Object
public CacheModel<ShoppingItem> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ShoppingItem>
toCacheModel
in interface ShoppingItemModel
public ShoppingItem toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ShoppingItem>
toEscapedModel
in interface ShoppingItemModel
AutoEscapeBeanHandler
public ShoppingItem toUnescapedModel()
toUnescapedModel
in interface BaseModel<ShoppingItem>
toUnescapedModel
in interface ShoppingItemModel
public String toString()
toString
in interface ShoppingItemModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ShoppingItem>
toXmlString
in interface ShoppingItemModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic ShoppingCategory getCategory()
getCategory
in interface ShoppingItem
public String[] getFieldsQuantitiesArray()
getFieldsQuantitiesArray
in interface ShoppingItem
public List<ShoppingItemPrice> getItemPrices() throws PortalException, SystemException
getItemPrices
in interface ShoppingItem
PortalException
SystemException
public void setFieldsQuantitiesArray(String[] fieldsQuantitiesArray)
setFieldsQuantitiesArray
in interface ShoppingItem
public boolean equals(Object obj)
equals
in class Object
public ShoppingItem getWrappedShoppingItem()
getWrappedModel()
public ShoppingItem getWrappedModel()
getWrappedModel
in interface ModelWrapper<ShoppingItem>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ShoppingItem>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |