Liferay 6.0.3

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()
           
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 long getItemId()
           
 long getItemPriceId()
           
 int getMaxQuantity()
           
 int getMinQuantity()
           
 double getPrice()
           
 long getPrimaryKey()
           
 Serializable getPrimaryKeyObj()
          Gets the primary key for this model instance.
 double getShipping()
           
 int getStatus()
           
 boolean getTaxable()
           
 boolean getUseShippingFormula()
           
 ShoppingItemPrice getWrappedShoppingItemPrice()
           
 int hashCode()
           
 boolean isCachedModel()
          Determines if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Determines if this model instance has been wrapped with an HTML auto escape handler.
 boolean isNew()
          Determines if this model instance does not yet exist in the database.
 boolean isTaxable()
           
 boolean isUseShippingFormula()
           
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setDiscount(double discount)
           
 void setEscapedModel(boolean escapedModel)
          Sets whether this model instance has been wrapped with an HTML auto escape handler.
 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)
           
 void setItemPriceId(long itemPriceId)
           
 void setMaxQuantity(int maxQuantity)
           
 void setMinQuantity(int minQuantity)
           
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPrice(double price)
           
 void setPrimaryKey(long pk)
           
 void setShipping(double shipping)
           
 void setStatus(int status)
           
 void setTaxable(boolean taxable)
           
 void setUseShippingFormula(boolean useShippingFormula)
           
 ShoppingItemPrice toEscapedModel()
           
 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()
Specified by:
getPrimaryKey in interface ShoppingItemPriceModel

setPrimaryKey

public void setPrimaryKey(long pk)
Specified by:
setPrimaryKey in interface ShoppingItemPriceModel

getItemPriceId

public long getItemPriceId()
Specified by:
getItemPriceId in interface ShoppingItemPriceModel

setItemPriceId

public void setItemPriceId(long itemPriceId)
Specified by:
setItemPriceId in interface ShoppingItemPriceModel

getItemId

public long getItemId()
Specified by:
getItemId in interface ShoppingItemPriceModel

setItemId

public void setItemId(long itemId)
Specified by:
setItemId in interface ShoppingItemPriceModel

getMinQuantity

public int getMinQuantity()
Specified by:
getMinQuantity in interface ShoppingItemPriceModel

setMinQuantity

public void setMinQuantity(int minQuantity)
Specified by:
setMinQuantity in interface ShoppingItemPriceModel

getMaxQuantity

public int getMaxQuantity()
Specified by:
getMaxQuantity in interface ShoppingItemPriceModel

setMaxQuantity

public void setMaxQuantity(int maxQuantity)
Specified by:
setMaxQuantity in interface ShoppingItemPriceModel

getPrice

public double getPrice()
Specified by:
getPrice in interface ShoppingItemPriceModel

setPrice

public void setPrice(double price)
Specified by:
setPrice in interface ShoppingItemPriceModel

getDiscount

public double getDiscount()
Specified by:
getDiscount in interface ShoppingItemPriceModel

setDiscount

public void setDiscount(double discount)
Specified by:
setDiscount in interface ShoppingItemPriceModel

getTaxable

public boolean getTaxable()
Specified by:
getTaxable in interface ShoppingItemPriceModel

isTaxable

public boolean isTaxable()
Specified by:
isTaxable in interface ShoppingItemPriceModel

setTaxable

public void setTaxable(boolean taxable)
Specified by:
setTaxable in interface ShoppingItemPriceModel

getShipping

public double getShipping()
Specified by:
getShipping in interface ShoppingItemPriceModel

setShipping

public void setShipping(double shipping)
Specified by:
setShipping in interface ShoppingItemPriceModel

getUseShippingFormula

public boolean getUseShippingFormula()
Specified by:
getUseShippingFormula in interface ShoppingItemPriceModel

isUseShippingFormula

public boolean isUseShippingFormula()
Specified by:
isUseShippingFormula in interface ShoppingItemPriceModel

setUseShippingFormula

public void setUseShippingFormula(boolean useShippingFormula)
Specified by:
setUseShippingFormula in interface ShoppingItemPriceModel

getStatus

public int getStatus()
Specified by:
getStatus in interface ShoppingItemPriceModel

setStatus

public void setStatus(int status)
Specified by:
setStatus in interface ShoppingItemPriceModel

toEscapedModel

public ShoppingItemPrice toEscapedModel()
Specified by:
toEscapedModel in interface ShoppingItemPriceModel

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 has been wrapped with an HTML auto escape handler.

Specified by:
isEscapedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
isEscapedModel in interface ShoppingItemPriceModel
Returns:
true if this model instance has been wrapped with an HTML auto escape handler; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance has been wrapped with an HTML auto escape handler.

A model instance can be wrapped 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 has been wrapped with an HTML auto escape handler
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<ShoppingItemPrice>
Specified by:
getPrimaryKeyObj in interface ShoppingItemPriceModel
Returns:
the primary key

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

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 clone

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.3