Liferay 6.2.0

com.liferay.portlet.shopping.model
Interface ShoppingOrderItemModel

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

@ProviderType
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 com.liferay.portlet.shopping.model.impl.ShoppingOrderItemModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portlet.shopping.model.impl.ShoppingOrderItemImpl.

See Also:
ShoppingOrderItem, com.liferay.portlet.shopping.model.impl.ShoppingOrderItemImpl, com.liferay.portlet.shopping.model.impl.ShoppingOrderItemModelImpl

Method Summary
abstract  Object clone()
          Creates a shallow clone of this model instance.
abstract  int compareTo(ShoppingOrderItem shoppingOrderItem)
           
abstract  String getDescription()
          Returns the description of this shopping order item.
abstract  ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
abstract  String getItemId()
          Returns the item ID of this shopping order item.
abstract  String getName()
          Returns the name of this shopping order item.
abstract  long getOrderId()
          Returns the order ID of this shopping order item.
abstract  long getOrderItemId()
          Returns the order item ID of this shopping order item.
abstract  double getPrice()
          Returns the price of this shopping order item.
abstract  long getPrimaryKey()
          Returns the primary key of this shopping order item.
abstract  Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
abstract  String getProperties()
          Returns the properties of this shopping order item.
abstract  int getQuantity()
          Returns the quantity of this shopping order item.
abstract  Date getShippedDate()
          Returns the shipped date of this shopping order item.
abstract  String getSku()
          Returns the sku of this shopping order item.
abstract  int hashCode()
           
abstract  boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
abstract  boolean isEscapedModel()
          Returns true if this model instance is escaped.
abstract  boolean isNew()
          Returns true if this model instance does not yet exist in the database.
abstract  void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
abstract  void setDescription(String description)
          Sets the description of this shopping order item.
abstract  void setExpandoBridgeAttributes(BaseModel<?> baseModel)
           
abstract  void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
           
abstract  void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
abstract  void setItemId(String itemId)
          Sets the item ID of this shopping order item.
abstract  void setName(String name)
          Sets the name of this shopping order item.
abstract  void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
abstract  void setOrderId(long orderId)
          Sets the order ID of this shopping order item.
abstract  void setOrderItemId(long orderItemId)
          Sets the order item ID of this shopping order item.
abstract  void setPrice(double price)
          Sets the price of this shopping order item.
abstract  void setPrimaryKey(long primaryKey)
          Sets the primary key of this shopping order item.
abstract  void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
abstract  void setProperties(String properties)
          Sets the properties of this shopping order item.
abstract  void setQuantity(int quantity)
          Sets the quantity of this shopping order item.
abstract  void setShippedDate(Date shippedDate)
          Sets the shipped date of this shopping order item.
abstract  void setSku(String sku)
          Sets the sku of this shopping order item.
abstract  CacheModel<ShoppingOrderItem> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
abstract  ShoppingOrderItem toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
abstract  String toString()
           
abstract  ShoppingOrderItem toUnescapedModel()
           
abstract  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(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<ShoppingOrderItem>

setExpandoBridgeAttributes

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

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 to be applied
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.2.0