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 TypeMethodDescriptionbooleanReturns the active of this commerce discount.longReturns the commerce discount ID of this commerce discount.longReturns 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.intReturns the limitation times of this commerce discount.intReturns 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.longReturns the mvcc version of this commerce discount.intReturns the number of use of this commerce discount.longReturns the primary key of this commerce discount.booleanReturns the rules conjunction of this commerce discount.intReturns the status of this commerce discount.longReturns 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.booleanReturns the use coupon code of this commerce discount.booleanReturns the use percentage of this commerce discount.longReturns 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.booleanisActive()Returnstrueif this commerce discount is active.booleanReturnstrueif this commerce discount is approved.booleanisDenied()Returnstrueif this commerce discount is denied.booleanisDraft()Returnstrueif this commerce discount is a draft.booleanReturnstrueif this commerce discount is expired.booleanReturnstrueif this commerce discount is inactive.booleanReturnstrueif this commerce discount is incomplete.booleanReturnstrueif this commerce discount is pending.booleanReturnstrueif this commerce discount is rules conjunction.booleanReturnstrueif this commerce discount is scheduled.booleanReturnstrueif this commerce discount is use coupon code.booleanReturnstrueif this commerce discount is use percentage.voidsetActive(boolean active) Sets whether this commerce discount is active.voidsetCommerceDiscountId(long commerceDiscountId) Sets the commerce discount ID of this commerce discount.voidsetCompanyId(long companyId) Sets the company ID of this commerce discount.voidsetCouponCode(String couponCode) Sets the coupon code of this commerce discount.voidsetCreateDate(Date createDate) Sets the create date of this commerce discount.voidsetDisplayDate(Date displayDate) Sets the display date of this commerce discount.voidsetExpirationDate(Date expirationDate) Sets the expiration date of this commerce discount.voidsetExternalReferenceCode(String externalReferenceCode) Sets the external reference code of this commerce discount.voidsetLastPublishDate(Date lastPublishDate) Sets the last publish date of this commerce discount.voidSets the level of this commerce discount.voidsetLevel1(BigDecimal level1) Sets the level1 of this commerce discount.voidsetLevel2(BigDecimal level2) Sets the level2 of this commerce discount.voidsetLevel3(BigDecimal level3) Sets the level3 of this commerce discount.voidsetLevel4(BigDecimal level4) Sets the level4 of this commerce discount.voidsetLimitationTimes(int limitationTimes) Sets the limitation times of this commerce discount.voidsetLimitationTimesPerAccount(int limitationTimesPerAccount) Sets the limitation times per account of this commerce discount.voidsetLimitationType(String limitationType) Sets the limitation type of this commerce discount.voidsetMaximumDiscountAmount(BigDecimal maximumDiscountAmount) Sets the maximum discount amount of this commerce discount.voidsetModifiedDate(Date modifiedDate) Sets the modified date of this commerce discount.voidsetMvccVersion(long mvccVersion) Sets the mvcc version of this commerce discount.voidsetNumberOfUse(int numberOfUse) Sets the number of use of this commerce discount.voidsetPrimaryKey(long primaryKey) Sets the primary key of this commerce discount.voidsetRulesConjunction(boolean rulesConjunction) Sets whether this commerce discount is rules conjunction.voidsetStatus(int status) Sets the status of this commerce discount.voidsetStatusByUserId(long statusByUserId) Sets the status by user ID of this commerce discount.voidsetStatusByUserName(String statusByUserName) Sets the status by user name of this commerce discount.voidsetStatusByUserUuid(String statusByUserUuid) Sets the status by user uuid of this commerce discount.voidsetStatusDate(Date statusDate) Sets the status date of this commerce discount.voidSets the target of this commerce discount.voidSets the title of this commerce discount.voidsetUseCouponCode(boolean useCouponCode) Sets whether this commerce discount is use coupon code.voidsetUsePercentage(boolean usePercentage) Sets whether this commerce discount is use percentage.voidsetUserId(long userId) Sets the user ID of this commerce discount.voidsetUserName(String userName) Sets the user name of this commerce discount.voidsetUserUuid(String userUuid) Sets the user uuid of this commerce discount.voidSets the uuid of this commerce discount.default StringMethods 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, toUnescapedModelMethods inherited from interface com.liferay.portal.kernel.model.ClassedModel
getModelClass, getModelClassNameMethods inherited from interface java.lang.Comparable
compareToMethods 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:
getMvccVersionin 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:
setMvccVersionin 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:
getUuidin interfacecom.liferay.portal.kernel.model.StagedModel- Returns:
- the uuid of this commerce discount
-
setUuid
Sets the uuid of this commerce discount.- Specified by:
setUuidin 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:
getExternalReferenceCodein 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:
setExternalReferenceCodein 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:
getCompanyIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getCompanyIdin interfacecom.liferay.portal.kernel.model.ShardedModel- Specified by:
getCompanyIdin 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:
setCompanyIdin interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setCompanyIdin interfacecom.liferay.portal.kernel.model.ShardedModel- Specified by:
setCompanyIdin 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:
getUserIdin 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:
setUserIdin 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:
getUserUuidin 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:
setUserUuidin 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:
getUserNamein 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:
setUserNamein 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:
getCreateDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getCreateDatein 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:
setCreateDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setCreateDatein 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:
getModifiedDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
getModifiedDatein 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:
setModifiedDatein interfacecom.liferay.portal.kernel.model.AuditedModel- Specified by:
setModifiedDatein 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()Returnstrueif this commerce discount is use coupon code.- Returns:
trueif this commerce discount is use coupon code;falseotherwise
-
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()Returnstrueif this commerce discount is use percentage.- Returns:
trueif this commerce discount is use percentage;falseotherwise
-
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()Returnstrueif this commerce discount is rules conjunction.- Returns:
trueif this commerce discount is rules conjunction;falseotherwise
-
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()Returnstrueif this commerce discount is active.- Returns:
trueif this commerce discount is active;falseotherwise
-
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:
getStatusin 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:
setStatusin 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:
getStatusByUserIdin 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:
setStatusByUserIdin 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:
getStatusByUserUuidin 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:
setStatusByUserUuidin 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:
getStatusByUserNamein 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:
setStatusByUserNamein 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:
getStatusDatein 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:
setStatusDatein interfacecom.liferay.portal.kernel.model.WorkflowedModel- Parameters:
statusDate- the status date of this commerce discount
-
isApproved
boolean isApproved()Returnstrueif this commerce discount is approved.- Specified by:
isApprovedin interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is approved;falseotherwise
-
isDenied
boolean isDenied()Returnstrueif this commerce discount is denied.- Specified by:
isDeniedin interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is denied;falseotherwise
-
isDraft
boolean isDraft()Returnstrueif this commerce discount is a draft.- Specified by:
isDraftin interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is a draft;falseotherwise
-
isExpired
boolean isExpired()Returnstrueif this commerce discount is expired.- Specified by:
isExpiredin interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is expired;falseotherwise
-
isInactive
boolean isInactive()Returnstrueif this commerce discount is inactive.- Specified by:
isInactivein interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is inactive;falseotherwise
-
isIncomplete
boolean isIncomplete()Returnstrueif this commerce discount is incomplete.- Specified by:
isIncompletein interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is incomplete;falseotherwise
-
isPending
boolean isPending()Returnstrueif this commerce discount is pending.- Specified by:
isPendingin interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is pending;falseotherwise
-
isScheduled
boolean isScheduled()Returnstrueif this commerce discount is scheduled.- Specified by:
isScheduledin interfacecom.liferay.portal.kernel.model.WorkflowedModel- Returns:
trueif this commerce discount is scheduled;falseotherwise
-
cloneWithOriginalValues
CommerceDiscount cloneWithOriginalValues()- Specified by:
cloneWithOriginalValuesin interfacecom.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
-
toXmlString
-