Liferay 6.2-ce-ga5

com.liferay.portlet.shopping.model
Class ShoppingOrderItemWrapper

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

@ProviderType
public class ShoppingOrderItemWrapper
extends Object
implements ShoppingOrderItem, ModelWrapper<ShoppingOrderItem>

This class is a wrapper for ShoppingOrderItem.

See Also:
ShoppingOrderItem, Serialized Form

Constructor Summary
ShoppingOrderItemWrapper(ShoppingOrderItem shoppingOrderItem)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingOrderItem shoppingOrderItem)
           
 boolean equals(Object obj)
           
 String getDescription()
          Returns the description of this shopping order item.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 String getItemId()
          Returns the item ID of this shopping order item.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Returns the name of this shopping order item.
 long getOrderId()
          Returns the order ID of this shopping order item.
 long getOrderItemId()
          Returns the order item ID of this shopping order item.
 double getPrice()
          Returns the price of this shopping order item.
 long getPrimaryKey()
          Returns the primary key of this shopping order item.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 String getProperties()
          Returns the properties of this shopping order item.
 int getQuantity()
          Returns the quantity of this shopping order item.
 Date getShippedDate()
          Returns the shipped date of this shopping order item.
 String getSku()
          Returns the sku of this shopping order item.
 ShoppingOrderItem getWrappedModel()
           
 ShoppingOrderItem getWrappedShoppingOrderItem()
          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.
 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 setDescription(String description)
          Sets the description of this shopping order item.
 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(String itemId)
          Sets the item ID of this shopping order item.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setName(String name)
          Sets the name of this shopping order item.
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setOrderId(long orderId)
          Sets the order ID of this shopping order item.
 void setOrderItemId(long orderItemId)
          Sets the order item ID of this shopping order item.
 void setPrice(double price)
          Sets the price of this shopping order item.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this shopping order item.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setProperties(String properties)
          Sets the properties of this shopping order item.
 void setQuantity(int quantity)
          Sets the quantity of this shopping order item.
 void setShippedDate(Date shippedDate)
          Sets the shipped date of this shopping order item.
 void setSku(String sku)
          Sets the sku of this shopping order item.
 CacheModel<ShoppingOrderItem> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 ShoppingOrderItem toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 ShoppingOrderItem 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

ShoppingOrderItemWrapper

public ShoppingOrderItemWrapper(ShoppingOrderItem shoppingOrderItem)
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<ShoppingOrderItem>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this shopping order item.

Specified by:
getPrimaryKey in interface ShoppingOrderItemModel
Returns:
the primary key of this shopping order item

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this shopping order item.

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

getOrderItemId

public long getOrderItemId()
Returns the order item ID of this shopping order item.

Specified by:
getOrderItemId in interface ShoppingOrderItemModel
Returns:
the order item ID of this shopping order item

setOrderItemId

public void setOrderItemId(long orderItemId)
Sets the order item ID of this shopping order item.

Specified by:
setOrderItemId in interface ShoppingOrderItemModel
Parameters:
orderItemId - the order item ID of this shopping order item

getOrderId

public long getOrderId()
Returns the order ID of this shopping order item.

Specified by:
getOrderId in interface ShoppingOrderItemModel
Returns:
the order ID of this shopping order item

setOrderId

public void setOrderId(long orderId)
Sets the order ID of this shopping order item.

Specified by:
setOrderId in interface ShoppingOrderItemModel
Parameters:
orderId - the order ID of this shopping order item

getItemId

public String getItemId()
Returns the item ID of this shopping order item.

Specified by:
getItemId in interface ShoppingOrderItemModel
Returns:
the item ID of this shopping order item

setItemId

public void setItemId(String itemId)
Sets the item ID of this shopping order item.

Specified by:
setItemId in interface ShoppingOrderItemModel
Parameters:
itemId - the item ID of this shopping order item

getSku

public String getSku()
Returns the sku of this shopping order item.

Specified by:
getSku in interface ShoppingOrderItemModel
Returns:
the sku of this shopping order item

setSku

public void setSku(String sku)
Sets the sku of this shopping order item.

Specified by:
setSku in interface ShoppingOrderItemModel
Parameters:
sku - the sku of this shopping order item

getName

public String getName()
Returns the name of this shopping order item.

Specified by:
getName in interface ShoppingOrderItemModel
Returns:
the name of this shopping order item

setName

public void setName(String name)
Sets the name of this shopping order item.

Specified by:
setName in interface ShoppingOrderItemModel
Parameters:
name - the name of this shopping order item

getDescription

public String getDescription()
Returns the description of this shopping order item.

Specified by:
getDescription in interface ShoppingOrderItemModel
Returns:
the description of this shopping order item

setDescription

public void setDescription(String description)
Sets the description of this shopping order item.

Specified by:
setDescription in interface ShoppingOrderItemModel
Parameters:
description - the description of this shopping order item

getProperties

public String getProperties()
Returns the properties of this shopping order item.

Specified by:
getProperties in interface ShoppingOrderItemModel
Returns:
the properties of this shopping order item

setProperties

public void setProperties(String properties)
Sets the properties of this shopping order item.

Specified by:
setProperties in interface ShoppingOrderItemModel
Parameters:
properties - the properties of this shopping order item

getPrice

public double getPrice()
Returns the price of this shopping order item.

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

setPrice

public void setPrice(double price)
Sets the price of this shopping order item.

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

getQuantity

public int getQuantity()
Returns the quantity of this shopping order item.

Specified by:
getQuantity in interface ShoppingOrderItemModel
Returns:
the quantity of this shopping order item

setQuantity

public void setQuantity(int quantity)
Sets the quantity of this shopping order item.

Specified by:
setQuantity in interface ShoppingOrderItemModel
Parameters:
quantity - the quantity of this shopping order item

getShippedDate

public Date getShippedDate()
Returns the shipped date of this shopping order item.

Specified by:
getShippedDate in interface ShoppingOrderItemModel
Returns:
the shipped date of this shopping order item

setShippedDate

public void setShippedDate(Date shippedDate)
Sets the shipped date of this shopping order item.

Specified by:
setShippedDate in interface ShoppingOrderItemModel
Parameters:
shippedDate - the shipped date of this shopping order item

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<ShoppingOrderItem>
Specified by:
isNew in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
setNew in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
isCachedModel in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
setCachedModel in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
isEscapedModel in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface ShoppingOrderItemModel
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingOrderItem>
Specified by:
setExpandoBridgeAttributes in interface ShoppingOrderItemModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingOrderItem>
Specified by:
setExpandoBridgeAttributes in interface ShoppingOrderItemModel

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<ShoppingOrderItem>
Specified by:
setExpandoBridgeAttributes in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
clone in interface ShoppingOrderItemModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(ShoppingOrderItem shoppingOrderItem)
Specified by:
compareTo in interface ShoppingOrderItemModel
Specified by:
compareTo in interface Comparable<ShoppingOrderItem>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<ShoppingOrderItem>
Specified by:
toCacheModel in interface ShoppingOrderItemModel
Returns:
the cache model object

toEscapedModel

public ShoppingOrderItem 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<ShoppingOrderItem>
Specified by:
toEscapedModel in interface ShoppingOrderItemModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public ShoppingOrderItem toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<ShoppingOrderItem>
Specified by:
toUnescapedModel in interface ShoppingOrderItemModel

toString

public String toString()
Specified by:
toString in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
toXmlString in interface ShoppingOrderItemModel
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

getWrappedShoppingOrderItem

public ShoppingOrderItem getWrappedShoppingOrderItem()
Deprecated. As of 6.1.0, replaced by getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<ShoppingOrderItem>

Liferay 6.2-ce-ga5