Liferay 6.0.5

com.liferay.portlet.shopping.model
Class ShoppingItemPriceWrapper

java.lang.Object
  extended by com.liferay.portlet.shopping.model.ShoppingItemPriceWrapper
All Implemented Interfaces:
BaseModel<ShoppingItemPrice>, ShoppingItemPrice, ShoppingItemPriceModel, Serializable, Cloneable, Comparable<ShoppingItemPrice>

public class ShoppingItemPriceWrapper
extends Object
implements ShoppingItemPrice

This class is a wrapper for ShoppingItemPrice.

See Also:
ShoppingItemPrice, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

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()
          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

ShoppingItemPriceWrapper

public ShoppingItemPriceWrapper(ShoppingItemPrice shoppingItemPrice)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ShoppingItemPriceModel
Gets the primary key of this shopping item price.

Specified by:
getPrimaryKey in interface ShoppingItemPriceModel
Returns:
the primary key of this shopping item price

setPrimaryKey

public void setPrimaryKey(long pk)
Description copied from interface: ShoppingItemPriceModel
Sets the primary key of this shopping item price

Specified by:
setPrimaryKey in interface ShoppingItemPriceModel
Parameters:
pk - the primary key of this shopping item price

getItemPriceId

public long getItemPriceId()
Description copied from interface: ShoppingItemPriceModel
Gets the item price id of this shopping item price.

Specified by:
getItemPriceId in interface ShoppingItemPriceModel
Returns:
the item price id of this shopping item price

setItemPriceId

public void setItemPriceId(long itemPriceId)
Description copied from interface: ShoppingItemPriceModel
Sets the item price id of this shopping item price.

Specified by:
setItemPriceId in interface ShoppingItemPriceModel
Parameters:
itemPriceId - the item price id of this shopping item price

getItemId

public long getItemId()
Description copied from interface: ShoppingItemPriceModel
Gets the item id of this shopping item price.

Specified by:
getItemId in interface ShoppingItemPriceModel
Returns:
the item id of this shopping item price

setItemId

public void setItemId(long itemId)
Description copied from interface: ShoppingItemPriceModel
Sets the item id of this shopping item price.

Specified by:
setItemId in interface ShoppingItemPriceModel
Parameters:
itemId - the item id of this shopping item price

getMinQuantity

public int getMinQuantity()
Description copied from interface: ShoppingItemPriceModel
Gets the min quantity of this shopping item price.

Specified by:
getMinQuantity in interface ShoppingItemPriceModel
Returns:
the min quantity of this shopping item price

setMinQuantity

public void setMinQuantity(int minQuantity)
Description copied from interface: ShoppingItemPriceModel
Sets the min quantity of this shopping item price.

Specified by:
setMinQuantity in interface ShoppingItemPriceModel
Parameters:
minQuantity - the min quantity of this shopping item price

getMaxQuantity

public int getMaxQuantity()
Description copied from interface: ShoppingItemPriceModel
Gets the max quantity of this shopping item price.

Specified by:
getMaxQuantity in interface ShoppingItemPriceModel
Returns:
the max quantity of this shopping item price

setMaxQuantity

public void setMaxQuantity(int maxQuantity)
Description copied from interface: ShoppingItemPriceModel
Sets the max quantity of this shopping item price.

Specified by:
setMaxQuantity in interface ShoppingItemPriceModel
Parameters:
maxQuantity - the max quantity of this shopping item price

getPrice

public double getPrice()
Description copied from interface: ShoppingItemPriceModel
Gets the price of this shopping item price.

Specified by:
getPrice in interface ShoppingItemPriceModel
Returns:
the price of this shopping item price

setPrice

public void setPrice(double price)
Description copied from interface: ShoppingItemPriceModel
Sets the price of this shopping item price.

Specified by:
setPrice in interface ShoppingItemPriceModel
Parameters:
price - the price of this shopping item price

getDiscount

public double getDiscount()
Description copied from interface: ShoppingItemPriceModel
Gets the discount of this shopping item price.

Specified by:
getDiscount in interface ShoppingItemPriceModel
Returns:
the discount of this shopping item price

setDiscount

public void setDiscount(double discount)
Description copied from interface: ShoppingItemPriceModel
Sets the discount of this shopping item price.

Specified by:
setDiscount in interface ShoppingItemPriceModel
Parameters:
discount - the discount of this shopping item price

getTaxable

public boolean getTaxable()
Description copied from interface: ShoppingItemPriceModel
Gets the taxable of this shopping item price.

Specified by:
getTaxable in interface ShoppingItemPriceModel
Returns:
the taxable of this shopping item price

isTaxable

public boolean isTaxable()
Description copied from interface: ShoppingItemPriceModel
Determines whether this shopping item price is taxable.

Specified by:
isTaxable in interface ShoppingItemPriceModel
Returns:
whether this shopping item price is taxable

setTaxable

public void setTaxable(boolean taxable)
Description copied from interface: ShoppingItemPriceModel
Sets whether this {$entity.humanName} is taxable.

Specified by:
setTaxable in interface ShoppingItemPriceModel
Parameters:
taxable - the taxable of this shopping item price

getShipping

public double getShipping()
Description copied from interface: ShoppingItemPriceModel
Gets the shipping of this shopping item price.

Specified by:
getShipping in interface ShoppingItemPriceModel
Returns:
the shipping of this shopping item price

setShipping

public void setShipping(double shipping)
Description copied from interface: ShoppingItemPriceModel
Sets the shipping of this shopping item price.

Specified by:
setShipping in interface ShoppingItemPriceModel
Parameters:
shipping - the shipping of this shopping item price

getUseShippingFormula

public boolean getUseShippingFormula()
Description copied from interface: ShoppingItemPriceModel
Gets the use shipping formula of this shopping item price.

Specified by:
getUseShippingFormula in interface ShoppingItemPriceModel
Returns:
the use shipping formula of this shopping item price

isUseShippingFormula

public boolean isUseShippingFormula()
Description copied from interface: ShoppingItemPriceModel
Determines whether this shopping item price is use shipping formula.

Specified by:
isUseShippingFormula in interface ShoppingItemPriceModel
Returns:
whether this shopping item price is use shipping formula

setUseShippingFormula

public void setUseShippingFormula(boolean useShippingFormula)
Description copied from interface: ShoppingItemPriceModel
Sets whether this {$entity.humanName} is use shipping formula.

Specified by:
setUseShippingFormula in interface ShoppingItemPriceModel
Parameters:
useShippingFormula - the use shipping formula of this shopping item price

getStatus

public int getStatus()
Description copied from interface: ShoppingItemPriceModel
Gets the status of this shopping item price.

Specified by:
getStatus in interface ShoppingItemPriceModel
Returns:
the status of this shopping item price

setStatus

public void setStatus(int status)
Description copied from interface: ShoppingItemPriceModel
Sets the status of this shopping item price.

Specified by:
setStatus in interface ShoppingItemPriceModel
Parameters:
status - the status of this shopping item price

toEscapedModel

public ShoppingItemPrice toEscapedModel()
Description copied from interface: ShoppingItemPriceModel
Gets a copy of this shopping item price as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface ShoppingItemPriceModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

isNew

public boolean isNew()
Description copied from interface: BaseModel
Determines if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<ShoppingItemPrice>
Specified by:
isNew in interface ShoppingItemPriceModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<ShoppingItemPrice>
Specified by:
setNew in interface ShoppingItemPriceModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Determines if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
isCachedModel in interface ShoppingItemPriceModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
setCachedModel in interface ShoppingItemPriceModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Determines if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
isEscapedModel in interface ShoppingItemPriceModel
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
setEscapedModel in interface ShoppingItemPriceModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Gets the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingItemPrice>
Specified by:
getPrimaryKeyObj in interface ShoppingItemPriceModel
Returns:
the primary key of this model instance

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Gets the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<ShoppingItemPrice>
Specified by:
getExpandoBridge in interface ShoppingItemPriceModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingItemPrice>
Specified by:
setExpandoBridgeAttributes in interface ShoppingItemPriceModel
Parameters:
serviceContext - the service context to retrieve the expando bridge attributes from
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<ShoppingItemPrice>
Specified by:
clone in interface ShoppingItemPriceModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ShoppingItemPrice shoppingItemPrice)
Specified by:
compareTo in interface ShoppingItemPriceModel
Specified by:
compareTo in interface Comparable<ShoppingItemPrice>

hashCode

public int hashCode()
Specified by:
hashCode in interface ShoppingItemPriceModel
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface ShoppingItemPriceModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Gets the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<ShoppingItemPrice>
Specified by:
toXmlString in interface ShoppingItemPriceModel
Returns:
the XML representation of this model instance

getWrappedShoppingItemPrice

public ShoppingItemPrice getWrappedShoppingItemPrice()

Liferay 6.0.5