|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.shopping.model.ShoppingOrderItemWrapper
@ProviderType public class ShoppingOrderItemWrapper
This class is a wrapper for ShoppingOrderItem
.
ShoppingOrderItem
,
Serialized FormConstructor 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 |
---|
public ShoppingOrderItemWrapper(ShoppingOrderItem shoppingOrderItem)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<ShoppingOrderItem>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<ShoppingOrderItem>
public long getPrimaryKey()
getPrimaryKey
in interface ShoppingOrderItemModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface ShoppingOrderItemModel
primaryKey
- the primary key of this shopping order itempublic long getOrderItemId()
getOrderItemId
in interface ShoppingOrderItemModel
public void setOrderItemId(long orderItemId)
setOrderItemId
in interface ShoppingOrderItemModel
orderItemId
- the order item ID of this shopping order itempublic long getOrderId()
getOrderId
in interface ShoppingOrderItemModel
public void setOrderId(long orderId)
setOrderId
in interface ShoppingOrderItemModel
orderId
- the order ID of this shopping order itempublic String getItemId()
getItemId
in interface ShoppingOrderItemModel
public void setItemId(String itemId)
setItemId
in interface ShoppingOrderItemModel
itemId
- the item ID of this shopping order itempublic String getSku()
getSku
in interface ShoppingOrderItemModel
public void setSku(String sku)
setSku
in interface ShoppingOrderItemModel
sku
- the sku of this shopping order itempublic String getName()
getName
in interface ShoppingOrderItemModel
public void setName(String name)
setName
in interface ShoppingOrderItemModel
name
- the name of this shopping order itempublic String getDescription()
getDescription
in interface ShoppingOrderItemModel
public void setDescription(String description)
setDescription
in interface ShoppingOrderItemModel
description
- the description of this shopping order itempublic String getProperties()
getProperties
in interface ShoppingOrderItemModel
public void setProperties(String properties)
setProperties
in interface ShoppingOrderItemModel
properties
- the properties of this shopping order itempublic double getPrice()
getPrice
in interface ShoppingOrderItemModel
public void setPrice(double price)
setPrice
in interface ShoppingOrderItemModel
price
- the price of this shopping order itempublic int getQuantity()
getQuantity
in interface ShoppingOrderItemModel
public void setQuantity(int quantity)
setQuantity
in interface ShoppingOrderItemModel
quantity
- the quantity of this shopping order itempublic Date getShippedDate()
getShippedDate
in interface ShoppingOrderItemModel
public void setShippedDate(Date shippedDate)
setShippedDate
in interface ShoppingOrderItemModel
shippedDate
- the shipped date of this shopping order itempublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<ShoppingOrderItem>
isNew
in interface ShoppingOrderItemModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ShoppingOrderItem>
setNew
in interface ShoppingOrderItemModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<ShoppingOrderItem>
isCachedModel
in interface ShoppingOrderItemModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<ShoppingOrderItem>
setCachedModel
in interface ShoppingOrderItemModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<ShoppingOrderItem>
isEscapedModel
in interface ShoppingOrderItemModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingOrderItem>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface ShoppingOrderItemModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<ShoppingOrderItem>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface ShoppingOrderItemModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingOrderItem>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface ShoppingOrderItemModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<ShoppingOrderItem>
setExpandoBridgeAttributes
in interface ShoppingOrderItemModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<ShoppingOrderItem>
setExpandoBridgeAttributes
in interface ShoppingOrderItemModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingOrderItem>
setExpandoBridgeAttributes
in interface ShoppingOrderItemModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ShoppingOrderItem>
clone
in interface ShoppingOrderItemModel
clone
in class Object
public int compareTo(ShoppingOrderItem shoppingOrderItem)
compareTo
in interface ShoppingOrderItemModel
compareTo
in interface Comparable<ShoppingOrderItem>
public int hashCode()
hashCode
in interface ShoppingOrderItemModel
hashCode
in class Object
public CacheModel<ShoppingOrderItem> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<ShoppingOrderItem>
toCacheModel
in interface ShoppingOrderItemModel
public ShoppingOrderItem toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<ShoppingOrderItem>
toEscapedModel
in interface ShoppingOrderItemModel
AutoEscapeBeanHandler
public ShoppingOrderItem toUnescapedModel()
toUnescapedModel
in interface BaseModel<ShoppingOrderItem>
toUnescapedModel
in interface ShoppingOrderItemModel
public String toString()
toString
in interface ShoppingOrderItemModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ShoppingOrderItem>
toXmlString
in interface ShoppingOrderItemModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public ShoppingOrderItem getWrappedShoppingOrderItem()
getWrappedModel()
public ShoppingOrderItem getWrappedModel()
getWrappedModel
in interface ModelWrapper<ShoppingOrderItem>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<ShoppingOrderItem>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |