|
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.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)
|
boolean |
equals(Object obj)
|
double |
getDiscount()
Returns the discount of this shopping item price. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getItemId()
Returns the item ID of this shopping item price. |
long |
getItemPriceId()
Returns the item price ID of this shopping item price. |
int |
getMaxQuantity()
Returns the max quantity of this shopping item price. |
int |
getMinQuantity()
Returns the min quantity of this shopping item price. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
double |
getPrice()
Returns the price of this shopping item price. |
long |
getPrimaryKey()
Returns the primary key of this shopping item price. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
double |
getShipping()
Returns the shipping of this shopping item price. |
int |
getStatus()
Returns the status of this shopping item price. |
boolean |
getTaxable()
Returns the taxable of this shopping item price. |
boolean |
getUseShippingFormula()
Returns the use shipping formula of this shopping item price. |
ShoppingItemPrice |
getWrappedModel()
|
ShoppingItemPrice |
getWrappedShoppingItemPrice()
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 |
isNew()
Returns true if this model instance does not yet exist in
the database. |
boolean |
isTaxable()
Returns true if this shopping item price is taxable. |
boolean |
isUseShippingFormula()
Returns true 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 |
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 |
setModelAttributes(Map<String,Object> attributes)
|
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()
|
ShoppingItemPrice |
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 ShoppingItemPriceWrapper(ShoppingItemPrice shoppingItemPrice)
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<ShoppingItemPrice>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ShoppingItemPrice>
public long getPrimaryKey()
getPrimaryKey
in interface ShoppingItemPriceModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ShoppingItemPriceModel
primaryKey
- the primary key of this shopping item pricepublic long getItemPriceId()
getItemPriceId
in interface ShoppingItemPriceModel
public void setItemPriceId(long itemPriceId)
setItemPriceId
in interface ShoppingItemPriceModel
itemPriceId
- the item price ID of this shopping item pricepublic long getItemId()
getItemId
in interface ShoppingItemPriceModel
public void setItemId(long itemId)
setItemId
in interface ShoppingItemPriceModel
itemId
- the item ID of this shopping item pricepublic int getMinQuantity()
getMinQuantity
in interface ShoppingItemPriceModel
public void setMinQuantity(int minQuantity)
setMinQuantity
in interface ShoppingItemPriceModel
minQuantity
- the min quantity of this shopping item pricepublic int getMaxQuantity()
getMaxQuantity
in interface ShoppingItemPriceModel
public void setMaxQuantity(int maxQuantity)
setMaxQuantity
in interface ShoppingItemPriceModel
maxQuantity
- the max quantity of this shopping item pricepublic double getPrice()
getPrice
in interface ShoppingItemPriceModel
public void setPrice(double price)
setPrice
in interface ShoppingItemPriceModel
price
- the price of this shopping item pricepublic double getDiscount()
getDiscount
in interface ShoppingItemPriceModel
public void setDiscount(double discount)
setDiscount
in interface ShoppingItemPriceModel
discount
- the discount of this shopping item pricepublic boolean getTaxable()
getTaxable
in interface ShoppingItemPriceModel
public boolean isTaxable()
true
if this shopping item price is taxable.
isTaxable
in interface ShoppingItemPriceModel
true
if this shopping item price is taxable; false
otherwisepublic void setTaxable(boolean taxable)
setTaxable
in interface ShoppingItemPriceModel
taxable
- the taxable of this shopping item pricepublic double getShipping()
getShipping
in interface ShoppingItemPriceModel
public void setShipping(double shipping)
setShipping
in interface ShoppingItemPriceModel
shipping
- the shipping of this shopping item pricepublic boolean getUseShippingFormula()
getUseShippingFormula
in interface ShoppingItemPriceModel
public boolean isUseShippingFormula()
true
if this shopping item price is use shipping formula.
isUseShippingFormula
in interface ShoppingItemPriceModel
true
if this shopping item price is use shipping formula; false
otherwisepublic void setUseShippingFormula(boolean useShippingFormula)
setUseShippingFormula
in interface ShoppingItemPriceModel
useShippingFormula
- the use shipping formula of this shopping item pricepublic int getStatus()
getStatus
in interface ShoppingItemPriceModel
public void setStatus(int status)
setStatus
in interface ShoppingItemPriceModel
status
- the status of this shopping item pricepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
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
true
if this model instance was retrieved from the
entity cache.
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
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<ShoppingItemPrice>
isEscapedModel
in interface ShoppingItemPriceModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingItemPrice>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ShoppingItemPriceModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ShoppingItemPrice>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ShoppingItemPriceModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingItemPrice>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ShoppingItemPriceModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingItemPrice>
setExpandoBridgeAttributes
in interface ShoppingItemPriceModel
serviceContext
- the service contextServiceContext.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 CacheModel<ShoppingItemPrice> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ShoppingItemPrice>
toCacheModel
in interface ShoppingItemPriceModel
public ShoppingItemPrice toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ShoppingItemPrice>
toEscapedModel
in interface ShoppingItemPriceModel
AutoEscapeBeanHandler
public ShoppingItemPrice toUnescapedModel()
toUnescapedModel
in interface BaseModel<ShoppingItemPrice>
toUnescapedModel
in interface ShoppingItemPriceModel
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 void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public ShoppingItemPrice getWrappedShoppingItemPrice()
getWrappedModel()
public ShoppingItemPrice getWrappedModel()
getWrappedModel
in interface ModelWrapper<ShoppingItemPrice>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ShoppingItemPrice>
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |