|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.shopping.model.ShoppingCouponWrapper
public class ShoppingCouponWrapper
This class is a wrapper for ShoppingCoupon.
ShoppingCoupon,
Serialized Form| Constructor Summary | |
|---|---|
ShoppingCouponWrapper(ShoppingCoupon shoppingCoupon)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(ShoppingCoupon shoppingCoupon)
|
boolean |
getActive()
Returns the active of this shopping coupon. |
String |
getCode()
Returns the code of this shopping coupon. |
long |
getCompanyId()
Returns the company ID of this shopping coupon. |
long |
getCouponId()
Returns the coupon ID of this shopping coupon. |
Date |
getCreateDate()
Returns the create date of this shopping coupon. |
String |
getDescription()
Returns the description of this shopping coupon. |
double |
getDiscount()
Returns the discount of this shopping coupon. |
String |
getDiscountType()
Returns the discount type of this shopping coupon. |
Date |
getEndDate()
Returns the end date of this shopping coupon. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this shopping coupon. |
String |
getLimitCategories()
Returns the limit categories of this shopping coupon. |
String |
getLimitSkus()
Returns the limit skus of this shopping coupon. |
double |
getMinOrder()
Returns the min order of this shopping coupon. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this shopping coupon. |
String |
getName()
Returns the name of this shopping coupon. |
long |
getPrimaryKey()
Returns the primary key of this shopping coupon. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
Date |
getStartDate()
Returns the start date of this shopping coupon. |
long |
getUserId()
Returns the user ID of this shopping coupon. |
String |
getUserName()
Returns the user name of this shopping coupon. |
String |
getUserUuid()
Returns the user uuid of this shopping coupon. |
ShoppingCoupon |
getWrappedModel()
|
ShoppingCoupon |
getWrappedShoppingCoupon()
Deprecated. Renamed to getWrappedModel() |
int |
hashCode()
|
boolean |
hasValidDateRange()
|
boolean |
hasValidEndDate()
|
boolean |
hasValidStartDate()
|
boolean |
isActive()
Returns true if this shopping coupon is active. |
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 |
setActive(boolean active)
Sets whether this shopping coupon 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 |
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 |
setModelAttributes(Map<String,Object> attributes)
|
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 primaryKey)
Sets the primary key of this shopping coupon. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
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. |
CacheModel<ShoppingCoupon> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
ShoppingCoupon |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler. |
String |
toString()
|
ShoppingCoupon |
toUnescapedModel()
|
String |
toXmlString()
Returns 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 Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<ShoppingCoupon>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<ShoppingCoupon>public long getPrimaryKey()
getPrimaryKey in interface ShoppingCouponModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface ShoppingCouponModelprimaryKey - the primary key of this shopping couponpublic long getCouponId()
getCouponId in interface ShoppingCouponModelpublic void setCouponId(long couponId)
setCouponId in interface ShoppingCouponModelcouponId - the coupon ID of this shopping couponpublic long getGroupId()
getGroupId in interface GroupedModelgetGroupId in interface ShoppingCouponModelpublic void setGroupId(long groupId)
setGroupId in interface GroupedModelsetGroupId in interface ShoppingCouponModelgroupId - the group ID of this shopping couponpublic long getCompanyId()
getCompanyId in interface AuditedModelgetCompanyId in interface ShoppingCouponModelpublic void setCompanyId(long companyId)
setCompanyId in interface AuditedModelsetCompanyId in interface ShoppingCouponModelcompanyId - the company ID of this shopping couponpublic long getUserId()
getUserId in interface AuditedModelgetUserId in interface ShoppingCouponModelpublic void setUserId(long userId)
setUserId in interface AuditedModelsetUserId in interface ShoppingCouponModeluserId - the user ID of this shopping coupon
public String getUserUuid()
throws SystemException
getUserUuid in interface AuditedModelgetUserUuid in interface ShoppingCouponModelSystemException - if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid in interface AuditedModelsetUserUuid in interface ShoppingCouponModeluserUuid - the user uuid of this shopping couponpublic String getUserName()
getUserName in interface AuditedModelgetUserName in interface ShoppingCouponModelpublic void setUserName(String userName)
setUserName in interface AuditedModelsetUserName in interface ShoppingCouponModeluserName - the user name of this shopping couponpublic Date getCreateDate()
getCreateDate in interface AuditedModelgetCreateDate in interface ShoppingCouponModelpublic void setCreateDate(Date createDate)
setCreateDate in interface AuditedModelsetCreateDate in interface ShoppingCouponModelcreateDate - the create date of this shopping couponpublic Date getModifiedDate()
getModifiedDate in interface AuditedModelgetModifiedDate in interface ShoppingCouponModelpublic void setModifiedDate(Date modifiedDate)
setModifiedDate in interface AuditedModelsetModifiedDate in interface ShoppingCouponModelmodifiedDate - the modified date of this shopping couponpublic String getCode()
getCode in interface ShoppingCouponModelpublic void setCode(String code)
setCode in interface ShoppingCouponModelcode - the code of this shopping couponpublic String getName()
getName in interface ShoppingCouponModelpublic void setName(String name)
setName in interface ShoppingCouponModelname - the name of this shopping couponpublic String getDescription()
getDescription in interface ShoppingCouponModelpublic void setDescription(String description)
setDescription in interface ShoppingCouponModeldescription - the description of this shopping couponpublic Date getStartDate()
getStartDate in interface ShoppingCouponModelpublic void setStartDate(Date startDate)
setStartDate in interface ShoppingCouponModelstartDate - the start date of this shopping couponpublic Date getEndDate()
getEndDate in interface ShoppingCouponModelpublic void setEndDate(Date endDate)
setEndDate in interface ShoppingCouponModelendDate - the end date of this shopping couponpublic boolean getActive()
getActive in interface ShoppingCouponModelpublic boolean isActive()
true if this shopping coupon is active.
isActive in interface ShoppingCouponModeltrue if this shopping coupon is active; false otherwisepublic void setActive(boolean active)
setActive in interface ShoppingCouponModelactive - the active of this shopping couponpublic String getLimitCategories()
getLimitCategories in interface ShoppingCouponModelpublic void setLimitCategories(String limitCategories)
setLimitCategories in interface ShoppingCouponModellimitCategories - the limit categories of this shopping couponpublic String getLimitSkus()
getLimitSkus in interface ShoppingCouponModelpublic void setLimitSkus(String limitSkus)
setLimitSkus in interface ShoppingCouponModellimitSkus - the limit skus of this shopping couponpublic double getMinOrder()
getMinOrder in interface ShoppingCouponModelpublic void setMinOrder(double minOrder)
setMinOrder in interface ShoppingCouponModelminOrder - the min order of this shopping couponpublic double getDiscount()
getDiscount in interface ShoppingCouponModelpublic void setDiscount(double discount)
setDiscount in interface ShoppingCouponModeldiscount - the discount of this shopping couponpublic String getDiscountType()
getDiscountType in interface ShoppingCouponModelpublic void setDiscountType(String discountType)
setDiscountType in interface ShoppingCouponModeldiscountType - the discount type of this shopping couponpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.
isNew in interface BaseModel<ShoppingCoupon>isNew in interface ShoppingCouponModeltrue 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 ShoppingCouponModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.
isCachedModel in interface BaseModel<ShoppingCoupon>isCachedModel in interface ShoppingCouponModeltrue 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 ShoppingCouponModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.
isEscapedModel in interface BaseModel<ShoppingCoupon>isEscapedModel in interface ShoppingCouponModeltrue if this model instance is escaped;
false otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<ShoppingCoupon>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface ShoppingCouponModelpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj in interface BaseModel<ShoppingCoupon>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface ShoppingCouponModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<ShoppingCoupon>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface ShoppingCouponModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<ShoppingCoupon>setExpandoBridgeAttributes in interface ShoppingCouponModelserviceContext - the service contextServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<ShoppingCoupon>clone in interface ShoppingCouponModelclone in class Objectpublic int compareTo(ShoppingCoupon shoppingCoupon)
compareTo in interface ShoppingCouponModelcompareTo in interface Comparable<ShoppingCoupon>public int hashCode()
hashCode in interface ShoppingCouponModelhashCode in class Objectpublic CacheModel<ShoppingCoupon> toCacheModel()
BaseModel
toCacheModel in interface BaseModel<ShoppingCoupon>toCacheModel in interface ShoppingCouponModelpublic ShoppingCoupon toEscapedModel()
BaseModelAutoEscapeBeanHandler.
toEscapedModel in interface BaseModel<ShoppingCoupon>toEscapedModel in interface ShoppingCouponModelAutoEscapeBeanHandlerpublic ShoppingCoupon toUnescapedModel()
toUnescapedModel in interface BaseModel<ShoppingCoupon>toUnescapedModel in interface ShoppingCouponModelpublic String toString()
toString in interface ShoppingCouponModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<ShoppingCoupon>toXmlString in interface ShoppingCouponModel
public void persist()
throws SystemException
PersistedModel
persist in interface PersistedModelSystemException - if a system exception occurredpublic boolean hasValidDateRange()
hasValidDateRange in interface ShoppingCouponpublic boolean hasValidEndDate()
hasValidEndDate in interface ShoppingCouponpublic boolean hasValidStartDate()
hasValidStartDate in interface ShoppingCouponpublic ShoppingCoupon getWrappedShoppingCoupon()
getWrappedModel()
public ShoppingCoupon getWrappedModel()
getWrappedModel in interface ModelWrapper<ShoppingCoupon>public void resetOriginalValues()
BaseModel
resetOriginalValues in interface BaseModel<ShoppingCoupon>
|
Liferay 6.2.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||