|
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.ShoppingCouponWrapper
public class ShoppingCouponWrapper
This class is a wrapper for ShoppingCoupon
.
ShoppingCoupon
,
Serialized FormConstructor Summary | |
---|---|
ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ShoppingCoupon shoppingCoupon)
|
boolean |
getActive()
Gets the active of this shopping coupon. |
String |
getCode()
Gets the code of this shopping coupon. |
long |
getCompanyId()
Gets the company id of this shopping coupon. |
long |
getCouponId()
Gets the coupon id of this shopping coupon. |
Date |
getCreateDate()
Gets the create date of this shopping coupon. |
String |
getDescription()
Gets the description of this shopping coupon. |
double |
getDiscount()
Gets the discount of this shopping coupon. |
String |
getDiscountType()
Gets the discount type of this shopping coupon. |
Date |
getEndDate()
Gets the end date of this shopping coupon. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getGroupId()
Gets the group id of this shopping coupon. |
String |
getLimitCategories()
Gets the limit categories of this shopping coupon. |
String |
getLimitSkus()
Gets the limit skus of this shopping coupon. |
double |
getMinOrder()
Gets the min order of this shopping coupon. |
Date |
getModifiedDate()
Gets the modified date of this shopping coupon. |
String |
getName()
Gets the name of this shopping coupon. |
long |
getPrimaryKey()
Gets the primary key of this shopping coupon. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
Date |
getStartDate()
Gets the start date of this shopping coupon. |
long |
getUserId()
Gets the user id of this shopping coupon. |
String |
getUserName()
Gets the user name of this shopping coupon. |
String |
getUserUuid()
Gets the user uuid of this shopping coupon. |
ShoppingCoupon |
getWrappedShoppingCoupon()
|
int |
hashCode()
|
boolean |
hasValidDateRange()
|
boolean |
hasValidEndDate()
|
boolean |
hasValidStartDate()
|
boolean |
isActive()
Determines whether this shopping coupon is active. |
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 |
setActive(boolean active)
Sets whether this {$entity.humanName} is active. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setCode(String code)
Sets the code of this shopping coupon. |
void |
setCompanyId(long companyId)
Sets the company id of this shopping coupon. |
void |
setCouponId(long couponId)
Sets the coupon id of this shopping coupon. |
void |
setCreateDate(Date createDate)
Sets the create date of this shopping coupon. |
void |
setDescription(String description)
Sets the description of this shopping coupon. |
void |
setDiscount(double discount)
Sets the discount of this shopping coupon. |
void |
setDiscountType(String discountType)
Sets the discount type of this shopping coupon. |
void |
setEndDate(Date endDate)
Sets the end date of this shopping coupon. |
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 |
setGroupId(long groupId)
Sets the group id of this shopping coupon. |
void |
setLimitCategories(String limitCategories)
Sets the limit categories of this shopping coupon. |
void |
setLimitSkus(String limitSkus)
Sets the limit skus of this shopping coupon. |
void |
setMinOrder(double minOrder)
Sets the min order of this shopping coupon. |
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this shopping coupon. |
void |
setName(String name)
Sets the name of this shopping coupon. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this shopping coupon |
void |
setStartDate(Date startDate)
Sets the start date of this shopping coupon. |
void |
setUserId(long userId)
Sets the user id of this shopping coupon. |
void |
setUserName(String userName)
Sets the user name of this shopping coupon. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this shopping coupon. |
ShoppingCoupon |
toEscapedModel()
Gets a copy of this shopping coupon 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 ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
Method Detail |
---|
public long getPrimaryKey()
ShoppingCouponModel
getPrimaryKey
in interface ShoppingCouponModel
public void setPrimaryKey(long pk)
ShoppingCouponModel
setPrimaryKey
in interface ShoppingCouponModel
pk
- the primary key of this shopping couponpublic long getCouponId()
ShoppingCouponModel
getCouponId
in interface ShoppingCouponModel
public void setCouponId(long couponId)
ShoppingCouponModel
setCouponId
in interface ShoppingCouponModel
couponId
- the coupon id of this shopping couponpublic long getGroupId()
ShoppingCouponModel
getGroupId
in interface ShoppingCouponModel
public void setGroupId(long groupId)
ShoppingCouponModel
setGroupId
in interface ShoppingCouponModel
groupId
- the group id of this shopping couponpublic long getCompanyId()
ShoppingCouponModel
getCompanyId
in interface ShoppingCouponModel
public void setCompanyId(long companyId)
ShoppingCouponModel
setCompanyId
in interface ShoppingCouponModel
companyId
- the company id of this shopping couponpublic long getUserId()
ShoppingCouponModel
getUserId
in interface ShoppingCouponModel
public void setUserId(long userId)
ShoppingCouponModel
setUserId
in interface ShoppingCouponModel
userId
- the user id of this shopping couponpublic String getUserUuid() throws SystemException
ShoppingCouponModel
getUserUuid
in interface ShoppingCouponModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
ShoppingCouponModel
setUserUuid
in interface ShoppingCouponModel
userUuid
- the user uuid of this shopping couponpublic String getUserName()
ShoppingCouponModel
getUserName
in interface ShoppingCouponModel
public void setUserName(String userName)
ShoppingCouponModel
setUserName
in interface ShoppingCouponModel
userName
- the user name of this shopping couponpublic Date getCreateDate()
ShoppingCouponModel
getCreateDate
in interface ShoppingCouponModel
public void setCreateDate(Date createDate)
ShoppingCouponModel
setCreateDate
in interface ShoppingCouponModel
createDate
- the create date of this shopping couponpublic Date getModifiedDate()
ShoppingCouponModel
getModifiedDate
in interface ShoppingCouponModel
public void setModifiedDate(Date modifiedDate)
ShoppingCouponModel
setModifiedDate
in interface ShoppingCouponModel
modifiedDate
- the modified date of this shopping couponpublic String getCode()
ShoppingCouponModel
getCode
in interface ShoppingCouponModel
public void setCode(String code)
ShoppingCouponModel
setCode
in interface ShoppingCouponModel
code
- the code of this shopping couponpublic String getName()
ShoppingCouponModel
getName
in interface ShoppingCouponModel
public void setName(String name)
ShoppingCouponModel
setName
in interface ShoppingCouponModel
name
- the name of this shopping couponpublic String getDescription()
ShoppingCouponModel
getDescription
in interface ShoppingCouponModel
public void setDescription(String description)
ShoppingCouponModel
setDescription
in interface ShoppingCouponModel
description
- the description of this shopping couponpublic Date getStartDate()
ShoppingCouponModel
getStartDate
in interface ShoppingCouponModel
public void setStartDate(Date startDate)
ShoppingCouponModel
setStartDate
in interface ShoppingCouponModel
startDate
- the start date of this shopping couponpublic Date getEndDate()
ShoppingCouponModel
getEndDate
in interface ShoppingCouponModel
public void setEndDate(Date endDate)
ShoppingCouponModel
setEndDate
in interface ShoppingCouponModel
endDate
- the end date of this shopping couponpublic boolean getActive()
ShoppingCouponModel
getActive
in interface ShoppingCouponModel
public boolean isActive()
ShoppingCouponModel
isActive
in interface ShoppingCouponModel
public void setActive(boolean active)
ShoppingCouponModel
setActive
in interface ShoppingCouponModel
active
- the active of this shopping couponpublic String getLimitCategories()
ShoppingCouponModel
getLimitCategories
in interface ShoppingCouponModel
public void setLimitCategories(String limitCategories)
ShoppingCouponModel
setLimitCategories
in interface ShoppingCouponModel
limitCategories
- the limit categories of this shopping couponpublic String getLimitSkus()
ShoppingCouponModel
getLimitSkus
in interface ShoppingCouponModel
public void setLimitSkus(String limitSkus)
ShoppingCouponModel
setLimitSkus
in interface ShoppingCouponModel
limitSkus
- the limit skus of this shopping couponpublic double getMinOrder()
ShoppingCouponModel
getMinOrder
in interface ShoppingCouponModel
public void setMinOrder(double minOrder)
ShoppingCouponModel
setMinOrder
in interface ShoppingCouponModel
minOrder
- the min order of this shopping couponpublic double getDiscount()
ShoppingCouponModel
getDiscount
in interface ShoppingCouponModel
public void setDiscount(double discount)
ShoppingCouponModel
setDiscount
in interface ShoppingCouponModel
discount
- the discount of this shopping couponpublic String getDiscountType()
ShoppingCouponModel
getDiscountType
in interface ShoppingCouponModel
public void setDiscountType(String discountType)
ShoppingCouponModel
setDiscountType
in interface ShoppingCouponModel
discountType
- the discount type of this shopping couponpublic ShoppingCoupon toEscapedModel()
ShoppingCouponModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface ShoppingCouponModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<ShoppingCoupon>
isNew
in interface ShoppingCouponModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<ShoppingCoupon>
setNew
in interface ShoppingCouponModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<ShoppingCoupon>
isCachedModel
in interface ShoppingCouponModel
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<ShoppingCoupon>
setCachedModel
in interface ShoppingCouponModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<ShoppingCoupon>
isEscapedModel
in interface ShoppingCouponModel
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<ShoppingCoupon>
setEscapedModel
in interface ShoppingCouponModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<ShoppingCoupon>
getPrimaryKeyObj
in interface ShoppingCouponModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<ShoppingCoupon>
getExpandoBridge
in interface ShoppingCouponModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<ShoppingCoupon>
setExpandoBridgeAttributes
in interface ShoppingCouponModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<ShoppingCoupon>
clone
in interface ShoppingCouponModel
clone
in class Object
public int compareTo(ShoppingCoupon shoppingCoupon)
compareTo
in interface ShoppingCouponModel
compareTo
in interface Comparable<ShoppingCoupon>
public int hashCode()
hashCode
in interface ShoppingCouponModel
hashCode
in class Object
public String toString()
toString
in interface ShoppingCouponModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<ShoppingCoupon>
toXmlString
in interface ShoppingCouponModel
public boolean hasValidDateRange()
hasValidDateRange
in interface ShoppingCoupon
public boolean hasValidEndDate()
hasValidEndDate
in interface ShoppingCoupon
public boolean hasValidStartDate()
hasValidStartDate
in interface ShoppingCoupon
public ShoppingCoupon getWrappedShoppingCoupon()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |