|
Liferay 6.0.5 | |||||||||
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
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)
|
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 |
---|
public ShoppingOrderItemWrapper(ShoppingOrderItem shoppingOrderItem)
Method Detail |
---|
public long getPrimaryKey()
ShoppingOrderItemModel
getPrimaryKey
in interface ShoppingOrderItemModel
public void setPrimaryKey(long pk)
ShoppingOrderItemModel
setPrimaryKey
in interface ShoppingOrderItemModel
pk
- the primary key of this shopping order itempublic long getOrderItemId()
ShoppingOrderItemModel
getOrderItemId
in interface ShoppingOrderItemModel
public void setOrderItemId(long orderItemId)
ShoppingOrderItemModel
setOrderItemId
in interface ShoppingOrderItemModel
orderItemId
- the order item id of this shopping order itempublic long getOrderId()
ShoppingOrderItemModel
getOrderId
in interface ShoppingOrderItemModel
public void setOrderId(long orderId)
ShoppingOrderItemModel
setOrderId
in interface ShoppingOrderItemModel
orderId
- the order id of this shopping order itempublic String getItemId()
ShoppingOrderItemModel
getItemId
in interface ShoppingOrderItemModel
public void setItemId(String itemId)
ShoppingOrderItemModel
setItemId
in interface ShoppingOrderItemModel
itemId
- the item id of this shopping order itempublic String getSku()
ShoppingOrderItemModel
getSku
in interface ShoppingOrderItemModel
public void setSku(String sku)
ShoppingOrderItemModel
setSku
in interface ShoppingOrderItemModel
sku
- the sku of this shopping order itempublic String getName()
ShoppingOrderItemModel
getName
in interface ShoppingOrderItemModel
public void setName(String name)
ShoppingOrderItemModel
setName
in interface ShoppingOrderItemModel
name
- the name of this shopping order itempublic String getDescription()
ShoppingOrderItemModel
getDescription
in interface ShoppingOrderItemModel
public void setDescription(String description)
ShoppingOrderItemModel
setDescription
in interface ShoppingOrderItemModel
description
- the description of this shopping order itempublic String getProperties()
ShoppingOrderItemModel
getProperties
in interface ShoppingOrderItemModel
public void setProperties(String properties)
ShoppingOrderItemModel
setProperties
in interface ShoppingOrderItemModel
properties
- the properties of this shopping order itempublic double getPrice()
ShoppingOrderItemModel
getPrice
in interface ShoppingOrderItemModel
public void setPrice(double price)
ShoppingOrderItemModel
setPrice
in interface ShoppingOrderItemModel
price
- the price of this shopping order itempublic int getQuantity()
ShoppingOrderItemModel
getQuantity
in interface ShoppingOrderItemModel
public void setQuantity(int quantity)
ShoppingOrderItemModel
setQuantity
in interface ShoppingOrderItemModel
quantity
- the quantity of this shopping order itempublic Date getShippedDate()
ShoppingOrderItemModel
getShippedDate
in interface ShoppingOrderItemModel
public void setShippedDate(Date shippedDate)
ShoppingOrderItemModel
setShippedDate
in interface ShoppingOrderItemModel
shippedDate
- the shipped date of this shopping order itempublic ShoppingOrderItem toEscapedModel()
ShoppingOrderItemModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface ShoppingOrderItemModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
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
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
isEscapedModel
in interface BaseModel<ShoppingOrderItem>
isEscapedModel
in interface ShoppingOrderItemModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<ShoppingOrderItem>
setEscapedModel
in interface ShoppingOrderItemModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingOrderItem>
getPrimaryKeyObj
in interface ShoppingOrderItemModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingOrderItem>
getExpandoBridge
in interface ShoppingOrderItemModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingOrderItem>
setExpandoBridgeAttributes
in interface ShoppingOrderItemModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.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 String toString()
toString
in interface ShoppingOrderItemModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ShoppingOrderItem>
toXmlString
in interface ShoppingOrderItemModel
public ShoppingOrderItem getWrappedShoppingOrderItem()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |