|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.model.ShoppingItemPriceWrapper
public class ShoppingItemPriceWrapper
This class is a wrapper for ShoppingItemPrice
.
ShoppingItemPrice
,
Serialized FormConstructor 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()
Gets 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. |
double |
getPrice()
Gets the price of this shopping item price. |
long |
getPrimaryKey()
Gets the primary key of this shopping item price. |
Serializable |
getPrimaryKeyObj()
Gets 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()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
boolean |
isTaxable()
Determines whether this shopping item price is taxable. |
boolean |
isUseShippingFormula()
Determines whether this shopping item price is use shipping formula. |
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 pk)
Sets the primary key of this shopping item price |
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 {$entity.humanName} is taxable. |
void |
setUseShippingFormula(boolean useShippingFormula)
Sets whether this {$entity.humanName} is use shipping formula. |
ShoppingItemPrice |
toEscapedModel()
Gets a copy of this shopping item price as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
String |
toXmlString()
Gets 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 long getPrimaryKey()
ShoppingItemPriceModel
getPrimaryKey
in interface ShoppingItemPriceModel
public void setPrimaryKey(long pk)
ShoppingItemPriceModel
setPrimaryKey
in interface ShoppingItemPriceModel
pk
- the primary key of this shopping item pricepublic long getItemPriceId()
ShoppingItemPriceModel
getItemPriceId
in interface ShoppingItemPriceModel
public void setItemPriceId(long itemPriceId)
ShoppingItemPriceModel
setItemPriceId
in interface ShoppingItemPriceModel
itemPriceId
- the item price id of this shopping item pricepublic long getItemId()
ShoppingItemPriceModel
getItemId
in interface ShoppingItemPriceModel
public void setItemId(long itemId)
ShoppingItemPriceModel
setItemId
in interface ShoppingItemPriceModel
itemId
- the item id of this shopping item pricepublic int getMinQuantity()
ShoppingItemPriceModel
getMinQuantity
in interface ShoppingItemPriceModel
public void setMinQuantity(int minQuantity)
ShoppingItemPriceModel
setMinQuantity
in interface ShoppingItemPriceModel
minQuantity
- the min quantity of this shopping item pricepublic int getMaxQuantity()
ShoppingItemPriceModel
getMaxQuantity
in interface ShoppingItemPriceModel
public void setMaxQuantity(int maxQuantity)
ShoppingItemPriceModel
setMaxQuantity
in interface ShoppingItemPriceModel
maxQuantity
- the max quantity of this shopping item pricepublic double getPrice()
ShoppingItemPriceModel
getPrice
in interface ShoppingItemPriceModel
public void setPrice(double price)
ShoppingItemPriceModel
setPrice
in interface ShoppingItemPriceModel
price
- the price of this shopping item pricepublic double getDiscount()
ShoppingItemPriceModel
getDiscount
in interface ShoppingItemPriceModel
public void setDiscount(double discount)
ShoppingItemPriceModel
setDiscount
in interface ShoppingItemPriceModel
discount
- the discount of this shopping item pricepublic boolean getTaxable()
ShoppingItemPriceModel
getTaxable
in interface ShoppingItemPriceModel
public boolean isTaxable()
ShoppingItemPriceModel
isTaxable
in interface ShoppingItemPriceModel
public void setTaxable(boolean taxable)
ShoppingItemPriceModel
setTaxable
in interface ShoppingItemPriceModel
taxable
- the taxable of this shopping item pricepublic double getShipping()
ShoppingItemPriceModel
getShipping
in interface ShoppingItemPriceModel
public void setShipping(double shipping)
ShoppingItemPriceModel
setShipping
in interface ShoppingItemPriceModel
shipping
- the shipping of this shopping item pricepublic boolean getUseShippingFormula()
ShoppingItemPriceModel
getUseShippingFormula
in interface ShoppingItemPriceModel
public boolean isUseShippingFormula()
ShoppingItemPriceModel
isUseShippingFormula
in interface ShoppingItemPriceModel
public void setUseShippingFormula(boolean useShippingFormula)
ShoppingItemPriceModel
setUseShippingFormula
in interface ShoppingItemPriceModel
useShippingFormula
- the use shipping formula of this shopping item pricepublic int getStatus()
ShoppingItemPriceModel
getStatus
in interface ShoppingItemPriceModel
public void setStatus(int status)
ShoppingItemPriceModel
setStatus
in interface ShoppingItemPriceModel
status
- the status of this shopping item pricepublic ShoppingItemPrice toEscapedModel()
ShoppingItemPriceModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface ShoppingItemPriceModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<ShoppingItemPrice>
isNew
in interface ShoppingItemPriceModel
true
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 ShoppingItemPriceModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<ShoppingItemPrice>
isCachedModel
in interface ShoppingItemPriceModel
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<ShoppingItemPrice>
setCachedModel
in interface ShoppingItemPriceModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<ShoppingItemPrice>
isEscapedModel
in interface ShoppingItemPriceModel
true
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 ShoppingItemPriceModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingItemPrice>
getPrimaryKeyObj
in interface ShoppingItemPriceModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingItemPrice>
getExpandoBridge
in interface ShoppingItemPriceModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingItemPrice>
setExpandoBridgeAttributes
in interface ShoppingItemPriceModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ShoppingItemPrice>
clone
in interface ShoppingItemPriceModel
clone
in class Object
public int compareTo(ShoppingItemPrice shoppingItemPrice)
compareTo
in interface ShoppingItemPriceModel
compareTo
in interface Comparable<ShoppingItemPrice>
public int hashCode()
hashCode
in interface ShoppingItemPriceModel
hashCode
in class Object
public String toString()
toString
in interface ShoppingItemPriceModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ShoppingItemPrice>
toXmlString
in interface ShoppingItemPriceModel
public ShoppingItemPrice getWrappedShoppingItemPrice()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |