Liferay 6.2-ce-ga5

com.liferay.portlet.shopping.model
Class ShoppingItemPriceWrapper

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

@ProviderType
public class ShoppingItemPriceWrapper
extends Object
implements ShoppingItemPrice, ModelWrapper<ShoppingItemPrice>

This class is a wrapper for ShoppingItemPrice.

See Also:
ShoppingItemPrice, Serialized Form

Constructor 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. As of 6.1.0, replaced by 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(BaseModel<?> baseModel)
           
 void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
 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

ShoppingItemPriceWrapper

public ShoppingItemPriceWrapper(ShoppingItemPrice shoppingItemPrice)
Method Detail

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<ShoppingItemPrice>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<ShoppingItemPrice>

getPrimaryKey

public long getPrimaryKey()
Returns 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 primaryKey)
Sets the primary key of this shopping item price.

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

getItemPriceId

public long getItemPriceId()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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)
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()
Returns 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()
Returns true if this shopping item price is taxable.

Specified by:
isTaxable in interface ShoppingItemPriceModel
Returns:
true if this shopping item price is taxable; false otherwise

setTaxable

public void setTaxable(boolean taxable)
Sets whether this shopping item price is taxable.

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

getShipping

public double getShipping()
Returns 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)
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()
Returns 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()
Returns true if this shopping item price is use shipping formula.

Specified by:
isUseShippingFormula in interface ShoppingItemPriceModel
Returns:
true if this shopping item price is use shipping formula; false otherwise

setUseShippingFormula

public void setUseShippingFormula(boolean useShippingFormula)
Sets whether this shopping item price 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()
Returns 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)
Sets the status of this shopping item price.

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

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true 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
Returns true 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
Returns true 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

getPrimaryKeyObj

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

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

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<ShoppingItemPrice>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingItemPriceModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

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

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

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingItemPrice>
Specified by:
setExpandoBridgeAttributes in interface ShoppingItemPriceModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingItemPrice>
Specified by:
setExpandoBridgeAttributes in interface ShoppingItemPriceModel

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 be applied
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

toCacheModel

public CacheModel<ShoppingItemPrice> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<ShoppingItemPrice>
Specified by:
toCacheModel in interface ShoppingItemPriceModel
Returns:
the cache model object

toEscapedModel

public ShoppingItemPrice toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
toEscapedModel in interface ShoppingItemPriceModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ShoppingItemPrice toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingItemPrice>
Specified by:
toUnescapedModel in interface ShoppingItemPriceModel

toString

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

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns 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

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getWrappedShoppingItemPrice

public ShoppingItemPrice getWrappedShoppingItemPrice()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

public ShoppingItemPrice getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<ShoppingItemPrice>

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<ShoppingItemPrice>

Liferay 6.2-ce-ga5