|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.shopping.model.ShoppingItemWrapper
@ProviderType public class ShoppingItemWrapper
This class is a wrapper for ShoppingItem.
ShoppingItem,
Serialized Form| 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 |
getShoppingItemImageURL(ThemeDisplay themeDisplay)
|
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. As of 6.1.0, replaced by getWrappedModel() |
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns true if this model's entity cache is enabled. |
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 |
isFinderCacheEnabled()
Returns true if this model's finder cache is enabled. |
boolean |
isInfiniteStock()
|
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(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
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 ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ShoppingItem>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ShoppingItem>public Object clone()
BaseModel
clone in interface BaseModel<ShoppingItem>clone in interface ShoppingItemModelclone in class Objectpublic int compareTo(ShoppingItem shoppingItem)
compareTo in interface ShoppingItemModelcompareTo in interface Comparable<ShoppingItem>public ShoppingCategory getCategory()
getCategory in interface ShoppingItempublic long getCategoryId()
getCategoryId in interface ShoppingItemModelpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface ShoppingItemModelpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface ShoppingItemModelpublic String getDescription()
getDescription in interface ShoppingItemModelpublic double getDiscount()
getDiscount in interface ShoppingItemModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ShoppingItem>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShoppingItemModelpublic boolean getFeatured()
getFeatured in interface ShoppingItemModelpublic boolean getFields()
getFields in interface ShoppingItemModelpublic String getFieldsQuantities()
getFieldsQuantities in interface ShoppingItemModelpublic String[] getFieldsQuantitiesArray()
getFieldsQuantitiesArray in interface ShoppingItempublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface ShoppingItemModelpublic long getItemId()
getItemId in interface ShoppingItemModel
public List<ShoppingItemPrice> getItemPrices()
throws PortalException
getItemPrices in interface ShoppingItemPortalExceptionpublic boolean getLargeImage()
getLargeImage in interface ShoppingItemModelpublic long getLargeImageId()
getLargeImageId in interface ShoppingItemModelpublic String getLargeImageURL()
getLargeImageURL in interface ShoppingItemModelpublic int getMaxQuantity()
getMaxQuantity in interface ShoppingItemModelpublic boolean getMediumImage()
getMediumImage in interface ShoppingItemModelpublic long getMediumImageId()
getMediumImageId in interface ShoppingItemModelpublic String getMediumImageURL()
getMediumImageURL in interface ShoppingItemModelpublic int getMinQuantity()
getMinQuantity in interface ShoppingItemModelpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface ShoppingItemModelpublic String getName()
getName in interface ShoppingItemModelpublic double getPrice()
getPrice in interface ShoppingItemModelpublic long getPrimaryKey()
getPrimaryKey in interface ShoppingItemModelpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ShoppingItem>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShoppingItemModelpublic String getProperties()
getProperties in interface ShoppingItemModelpublic boolean getRequiresShipping()
getRequiresShipping in interface ShoppingItemModelpublic boolean getSale()
getSale in interface ShoppingItemModelpublic double getShipping()
getShipping in interface ShoppingItemModelpublic String getShoppingItemImageURL(ThemeDisplay themeDisplay)
getShoppingItemImageURL in interface ShoppingItempublic String getSku()
getSku in interface ShoppingItemModelpublic boolean getSmallImage()
getSmallImage in interface ShoppingItemModelpublic long getSmallImageId()
getSmallImageId in interface ShoppingItemModelpublic String getSmallImageURL()
getSmallImageURL in interface ShoppingItemModelpublic int getStockQuantity()
getStockQuantity in interface ShoppingItemModelpublic boolean getTaxable()
getTaxable in interface ShoppingItemModelpublic boolean getUseShippingFormula()
getUseShippingFormula in interface ShoppingItemModelpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface ShoppingItemModelpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface ShoppingItemModelpublic String getUserUuid()
getUserUuid in interface AuditedModelgetUserUuid in interface ShoppingItemModelpublic int hashCode()
hashCode in interface ShoppingItemModelhashCode in class Objectpublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<ShoppingItem>isCachedModel in interface ShoppingItemModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<ShoppingItem>isEscapedModel in interface ShoppingItemModeltrue if this model instance is escaped;
false otherwisepublic boolean isFeatured()
true if this shopping item is featured.
isFeatured in interface ShoppingItemModeltrue if this shopping item is featured; false otherwisepublic boolean isFields()
true if this shopping item is fields.
isFields in interface ShoppingItemModeltrue if this shopping item is fields; false otherwisepublic boolean isInfiniteStock()
isInfiniteStock in interface ShoppingItempublic boolean isLargeImage()
true if this shopping item is large image.
isLargeImage in interface ShoppingItemModeltrue if this shopping item is large image; false otherwisepublic boolean isMediumImage()
true if this shopping item is medium image.
isMediumImage in interface ShoppingItemModeltrue if this shopping item is medium image; false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<ShoppingItem>isNew in interface ShoppingItemModeltrue if this model instance does not yet exist in
the database; false otherwisepublic boolean isRequiresShipping()
true if this shopping item is requires shipping.
isRequiresShipping in interface ShoppingItemModeltrue if this shopping item is requires shipping; false otherwisepublic boolean isSale()
true if this shopping item is sale.
isSale in interface ShoppingItemModeltrue if this shopping item is sale; false otherwisepublic boolean isSmallImage()
true if this shopping item is small image.
isSmallImage in interface ShoppingItemModeltrue if this shopping item is small image; false otherwisepublic boolean isTaxable()
true if this shopping item is taxable.
isTaxable in interface ShoppingItemModeltrue if this shopping item is taxable; false otherwisepublic boolean isUseShippingFormula()
true if this shopping item is use shipping formula.
isUseShippingFormula in interface ShoppingItemModeltrue if this shopping item is use shipping formula; false otherwisepublic void persist()
PersistedModel
persist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<ShoppingItem>setCachedModel in interface ShoppingItemModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCategoryId(long categoryId)
setCategoryId in interface ShoppingItemModelcategoryId - the category ID of this shopping itempublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface ShoppingItemModelcompanyId - the company ID of this shopping itempublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface ShoppingItemModelcreateDate - the create date of this shopping itempublic void setDescription(String description)
setDescription in interface ShoppingItemModeldescription - the description of this shopping itempublic void setDiscount(double discount)
setDiscount in interface ShoppingItemModeldiscount - the discount of this shopping itempublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ShoppingItem>setExpandoBridgeAttributes in interface ShoppingItemModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ShoppingItem>setExpandoBridgeAttributes in interface ShoppingItemModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ShoppingItem>setExpandoBridgeAttributes in interface ShoppingItemModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public void setFeatured(boolean featured)
setFeatured in interface ShoppingItemModelfeatured - the featured of this shopping itempublic void setFields(boolean fields)
setFields in interface ShoppingItemModelfields - the fields of this shopping itempublic void setFieldsQuantities(String fieldsQuantities)
setFieldsQuantities in interface ShoppingItemModelfieldsQuantities - the fields quantities of this shopping itempublic void setFieldsQuantitiesArray(String[] fieldsQuantitiesArray)
setFieldsQuantitiesArray in interface ShoppingItempublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface ShoppingItemModelgroupId - the group ID of this shopping itempublic void setItemId(long itemId)
setItemId in interface ShoppingItemModelitemId - the item ID of this shopping itempublic void setLargeImage(boolean largeImage)
setLargeImage in interface ShoppingItemModellargeImage - the large image of this shopping itempublic void setLargeImageId(long largeImageId)
setLargeImageId in interface ShoppingItemModellargeImageId - the large image ID of this shopping itempublic void setLargeImageURL(String largeImageURL)
setLargeImageURL in interface ShoppingItemModellargeImageURL - the large image u r l of this shopping itempublic void setMaxQuantity(int maxQuantity)
setMaxQuantity in interface ShoppingItemModelmaxQuantity - the max quantity of this shopping itempublic void setMediumImage(boolean mediumImage)
setMediumImage in interface ShoppingItemModelmediumImage - the medium image of this shopping itempublic void setMediumImageId(long mediumImageId)
setMediumImageId in interface ShoppingItemModelmediumImageId - the medium image ID of this shopping itempublic void setMediumImageURL(String mediumImageURL)
setMediumImageURL in interface ShoppingItemModelmediumImageURL - the medium image u r l of this shopping itempublic void setMinQuantity(int minQuantity)
setMinQuantity in interface ShoppingItemModelminQuantity - the min quantity of this shopping itempublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface ShoppingItemModelmodifiedDate - the modified date of this shopping itempublic void setName(String name)
setName in interface ShoppingItemModelname - the name of this shopping itempublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<ShoppingItem>setNew in interface ShoppingItemModeln - whether this model instance does not yet exist in the databasepublic void setPrice(double price)
setPrice in interface ShoppingItemModelprice - the price of this shopping itempublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShoppingItemModelprimaryKey - the primary key of this shopping itempublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ShoppingItem>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShoppingItemModelprimaryKeyObj - the primary key of this model instancepublic void setProperties(String properties)
setProperties in interface ShoppingItemModelproperties - the properties of this shopping itempublic void setRequiresShipping(boolean requiresShipping)
setRequiresShipping in interface ShoppingItemModelrequiresShipping - the requires shipping of this shopping itempublic void setSale(boolean sale)
setSale in interface ShoppingItemModelsale - the sale of this shopping itempublic void setShipping(double shipping)
setShipping in interface ShoppingItemModelshipping - the shipping of this shopping itempublic void setSku(String sku)
setSku in interface ShoppingItemModelsku - the sku of this shopping itempublic void setSmallImage(boolean smallImage)
setSmallImage in interface ShoppingItemModelsmallImage - the small image of this shopping itempublic void setSmallImageId(long smallImageId)
setSmallImageId in interface ShoppingItemModelsmallImageId - the small image ID of this shopping itempublic void setSmallImageURL(String smallImageURL)
setSmallImageURL in interface ShoppingItemModelsmallImageURL - the small image u r l of this shopping itempublic void setStockQuantity(int stockQuantity)
setStockQuantity in interface ShoppingItemModelstockQuantity - the stock quantity of this shopping itempublic void setTaxable(boolean taxable)
setTaxable in interface ShoppingItemModeltaxable - the taxable of this shopping itempublic void setUseShippingFormula(boolean useShippingFormula)
setUseShippingFormula in interface ShoppingItemModeluseShippingFormula - the use shipping formula of this shopping itempublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface ShoppingItemModeluserId - the user ID of this shopping itempublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface ShoppingItemModeluserName - the user name of this shopping itempublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface ShoppingItemModeluserUuid - the user uuid of this shopping itempublic CacheModel<ShoppingItem> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ShoppingItem>toCacheModel in interface ShoppingItemModelpublic ShoppingItem toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ShoppingItem>toEscapedModel in interface ShoppingItemModelAutoEscapeBeanHandlerpublic String toString()
toString in interface ShoppingItemModeltoString in class Objectpublic ShoppingItem toUnescapedModel()
toUnescapedModel in interface BaseModel<ShoppingItem>toUnescapedModel in interface ShoppingItemModelpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ShoppingItem>toXmlString in interface ShoppingItemModelpublic boolean equals(Object obj)
equals in class Object@Deprecated public ShoppingItem getWrappedShoppingItem()
getWrappedModel()
public ShoppingItem getWrappedModel()
getWrappedModel in interface ModelWrapper<ShoppingItem>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.
isEntityCacheEnabled in interface BaseModel<ShoppingItem>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.
isFinderCacheEnabled in interface BaseModel<ShoppingItem>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ShoppingItem>
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||