Liferay 6.1.2-ce-ga3

com.liferay.portlet.shopping.model
Interface ShoppingOrderItemModel

All Superinterfaces:
BaseModel<ShoppingOrderItem>, ClassedModel, Cloneable, Comparable<ShoppingOrderItem>, Serializable
All Known Subinterfaces:
ShoppingOrderItem
All Known Implementing Classes:
ShoppingOrderItemBaseImpl, ShoppingOrderItemImpl, ShoppingOrderItemModelImpl, ShoppingOrderItemWrapper

public interface ShoppingOrderItemModel
extends BaseModel<ShoppingOrderItem>

The base model interface for the ShoppingOrderItem service. Represents a row in the "ShoppingOrderItem" database table, with each column mapped to a property of this class.

This interface and its corresponding implementation ShoppingOrderItemModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in ShoppingOrderItemImpl.

See Also:
ShoppingOrderItem, ShoppingOrderItemImpl, ShoppingOrderItemModelImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(ShoppingOrderItem shoppingOrderItem)
           
 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.
 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.
 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 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(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 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 interface com.liferay.portal.model.BaseModel
getModelAttributes, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 

Method Detail

getPrimaryKey

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

Returns:
the primary key of this shopping order item

setPrimaryKey

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

Parameters:
primaryKey - the primary key of this shopping order item

getOrderItemId

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

Returns:
the order item ID of this shopping order item

setOrderItemId

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

Parameters:
orderItemId - the order item ID of this shopping order item

getOrderId

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

Returns:
the order ID of this shopping order item

setOrderId

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

Parameters:
orderId - the order ID of this shopping order item

getItemId

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

Returns:
the item ID of this shopping order item

setItemId

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

Parameters:
itemId - the item ID of this shopping order item

getSku

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

Returns:
the sku of this shopping order item

setSku

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

Parameters:
sku - the sku of this shopping order item

getName

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

Returns:
the name of this shopping order item

setName

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

Parameters:
name - the name of this shopping order item

getDescription

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

Returns:
the description of this shopping order item

setDescription

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

Parameters:
description - the description of this shopping order item

getProperties

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

Returns:
the properties of this shopping order item

setProperties

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

Parameters:
properties - the properties of this shopping order item

getPrice

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

Returns:
the price of this shopping order item

setPrice

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

Parameters:
price - the price of this shopping order item

getQuantity

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

Returns:
the quantity of this shopping order item

setQuantity

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

Parameters:
quantity - the quantity of this shopping order item

getShippedDate

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

Returns:
the shipped date of this shopping order item

setShippedDate

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

Parameters:
shippedDate - the shipped date of this shopping order item

isNew

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>
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

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>
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

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>
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

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>
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

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

Specified by:
isEscapedModel in interface BaseModel<ShoppingOrderItem>
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

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
Returns:
the primary key of this model instance

setPrimaryKeyObj

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
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

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
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

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>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

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

Specified by:
clone in interface BaseModel<ShoppingOrderItem>
Returns:
the shallow clone of this model instance

compareTo

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

hashCode

int hashCode()
Overrides:
hashCode in class Object

toCacheModel

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>
Returns:
the cache model object

toEscapedModel

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>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

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

toString

String toString()
Overrides:
toString in class Object

toXmlString

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

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

Liferay 6.1.2-ce-ga3