Liferay 6.0.5

com.liferay.portlet.shopping.model
Class ShoppingOrderItemWrapper

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

public class ShoppingOrderItemWrapper
extends Object
implements ShoppingOrderItem

This class is a wrapper for ShoppingOrderItem.

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

Constructor Summary
ShoppingOrderItemWrapper(ShoppingOrderItem shoppingOrderItem)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingOrderItem shoppingOrderItem)
           
 String getDescription()
          Gets the description of this shopping order item.
 ExpandoBridge getExpandoBridge()
          Gets the expando bridge for this model instance.
 String getItemId()
          Gets the item id of this shopping order item.
 String getName()
          Gets the name of this shopping order item.
 long getOrderId()
          Gets the order id of this shopping order item.
 long getOrderItemId()
          Gets the order item id of this shopping order item.
 double getPrice()
          Gets the price of this shopping order item.
 long getPrimaryKey()
          Gets the primary key of this shopping order item.
 Serializable getPrimaryKeyObj()
          Gets the primary key of this model instance.
 String getProperties()
          Gets the properties of this shopping order item.
 int getQuantity()
          Gets the quantity of this shopping order item.
 Date getShippedDate()
          Gets the shipped date of this shopping order item.
 String getSku()
          Gets the sku of this shopping order item.
 ShoppingOrderItem getWrappedShoppingOrderItem()
           
 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.
 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 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(String itemId)
          Sets the item id of this shopping order item.
 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 pk)
          Sets the primary key of this shopping order item
 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.
 ShoppingOrderItem toEscapedModel()
          Gets a copy of this shopping order item 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

ShoppingOrderItemWrapper

public ShoppingOrderItemWrapper(ShoppingOrderItem shoppingOrderItem)
Method Detail

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: ShoppingOrderItemModel
Gets 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 pk)
Description copied from interface: ShoppingOrderItemModel
Sets the primary key of this shopping order item

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

getOrderItemId

public long getOrderItemId()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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()
Description copied from interface: ShoppingOrderItemModel
Gets 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)
Description copied from interface: ShoppingOrderItemModel
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

toEscapedModel

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

Specified by:
toEscapedModel in interface ShoppingOrderItemModel
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<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
Determines 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
Determines 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
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<ShoppingOrderItem>
Specified by:
setEscapedModel in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
getPrimaryKeyObj in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
getExpandoBridge in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
setExpandoBridgeAttributes in interface ShoppingOrderItemModel
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<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

toString

public String toString()
Specified by:
toString in interface ShoppingOrderItemModel
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<ShoppingOrderItem>
Specified by:
toXmlString in interface ShoppingOrderItemModel
Returns:
the XML representation of this model instance

getWrappedShoppingOrderItem

public ShoppingOrderItem getWrappedShoppingOrderItem()

Liferay 6.0.5