Interface CommerceDiscountModel
- All Superinterfaces:
com.liferay.portal.kernel.model.AuditedModel
,com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
,com.liferay.portal.kernel.model.ClassedModel
,Cloneable
,Comparable<CommerceDiscount>
,com.liferay.portal.kernel.model.ExternalReferenceCodeModel
,com.liferay.portal.kernel.model.MVCCModel
,Serializable
,com.liferay.portal.kernel.model.ShardedModel
,com.liferay.portal.kernel.model.StagedAuditedModel
,com.liferay.portal.kernel.model.StagedModel
,com.liferay.portal.kernel.model.WorkflowedModel
- All Known Subinterfaces:
CommerceDiscount
- All Known Implementing Classes:
CommerceDiscountWrapper
@ProviderType
public interface CommerceDiscountModel
extends com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>, com.liferay.portal.kernel.model.ExternalReferenceCodeModel, com.liferay.portal.kernel.model.MVCCModel, com.liferay.portal.kernel.model.ShardedModel, com.liferay.portal.kernel.model.StagedAuditedModel, com.liferay.portal.kernel.model.WorkflowedModel
The base model interface for the CommerceDiscount service. Represents a row in the "CommerceDiscount" database table, with each column mapped to a property of this class.
This interface and its corresponding implementation com.liferay.commerce.discount.model.impl.CommerceDiscountModelImpl
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.commerce.discount.model.impl.CommerceDiscountImpl
.
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the active of this commerce discount.long
Returns the commerce discount ID of this commerce discount.long
Returns the company ID of this commerce discount.Returns the coupon code of this commerce discount.Returns the create date of this commerce discount.Returns the display date of this commerce discount.Returns the expiration date of this commerce discount.Returns the external reference code of this commerce discount.Returns the last publish date of this commerce discount.getLevel()
Returns the level of this commerce discount.Returns the level1 of this commerce discount.Returns the level2 of this commerce discount.Returns the level3 of this commerce discount.Returns the level4 of this commerce discount.int
Returns the limitation times of this commerce discount.int
Returns the limitation times per account of this commerce discount.Returns the limitation type of this commerce discount.Returns the maximum discount amount of this commerce discount.Returns the modified date of this commerce discount.long
Returns the mvcc version of this commerce discount.int
Returns the number of use of this commerce discount.long
Returns the primary key of this commerce discount.boolean
Returns the rules conjunction of this commerce discount.int
Returns the status of this commerce discount.long
Returns the status by user ID of this commerce discount.Returns the status by user name of this commerce discount.Returns the status by user uuid of this commerce discount.Returns the status date of this commerce discount.Returns the target of this commerce discount.getTitle()
Returns the title of this commerce discount.boolean
Returns the use coupon code of this commerce discount.boolean
Returns the use percentage of this commerce discount.long
Returns the user ID of this commerce discount.Returns the user name of this commerce discount.Returns the user uuid of this commerce discount.getUuid()
Returns the uuid of this commerce discount.boolean
isActive()
Returnstrue
if this commerce discount is active.boolean
Returnstrue
if this commerce discount is approved.boolean
isDenied()
Returnstrue
if this commerce discount is denied.boolean
isDraft()
Returnstrue
if this commerce discount is a draft.boolean
Returnstrue
if this commerce discount is expired.boolean
Returnstrue
if this commerce discount is inactive.boolean
Returnstrue
if this commerce discount is incomplete.boolean
Returnstrue
if this commerce discount is pending.boolean
Returnstrue
if this commerce discount is rules conjunction.boolean
Returnstrue
if this commerce discount is scheduled.boolean
Returnstrue
if this commerce discount is use coupon code.boolean
Returnstrue
if this commerce discount is use percentage.void
setActive
(boolean active) Sets whether this commerce discount is active.void
setCommerceDiscountId
(long commerceDiscountId) Sets the commerce discount ID of this commerce discount.void
setCompanyId
(long companyId) Sets the company ID of this commerce discount.void
setCouponCode
(String couponCode) Sets the coupon code of this commerce discount.void
setCreateDate
(Date createDate) Sets the create date of this commerce discount.void
setDisplayDate
(Date displayDate) Sets the display date of this commerce discount.void
setExpirationDate
(Date expirationDate) Sets the expiration date of this commerce discount.void
setExternalReferenceCode
(String externalReferenceCode) Sets the external reference code of this commerce discount.void
setLastPublishDate
(Date lastPublishDate) Sets the last publish date of this commerce discount.void
Sets the level of this commerce discount.void
setLevel1
(BigDecimal level1) Sets the level1 of this commerce discount.void
setLevel2
(BigDecimal level2) Sets the level2 of this commerce discount.void
setLevel3
(BigDecimal level3) Sets the level3 of this commerce discount.void
setLevel4
(BigDecimal level4) Sets the level4 of this commerce discount.void
setLimitationTimes
(int limitationTimes) Sets the limitation times of this commerce discount.void
setLimitationTimesPerAccount
(int limitationTimesPerAccount) Sets the limitation times per account of this commerce discount.void
setLimitationType
(String limitationType) Sets the limitation type of this commerce discount.void
setMaximumDiscountAmount
(BigDecimal maximumDiscountAmount) Sets the maximum discount amount of this commerce discount.void
setModifiedDate
(Date modifiedDate) Sets the modified date of this commerce discount.void
setMvccVersion
(long mvccVersion) Sets the mvcc version of this commerce discount.void
setNumberOfUse
(int numberOfUse) Sets the number of use of this commerce discount.void
setPrimaryKey
(long primaryKey) Sets the primary key of this commerce discount.void
setRulesConjunction
(boolean rulesConjunction) Sets whether this commerce discount is rules conjunction.void
setStatus
(int status) Sets the status of this commerce discount.void
setStatusByUserId
(long statusByUserId) Sets the status by user ID of this commerce discount.void
setStatusByUserName
(String statusByUserName) Sets the status by user name of this commerce discount.void
setStatusByUserUuid
(String statusByUserUuid) Sets the status by user uuid of this commerce discount.void
setStatusDate
(Date statusDate) Sets the status date of this commerce discount.void
Sets the target of this commerce discount.void
Sets the title of this commerce discount.void
setUseCouponCode
(boolean useCouponCode) Sets whether this commerce discount is use coupon code.void
setUsePercentage
(boolean usePercentage) Sets whether this commerce discount is use percentage.void
setUserId
(long userId) Sets the user ID of this commerce discount.void
setUserName
(String userName) Sets the user name of this commerce discount.void
setUserUuid
(String userUuid) Sets the user uuid of this commerce discount.void
Sets the uuid of this commerce discount.default String
Methods inherited from interface com.liferay.portal.kernel.model.BaseModel
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel
Methods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassName
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.liferay.portal.kernel.model.StagedModel
clone, getStagedModelType
-
Method Details
-
getPrimaryKey
long getPrimaryKey()Returns the primary key of this commerce discount.- Returns:
- the primary key of this commerce discount
-
setPrimaryKey
void setPrimaryKey(long primaryKey) Sets the primary key of this commerce discount.- Parameters:
primaryKey
- the primary key of this commerce discount
-
getMvccVersion
long getMvccVersion()Returns the mvcc version of this commerce discount.- Specified by:
getMvccVersion
in interfacecom.liferay.portal.kernel.model.MVCCModel
- Returns:
- the mvcc version of this commerce discount
-
setMvccVersion
void setMvccVersion(long mvccVersion) Sets the mvcc version of this commerce discount.- Specified by:
setMvccVersion
in interfacecom.liferay.portal.kernel.model.MVCCModel
- Parameters:
mvccVersion
- the mvcc version of this commerce discount
-
getUuid
Returns the uuid of this commerce discount.- Specified by:
getUuid
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the uuid of this commerce discount
-
setUuid
Sets the uuid of this commerce discount.- Specified by:
setUuid
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
uuid
- the uuid of this commerce discount
-
getExternalReferenceCode
Returns the external reference code of this commerce discount.- Specified by:
getExternalReferenceCode
in interfacecom.liferay.portal.kernel.model.ExternalReferenceCodeModel
- Returns:
- the external reference code of this commerce discount
-
setExternalReferenceCode
Sets the external reference code of this commerce discount.- Specified by:
setExternalReferenceCode
in interfacecom.liferay.portal.kernel.model.ExternalReferenceCodeModel
- Parameters:
externalReferenceCode
- the external reference code of this commerce discount
-
getCommerceDiscountId
long getCommerceDiscountId()Returns the commerce discount ID of this commerce discount.- Returns:
- the commerce discount ID of this commerce discount
-
setCommerceDiscountId
void setCommerceDiscountId(long commerceDiscountId) Sets the commerce discount ID of this commerce discount.- Parameters:
commerceDiscountId
- the commerce discount ID of this commerce discount
-
getCompanyId
long getCompanyId()Returns the company ID of this commerce discount.- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Specified by:
getCompanyId
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the company ID of this commerce discount
-
setCompanyId
void setCompanyId(long companyId) Sets the company ID of this commerce discount.- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.ShardedModel
- Specified by:
setCompanyId
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
companyId
- the company ID of this commerce discount
-
getUserId
long getUserId()Returns the user ID of this commerce discount.- Specified by:
getUserId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Returns:
- the user ID of this commerce discount
-
setUserId
void setUserId(long userId) Sets the user ID of this commerce discount.- Specified by:
setUserId
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Parameters:
userId
- the user ID of this commerce discount
-
getUserUuid
String getUserUuid()Returns the user uuid of this commerce discount.- Specified by:
getUserUuid
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Returns:
- the user uuid of this commerce discount
-
setUserUuid
Sets the user uuid of this commerce discount.- Specified by:
setUserUuid
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Parameters:
userUuid
- the user uuid of this commerce discount
-
getUserName
Returns the user name of this commerce discount.- Specified by:
getUserName
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Returns:
- the user name of this commerce discount
-
setUserName
Sets the user name of this commerce discount.- Specified by:
setUserName
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Parameters:
userName
- the user name of this commerce discount
-
getCreateDate
Date getCreateDate()Returns the create date of this commerce discount.- Specified by:
getCreateDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getCreateDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the create date of this commerce discount
-
setCreateDate
Sets the create date of this commerce discount.- Specified by:
setCreateDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setCreateDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
createDate
- the create date of this commerce discount
-
getModifiedDate
Date getModifiedDate()Returns the modified date of this commerce discount.- Specified by:
getModifiedDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
getModifiedDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Returns:
- the modified date of this commerce discount
-
setModifiedDate
Sets the modified date of this commerce discount.- Specified by:
setModifiedDate
in interfacecom.liferay.portal.kernel.model.AuditedModel
- Specified by:
setModifiedDate
in interfacecom.liferay.portal.kernel.model.StagedModel
- Parameters:
modifiedDate
- the modified date of this commerce discount
-
getTitle
Returns the title of this commerce discount.- Returns:
- the title of this commerce discount
-
setTitle
Sets the title of this commerce discount.- Parameters:
title
- the title of this commerce discount
-
getTarget
Returns the target of this commerce discount.- Returns:
- the target of this commerce discount
-
setTarget
Sets the target of this commerce discount.- Parameters:
target
- the target of this commerce discount
-
getUseCouponCode
boolean getUseCouponCode()Returns the use coupon code of this commerce discount.- Returns:
- the use coupon code of this commerce discount
-
isUseCouponCode
boolean isUseCouponCode()Returnstrue
if this commerce discount is use coupon code.- Returns:
true
if this commerce discount is use coupon code;false
otherwise
-
setUseCouponCode
void setUseCouponCode(boolean useCouponCode) Sets whether this commerce discount is use coupon code.- Parameters:
useCouponCode
- the use coupon code of this commerce discount
-
getCouponCode
Returns the coupon code of this commerce discount.- Returns:
- the coupon code of this commerce discount
-
setCouponCode
Sets the coupon code of this commerce discount.- Parameters:
couponCode
- the coupon code of this commerce discount
-
getUsePercentage
boolean getUsePercentage()Returns the use percentage of this commerce discount.- Returns:
- the use percentage of this commerce discount
-
isUsePercentage
boolean isUsePercentage()Returnstrue
if this commerce discount is use percentage.- Returns:
true
if this commerce discount is use percentage;false
otherwise
-
setUsePercentage
void setUsePercentage(boolean usePercentage) Sets whether this commerce discount is use percentage.- Parameters:
usePercentage
- the use percentage of this commerce discount
-
getMaximumDiscountAmount
BigDecimal getMaximumDiscountAmount()Returns the maximum discount amount of this commerce discount.- Returns:
- the maximum discount amount of this commerce discount
-
setMaximumDiscountAmount
Sets the maximum discount amount of this commerce discount.- Parameters:
maximumDiscountAmount
- the maximum discount amount of this commerce discount
-
getLevel
Returns the level of this commerce discount.- Returns:
- the level of this commerce discount
-
setLevel
Sets the level of this commerce discount.- Parameters:
level
- the level of this commerce discount
-
getLevel1
BigDecimal getLevel1()Returns the level1 of this commerce discount.- Returns:
- the level1 of this commerce discount
-
setLevel1
Sets the level1 of this commerce discount.- Parameters:
level1
- the level1 of this commerce discount
-
getLevel2
BigDecimal getLevel2()Returns the level2 of this commerce discount.- Returns:
- the level2 of this commerce discount
-
setLevel2
Sets the level2 of this commerce discount.- Parameters:
level2
- the level2 of this commerce discount
-
getLevel3
BigDecimal getLevel3()Returns the level3 of this commerce discount.- Returns:
- the level3 of this commerce discount
-
setLevel3
Sets the level3 of this commerce discount.- Parameters:
level3
- the level3 of this commerce discount
-
getLevel4
BigDecimal getLevel4()Returns the level4 of this commerce discount.- Returns:
- the level4 of this commerce discount
-
setLevel4
Sets the level4 of this commerce discount.- Parameters:
level4
- the level4 of this commerce discount
-
getLimitationType
Returns the limitation type of this commerce discount.- Returns:
- the limitation type of this commerce discount
-
setLimitationType
Sets the limitation type of this commerce discount.- Parameters:
limitationType
- the limitation type of this commerce discount
-
getLimitationTimes
int getLimitationTimes()Returns the limitation times of this commerce discount.- Returns:
- the limitation times of this commerce discount
-
setLimitationTimes
void setLimitationTimes(int limitationTimes) Sets the limitation times of this commerce discount.- Parameters:
limitationTimes
- the limitation times of this commerce discount
-
getLimitationTimesPerAccount
int getLimitationTimesPerAccount()Returns the limitation times per account of this commerce discount.- Returns:
- the limitation times per account of this commerce discount
-
setLimitationTimesPerAccount
void setLimitationTimesPerAccount(int limitationTimesPerAccount) Sets the limitation times per account of this commerce discount.- Parameters:
limitationTimesPerAccount
- the limitation times per account of this commerce discount
-
getNumberOfUse
int getNumberOfUse()Returns the number of use of this commerce discount.- Returns:
- the number of use of this commerce discount
-
setNumberOfUse
void setNumberOfUse(int numberOfUse) Sets the number of use of this commerce discount.- Parameters:
numberOfUse
- the number of use of this commerce discount
-
getRulesConjunction
boolean getRulesConjunction()Returns the rules conjunction of this commerce discount.- Returns:
- the rules conjunction of this commerce discount
-
isRulesConjunction
boolean isRulesConjunction()Returnstrue
if this commerce discount is rules conjunction.- Returns:
true
if this commerce discount is rules conjunction;false
otherwise
-
setRulesConjunction
void setRulesConjunction(boolean rulesConjunction) Sets whether this commerce discount is rules conjunction.- Parameters:
rulesConjunction
- the rules conjunction of this commerce discount
-
getActive
boolean getActive()Returns the active of this commerce discount.- Returns:
- the active of this commerce discount
-
isActive
boolean isActive()Returnstrue
if this commerce discount is active.- Returns:
true
if this commerce discount is active;false
otherwise
-
setActive
void setActive(boolean active) Sets whether this commerce discount is active.- Parameters:
active
- the active of this commerce discount
-
getDisplayDate
Date getDisplayDate()Returns the display date of this commerce discount.- Returns:
- the display date of this commerce discount
-
setDisplayDate
Sets the display date of this commerce discount.- Parameters:
displayDate
- the display date of this commerce discount
-
getExpirationDate
Date getExpirationDate()Returns the expiration date of this commerce discount.- Returns:
- the expiration date of this commerce discount
-
setExpirationDate
Sets the expiration date of this commerce discount.- Parameters:
expirationDate
- the expiration date of this commerce discount
-
getLastPublishDate
Date getLastPublishDate()Returns the last publish date of this commerce discount.- Returns:
- the last publish date of this commerce discount
-
setLastPublishDate
Sets the last publish date of this commerce discount.- Parameters:
lastPublishDate
- the last publish date of this commerce discount
-
getStatus
int getStatus()Returns the status of this commerce discount.- Specified by:
getStatus
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status of this commerce discount
-
setStatus
void setStatus(int status) Sets the status of this commerce discount.- Specified by:
setStatus
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
status
- the status of this commerce discount
-
getStatusByUserId
long getStatusByUserId()Returns the status by user ID of this commerce discount.- Specified by:
getStatusByUserId
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user ID of this commerce discount
-
setStatusByUserId
void setStatusByUserId(long statusByUserId) Sets the status by user ID of this commerce discount.- Specified by:
setStatusByUserId
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserId
- the status by user ID of this commerce discount
-
getStatusByUserUuid
String getStatusByUserUuid()Returns the status by user uuid of this commerce discount.- Specified by:
getStatusByUserUuid
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user uuid of this commerce discount
-
setStatusByUserUuid
Sets the status by user uuid of this commerce discount.- Specified by:
setStatusByUserUuid
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserUuid
- the status by user uuid of this commerce discount
-
getStatusByUserName
Returns the status by user name of this commerce discount.- Specified by:
getStatusByUserName
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status by user name of this commerce discount
-
setStatusByUserName
Sets the status by user name of this commerce discount.- Specified by:
setStatusByUserName
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusByUserName
- the status by user name of this commerce discount
-
getStatusDate
Date getStatusDate()Returns the status date of this commerce discount.- Specified by:
getStatusDate
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
- the status date of this commerce discount
-
setStatusDate
Sets the status date of this commerce discount.- Specified by:
setStatusDate
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Parameters:
statusDate
- the status date of this commerce discount
-
isApproved
boolean isApproved()Returnstrue
if this commerce discount is approved.- Specified by:
isApproved
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is approved;false
otherwise
-
isDenied
boolean isDenied()Returnstrue
if this commerce discount is denied.- Specified by:
isDenied
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is denied;false
otherwise
-
isDraft
boolean isDraft()Returnstrue
if this commerce discount is a draft.- Specified by:
isDraft
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is a draft;false
otherwise
-
isExpired
boolean isExpired()Returnstrue
if this commerce discount is expired.- Specified by:
isExpired
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is expired;false
otherwise
-
isInactive
boolean isInactive()Returnstrue
if this commerce discount is inactive.- Specified by:
isInactive
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is inactive;false
otherwise
-
isIncomplete
boolean isIncomplete()Returnstrue
if this commerce discount is incomplete.- Specified by:
isIncomplete
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is incomplete;false
otherwise
-
isPending
boolean isPending()Returnstrue
if this commerce discount is pending.- Specified by:
isPending
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is pending;false
otherwise
-
isScheduled
boolean isScheduled()Returnstrue
if this commerce discount is scheduled.- Specified by:
isScheduled
in interfacecom.liferay.portal.kernel.model.WorkflowedModel
- Returns:
true
if this commerce discount is scheduled;false
otherwise
-
cloneWithOriginalValues
CommerceDiscount cloneWithOriginalValues()- Specified by:
cloneWithOriginalValues
in interfacecom.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
-
toXmlString
-