|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.shopping.model.ShoppingItemPriceWrapper
public class ShoppingItemPriceWrapper
This class is a wrapper for ShoppingItemPrice.
ShoppingItemPrice,
Serialized Form| Constructor Summary | |
|---|---|
ShoppingItemPriceWrapper(ShoppingItemPrice shoppingItemPrice)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ShoppingItemPrice shoppingItemPrice)
|
double |
getDiscount()
Gets the discount of this shopping item price. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getItemId()
Gets the item ID of this shopping item price. |
long |
getItemPriceId()
Gets the item price ID of this shopping item price. |
int |
getMaxQuantity()
Gets the max quantity of this shopping item price. |
int |
getMinQuantity()
Gets the min quantity of this shopping item price. |
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
double |
getPrice()
Gets the price of this shopping item price. |
long |
getPrimaryKey()
Gets the primary key of this shopping item price. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
double |
getShipping()
Gets the shipping of this shopping item price. |
int |
getStatus()
Gets the status of this shopping item price. |
boolean |
getTaxable()
Gets the taxable of this shopping item price. |
boolean |
getUseShippingFormula()
Gets the use shipping formula of this shopping item price. |
ShoppingItemPrice |
getWrappedShoppingItemPrice()
|
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 |
isNew()
Returns true if this model instance does not yet exist in
the database. |
boolean |
isTaxable()
Determines if this shopping item price is taxable. |
boolean |
isUseShippingFormula()
Determines if this shopping item price 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 |
setDiscount(double discount)
Sets the discount of this shopping item price. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setItemId(long itemId)
Sets the item ID of this shopping item price. |
void |
setItemPriceId(long itemPriceId)
Sets the item price ID of this shopping item price. |
void |
setMaxQuantity(int maxQuantity)
Sets the max quantity of this shopping item price. |
void |
setMinQuantity(int minQuantity)
Sets the min quantity of this shopping item price. |
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 price. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this shopping item price |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
void |
setShipping(double shipping)
Sets the shipping of this shopping item price. |
void |
setStatus(int status)
Sets the status of this shopping item price. |
void |
setTaxable(boolean taxable)
Sets whether this shopping item price is taxable. |
void |
setUseShippingFormula(boolean useShippingFormula)
Sets whether this shopping item price is use shipping formula. |
CacheModel<ShoppingItemPrice> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
ShoppingItemPrice |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShoppingItemPriceWrapper(ShoppingItemPrice shoppingItemPrice)
| Method Detail |
|---|
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic long getPrimaryKey()
getPrimaryKey in interface ShoppingItemPriceModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShoppingItemPriceModelprimaryKey - the primary key of this shopping item pricepublic long getItemPriceId()
getItemPriceId in interface ShoppingItemPriceModelpublic void setItemPriceId(long itemPriceId)
setItemPriceId in interface ShoppingItemPriceModelitemPriceId - the item price ID of this shopping item pricepublic long getItemId()
getItemId in interface ShoppingItemPriceModelpublic void setItemId(long itemId)
setItemId in interface ShoppingItemPriceModelitemId - the item ID of this shopping item pricepublic int getMinQuantity()
getMinQuantity in interface ShoppingItemPriceModelpublic void setMinQuantity(int minQuantity)
setMinQuantity in interface ShoppingItemPriceModelminQuantity - the min quantity of this shopping item pricepublic int getMaxQuantity()
getMaxQuantity in interface ShoppingItemPriceModelpublic void setMaxQuantity(int maxQuantity)
setMaxQuantity in interface ShoppingItemPriceModelmaxQuantity - the max quantity of this shopping item pricepublic double getPrice()
getPrice in interface ShoppingItemPriceModelpublic void setPrice(double price)
setPrice in interface ShoppingItemPriceModelprice - the price of this shopping item pricepublic double getDiscount()
getDiscount in interface ShoppingItemPriceModelpublic void setDiscount(double discount)
setDiscount in interface ShoppingItemPriceModeldiscount - the discount of this shopping item pricepublic boolean getTaxable()
getTaxable in interface ShoppingItemPriceModelpublic boolean isTaxable()
isTaxable in interface ShoppingItemPriceModeltrue if this shopping item price is taxable; false otherwisepublic void setTaxable(boolean taxable)
setTaxable in interface ShoppingItemPriceModeltaxable - the taxable of this shopping item pricepublic double getShipping()
getShipping in interface ShoppingItemPriceModelpublic void setShipping(double shipping)
setShipping in interface ShoppingItemPriceModelshipping - the shipping of this shopping item pricepublic boolean getUseShippingFormula()
getUseShippingFormula in interface ShoppingItemPriceModelpublic boolean isUseShippingFormula()
isUseShippingFormula in interface ShoppingItemPriceModeltrue if this shopping item price is use shipping formula; false otherwisepublic void setUseShippingFormula(boolean useShippingFormula)
setUseShippingFormula in interface ShoppingItemPriceModeluseShippingFormula - the use shipping formula of this shopping item pricepublic int getStatus()
getStatus in interface ShoppingItemPriceModelpublic void setStatus(int status)
setStatus in interface ShoppingItemPriceModelstatus - the status of this shopping item pricepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<ShoppingItemPrice>isNew in interface ShoppingItemPriceModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<ShoppingItemPrice>setNew in interface ShoppingItemPriceModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<ShoppingItemPrice>isCachedModel in interface ShoppingItemPriceModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<ShoppingItemPrice>setCachedModel in interface ShoppingItemPriceModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<ShoppingItemPrice>isEscapedModel in interface ShoppingItemPriceModeltrue if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel method. For example,
UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<ShoppingItemPrice>setEscapedModel in interface ShoppingItemPriceModelescapedModel - whether this model instance is escapedAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ShoppingItemPrice>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShoppingItemPriceModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ShoppingItemPrice>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShoppingItemPriceModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ShoppingItemPrice>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShoppingItemPriceModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ShoppingItemPrice>setExpandoBridgeAttributes in interface ShoppingItemPriceModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<ShoppingItemPrice>clone in interface ShoppingItemPriceModelclone in class Objectpublic int compareTo(ShoppingItemPrice shoppingItemPrice)
compareTo in interface ShoppingItemPriceModelcompareTo in interface Comparable<ShoppingItemPrice>public int hashCode()
hashCode in interface ShoppingItemPriceModelhashCode in class Objectpublic CacheModel<ShoppingItemPrice> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ShoppingItemPrice>toCacheModel in interface ShoppingItemPriceModelpublic ShoppingItemPrice toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ShoppingItemPrice>toEscapedModel in interface ShoppingItemPriceModelAutoEscapeBeanHandlerpublic String toString()
toString in interface ShoppingItemPriceModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ShoppingItemPrice>toXmlString in interface ShoppingItemPriceModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic ShoppingItemPrice getWrappedShoppingItemPrice()
public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ShoppingItemPrice>
|
Liferay 6.0-ee-sp2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||