@ProviderType public interface ShoppingCouponModel extends BaseModel<ShoppingCoupon>, GroupedModel
This interface and its corresponding implementation com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl 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.ShoppingCouponImpl.
ShoppingCoupon,
com.liferay.portlet.shopping.model.impl.ShoppingCouponImpl,
com.liferay.portlet.shopping.model.impl.ShoppingCouponModelImpl| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(ShoppingCoupon shoppingCoupon) |
boolean |
getActive()
Returns the active of this shopping coupon.
|
java.lang.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.
|
java.util.Date |
getCreateDate()
Returns the create date of this shopping coupon.
|
java.lang.String |
getDescription()
Returns the description of this shopping coupon.
|
double |
getDiscount()
Returns the discount of this shopping coupon.
|
java.lang.String |
getDiscountType()
Returns the discount type of this shopping coupon.
|
java.util.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.
|
java.lang.String |
getLimitCategories()
Returns the limit categories of this shopping coupon.
|
java.lang.String |
getLimitSkus()
Returns the limit skus of this shopping coupon.
|
double |
getMinOrder()
Returns the min order of this shopping coupon.
|
java.util.Date |
getModifiedDate()
Returns the modified date of this shopping coupon.
|
java.lang.String |
getName()
Returns the name of this shopping coupon.
|
long |
getPrimaryKey()
Returns the primary key of this shopping coupon.
|
java.io.Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance.
|
java.util.Date |
getStartDate()
Returns the start date of this shopping coupon.
|
long |
getUserId()
Returns the user ID of this shopping coupon.
|
java.lang.String |
getUserName()
Returns the user name of this shopping coupon.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this shopping coupon.
|
int |
hashCode() |
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 |
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(java.lang.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(java.util.Date createDate)
Sets the create date of this shopping coupon.
|
void |
setDescription(java.lang.String description)
Sets the description of this shopping coupon.
|
void |
setDiscount(double discount)
Sets the discount of this shopping coupon.
|
void |
setDiscountType(java.lang.String discountType)
Sets the discount type of this shopping coupon.
|
void |
setEndDate(java.util.Date endDate)
Sets the end date of this shopping coupon.
|
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 |
setGroupId(long groupId)
Sets the group ID of this shopping coupon.
|
void |
setLimitCategories(java.lang.String limitCategories)
Sets the limit categories of this shopping coupon.
|
void |
setLimitSkus(java.lang.String limitSkus)
Sets the limit skus of this shopping coupon.
|
void |
setMinOrder(double minOrder)
Sets the min order of this shopping coupon.
|
void |
setModifiedDate(java.util.Date modifiedDate)
Sets the modified date of this shopping coupon.
|
void |
setName(java.lang.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(java.io.Serializable primaryKeyObj)
Sets the primary key of this model instance.
|
void |
setStartDate(java.util.Date startDate)
Sets the start date of this shopping coupon.
|
void |
setUserId(long userId)
Sets the user ID of this shopping coupon.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this shopping coupon.
|
void |
setUserUuid(java.lang.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. |
java.lang.String |
toString() |
ShoppingCoupon |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributesgetModelClass, getModelClassNamelong getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey - the primary key of this shopping couponlong getCouponId()
void setCouponId(long couponId)
couponId - the coupon ID of this shopping couponlong getGroupId()
getGroupId in interface GroupedModelvoid setGroupId(long groupId)
setGroupId in interface GroupedModelgroupId - the group ID of this shopping couponlong getCompanyId()
getCompanyId in interface AuditedModelvoid setCompanyId(long companyId)
setCompanyId in interface AuditedModelcompanyId - the company ID of this shopping couponlong getUserId()
getUserId in interface AuditedModelvoid setUserId(long userId)
setUserId in interface AuditedModeluserId - the user ID of this shopping couponjava.lang.String getUserUuid()
getUserUuid in interface AuditedModelvoid setUserUuid(java.lang.String userUuid)
setUserUuid in interface AuditedModeluserUuid - the user uuid of this shopping coupon@AutoEscape java.lang.String getUserName()
getUserName in interface AuditedModelvoid setUserName(java.lang.String userName)
setUserName in interface AuditedModeluserName - the user name of this shopping couponjava.util.Date getCreateDate()
getCreateDate in interface AuditedModelvoid setCreateDate(java.util.Date createDate)
setCreateDate in interface AuditedModelcreateDate - the create date of this shopping couponjava.util.Date getModifiedDate()
getModifiedDate in interface AuditedModelvoid setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface AuditedModelmodifiedDate - the modified date of this shopping coupon@AutoEscape java.lang.String getCode()
void setCode(java.lang.String code)
code - the code of this shopping coupon@AutoEscape java.lang.String getName()
void setName(java.lang.String name)
name - the name of this shopping coupon@AutoEscape java.lang.String getDescription()
void setDescription(java.lang.String description)
description - the description of this shopping couponjava.util.Date getStartDate()
void setStartDate(java.util.Date startDate)
startDate - the start date of this shopping couponjava.util.Date getEndDate()
void setEndDate(java.util.Date endDate)
endDate - the end date of this shopping couponboolean getActive()
boolean isActive()
true if this shopping coupon is active.true if this shopping coupon is active; false otherwisevoid setActive(boolean active)
active - the active of this shopping coupon@AutoEscape java.lang.String getLimitCategories()
void setLimitCategories(java.lang.String limitCategories)
limitCategories - the limit categories of this shopping coupon@AutoEscape java.lang.String getLimitSkus()
void setLimitSkus(java.lang.String limitSkus)
limitSkus - the limit skus of this shopping coupondouble getMinOrder()
void setMinOrder(double minOrder)
minOrder - the min order of this shopping coupondouble getDiscount()
void setDiscount(double discount)
discount - the discount of this shopping coupon@AutoEscape java.lang.String getDiscountType()
void setDiscountType(java.lang.String discountType)
discountType - the discount type of this shopping couponboolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<ShoppingCoupon>true if this model instance does not yet exist in
the database; false otherwisevoid setNew(boolean n)
BaseModelsetNew in interface BaseModel<ShoppingCoupon>n - whether this model instance does not yet exist in the databaseboolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<ShoppingCoupon>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<ShoppingCoupon>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCacheboolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<ShoppingCoupon>true if this model instance is escaped;
false otherwisejava.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<ShoppingCoupon>getPrimaryKeyObj in interface ClassedModelvoid setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<ShoppingCoupon>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instanceExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<ShoppingCoupon>getExpandoBridge in interface ClassedModelvoid setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<ShoppingCoupon>void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<ShoppingCoupon>void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<ShoppingCoupon>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)java.lang.Object clone()
BaseModelclone in interface BaseModel<ShoppingCoupon>int compareTo(ShoppingCoupon shoppingCoupon)
compareTo in interface java.lang.Comparable<ShoppingCoupon>int hashCode()
hashCode in class java.lang.ObjectCacheModel<ShoppingCoupon> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<ShoppingCoupon>ShoppingCoupon toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<ShoppingCoupon>AutoEscapeBeanHandlerShoppingCoupon toUnescapedModel()
toUnescapedModel in interface BaseModel<ShoppingCoupon>java.lang.String toString()
toString in class java.lang.Objectjava.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<ShoppingCoupon>