public class CommerceDiscountWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscount> implements CommerceDiscount, com.liferay.portal.kernel.model.ModelWrapper<CommerceDiscount>
This class is a wrapper for CommerceDiscount.
CommerceDiscount,
Serialized FormCOMMERCE_DISCOUNT_ID_ACCESSOR| Constructor and Description |
|---|
CommerceDiscountWrapper(CommerceDiscount commerceDiscount) |
| Modifier and Type | Method and Description |
|---|---|
CommerceDiscount |
cloneWithOriginalValues() |
boolean |
getActive()
Returns the active of this commerce discount.
|
java.util.List<CommerceDiscountCommerceAccountGroupRel> |
getCommerceDiscountCommerceAccountGroupRels() |
long |
getCommerceDiscountId()
Returns the commerce discount ID of this commerce discount.
|
long |
getCompanyId()
Returns the company ID of this commerce discount.
|
java.lang.String |
getCouponCode()
Returns the coupon code of this commerce discount.
|
java.util.Date |
getCreateDate()
Returns the create date of this commerce discount.
|
java.util.Date |
getDisplayDate()
Returns the display date of this commerce discount.
|
java.util.Date |
getExpirationDate()
Returns the expiration date of this commerce discount.
|
java.lang.String |
getExternalReferenceCode()
Returns the external reference code of this commerce discount.
|
java.util.Date |
getLastPublishDate()
Returns the last publish date of this commerce discount.
|
java.lang.String |
getLevel()
Returns the level of this commerce discount.
|
java.math.BigDecimal |
getLevel1()
Returns the level1 of this commerce discount.
|
java.math.BigDecimal |
getLevel2()
Returns the level2 of this commerce discount.
|
java.math.BigDecimal |
getLevel3()
Returns the level3 of this commerce discount.
|
java.math.BigDecimal |
getLevel4()
Returns the level4 of this commerce discount.
|
int |
getLimitationTimes()
Returns the limitation times of this commerce discount.
|
int |
getLimitationTimesPerAccount()
Returns the limitation times per account of this commerce discount.
|
java.lang.String |
getLimitationType()
Returns the limitation type of this commerce discount.
|
java.math.BigDecimal |
getMaximumDiscountAmount()
Returns the maximum discount amount of this commerce discount.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.util.Date |
getModifiedDate()
Returns the modified date of this commerce discount.
|
long |
getMvccVersion()
Returns the mvcc version of this commerce discount.
|
int |
getNumberOfUse()
Returns the number of use of this commerce discount.
|
long |
getPrimaryKey()
Returns the primary key of this commerce discount.
|
boolean |
getRulesConjunction()
Returns the rules conjunction of this commerce discount.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this commerce discount.
|
long |
getStatusByUserId()
Returns the status by user ID of this commerce discount.
|
java.lang.String |
getStatusByUserName()
Returns the status by user name of this commerce discount.
|
java.lang.String |
getStatusByUserUuid()
Returns the status by user uuid of this commerce discount.
|
java.util.Date |
getStatusDate()
Returns the status date of this commerce discount.
|
java.lang.String |
getTarget()
Returns the target of this commerce discount.
|
java.lang.String |
getTitle()
Returns the title of this commerce discount.
|
boolean |
getUseCouponCode()
Returns the use coupon code of this commerce discount.
|
boolean |
getUsePercentage()
Returns the use percentage of this commerce discount.
|
long |
getUserId()
Returns the user ID of this commerce discount.
|
java.lang.String |
getUserName()
Returns the user name of this commerce discount.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this commerce discount.
|
java.lang.String |
getUuid()
Returns the uuid of this commerce discount.
|
boolean |
isActive()
Returns
true if this commerce discount is active. |
boolean |
isApproved()
Returns
true if this commerce discount is approved. |
boolean |
isDenied()
Returns
true if this commerce discount is denied. |
boolean |
isDraft()
Returns
true if this commerce discount is a draft. |
boolean |
isExpired()
Returns
true if this commerce discount is expired. |
boolean |
isInactive()
Returns
true if this commerce discount is inactive. |
boolean |
isIncomplete()
Returns
true if this commerce discount is incomplete. |
boolean |
isPending()
Returns
true if this commerce discount is pending. |
boolean |
isRulesConjunction()
Returns
true if this commerce discount is rules conjunction. |
boolean |
isScheduled()
Returns
true if this commerce discount is scheduled. |
boolean |
isUseCouponCode()
Returns
true if this commerce discount is use coupon code. |
boolean |
isUsePercentage()
Returns
true if this commerce discount is use percentage. |
void |
persist() |
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(java.lang.String couponCode)
Sets the coupon code of this commerce discount.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this commerce discount.
|
void |
setDisplayDate(java.util.Date displayDate)
Sets the display date of this commerce discount.
|
void |
setExpirationDate(java.util.Date expirationDate)
Sets the expiration date of this commerce discount.
|
void |
setExternalReferenceCode(java.lang.String externalReferenceCode)
Sets the external reference code of this commerce discount.
|
void |
setLastPublishDate(java.util.Date lastPublishDate)
Sets the last publish date of this commerce discount.
|
void |
setLevel(java.lang.String level)
Sets the level of this commerce discount.
|
void |
setLevel1(java.math.BigDecimal level1)
Sets the level1 of this commerce discount.
|
void |
setLevel2(java.math.BigDecimal level2)
Sets the level2 of this commerce discount.
|
void |
setLevel3(java.math.BigDecimal level3)
Sets the level3 of this commerce discount.
|
void |
setLevel4(java.math.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(java.lang.String limitationType)
Sets the limitation type of this commerce discount.
|
void |
setMaximumDiscountAmount(java.math.BigDecimal maximumDiscountAmount)
Sets the maximum discount amount of this commerce discount.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setModifiedDate(java.util.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(java.lang.String statusByUserName)
Sets the status by user name of this commerce discount.
|
void |
setStatusByUserUuid(java.lang.String statusByUserUuid)
Sets the status by user uuid of this commerce discount.
|
void |
setStatusDate(java.util.Date statusDate)
Sets the status date of this commerce discount.
|
void |
setTarget(java.lang.String target)
Sets the target of this commerce discount.
|
void |
setTitle(java.lang.String title)
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(java.lang.String userName)
Sets the user name of this commerce discount.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this commerce discount.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this commerce discount.
|
protected CommerceDiscountWrapper |
wrap(CommerceDiscount commerceDiscount) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModelfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModelpublic CommerceDiscountWrapper(CommerceDiscount commerceDiscount)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>public CommerceDiscount cloneWithOriginalValues()
cloneWithOriginalValues in interface CommerceDiscountModelcloneWithOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>public boolean getActive()
getActive in interface CommerceDiscountModelpublic java.util.List<CommerceDiscountCommerceAccountGroupRel> getCommerceDiscountCommerceAccountGroupRels()
getCommerceDiscountCommerceAccountGroupRels in interface CommerceDiscountpublic long getCommerceDiscountId()
getCommerceDiscountId in interface CommerceDiscountModelpublic long getCompanyId()
getCompanyId in interface CommerceDiscountModelgetCompanyId in interface com.liferay.portal.kernel.model.AuditedModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelgetCompanyId in interface com.liferay.portal.kernel.model.StagedModelpublic java.lang.String getCouponCode()
getCouponCode in interface CommerceDiscountModelpublic java.util.Date getCreateDate()
getCreateDate in interface CommerceDiscountModelgetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface com.liferay.portal.kernel.model.StagedModelpublic java.util.Date getDisplayDate()
getDisplayDate in interface CommerceDiscountModelpublic java.util.Date getExpirationDate()
getExpirationDate in interface CommerceDiscountModelpublic java.lang.String getExternalReferenceCode()
getExternalReferenceCode in interface CommerceDiscountModelpublic java.util.Date getLastPublishDate()
getLastPublishDate in interface CommerceDiscountModelpublic java.lang.String getLevel()
getLevel in interface CommerceDiscountModelpublic java.math.BigDecimal getLevel1()
getLevel1 in interface CommerceDiscountModelpublic java.math.BigDecimal getLevel2()
getLevel2 in interface CommerceDiscountModelpublic java.math.BigDecimal getLevel3()
getLevel3 in interface CommerceDiscountModelpublic java.math.BigDecimal getLevel4()
getLevel4 in interface CommerceDiscountModelpublic int getLimitationTimes()
getLimitationTimes in interface CommerceDiscountModelpublic int getLimitationTimesPerAccount()
getLimitationTimesPerAccount in interface CommerceDiscountModelpublic java.lang.String getLimitationType()
getLimitationType in interface CommerceDiscountModelpublic java.math.BigDecimal getMaximumDiscountAmount()
getMaximumDiscountAmount in interface CommerceDiscountModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface CommerceDiscountModelgetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelpublic long getMvccVersion()
getMvccVersion in interface CommerceDiscountModelgetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelpublic int getNumberOfUse()
getNumberOfUse in interface CommerceDiscountModelpublic long getPrimaryKey()
getPrimaryKey in interface CommerceDiscountModelpublic boolean getRulesConjunction()
getRulesConjunction in interface CommerceDiscountModelpublic int getStatus()
getStatus in interface CommerceDiscountModelgetStatus in interface com.liferay.portal.kernel.model.WorkflowedModelpublic long getStatusByUserId()
getStatusByUserId in interface CommerceDiscountModelgetStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.lang.String getStatusByUserName()
getStatusByUserName in interface CommerceDiscountModelgetStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.lang.String getStatusByUserUuid()
getStatusByUserUuid in interface CommerceDiscountModelgetStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.util.Date getStatusDate()
getStatusDate in interface CommerceDiscountModelgetStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.lang.String getTarget()
getTarget in interface CommerceDiscountModelpublic java.lang.String getTitle()
getTitle in interface CommerceDiscountModelpublic boolean getUseCouponCode()
getUseCouponCode in interface CommerceDiscountModelpublic boolean getUsePercentage()
getUsePercentage in interface CommerceDiscountModelpublic long getUserId()
getUserId in interface CommerceDiscountModelgetUserId in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserName()
getUserName in interface CommerceDiscountModelgetUserName in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface CommerceDiscountModelgetUserUuid in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUuid()
getUuid in interface CommerceDiscountModelgetUuid in interface com.liferay.portal.kernel.model.StagedModelpublic boolean isActive()
true if this commerce discount is active.isActive in interface CommerceDiscountModeltrue if this commerce discount is active; false otherwisepublic boolean isApproved()
true if this commerce discount is approved.isApproved in interface CommerceDiscountModelisApproved in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is approved; false otherwisepublic boolean isDenied()
true if this commerce discount is denied.isDenied in interface CommerceDiscountModelisDenied in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is denied; false otherwisepublic boolean isDraft()
true if this commerce discount is a draft.isDraft in interface CommerceDiscountModelisDraft in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is a draft; false otherwisepublic boolean isExpired()
true if this commerce discount is expired.isExpired in interface CommerceDiscountModelisExpired in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is expired; false otherwisepublic boolean isInactive()
true if this commerce discount is inactive.isInactive in interface CommerceDiscountModelisInactive in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is inactive; false otherwisepublic boolean isIncomplete()
true if this commerce discount is incomplete.isIncomplete in interface CommerceDiscountModelisIncomplete in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is incomplete; false otherwisepublic boolean isPending()
true if this commerce discount is pending.isPending in interface CommerceDiscountModelisPending in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is pending; false otherwisepublic boolean isRulesConjunction()
true if this commerce discount is rules conjunction.isRulesConjunction in interface CommerceDiscountModeltrue if this commerce discount is rules conjunction; false otherwisepublic boolean isScheduled()
true if this commerce discount is scheduled.isScheduled in interface CommerceDiscountModelisScheduled in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce discount is scheduled; false otherwisepublic boolean isUseCouponCode()
true if this commerce discount is use coupon code.isUseCouponCode in interface CommerceDiscountModeltrue if this commerce discount is use coupon code; false otherwisepublic boolean isUsePercentage()
true if this commerce discount is use percentage.isUsePercentage in interface CommerceDiscountModeltrue if this commerce discount is use percentage; false otherwisepublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setActive(boolean active)
setActive in interface CommerceDiscountModelactive - the active of this commerce discountpublic void setCommerceDiscountId(long commerceDiscountId)
setCommerceDiscountId in interface CommerceDiscountModelcommerceDiscountId - the commerce discount ID of this commerce discountpublic void setCompanyId(long companyId)
setCompanyId in interface CommerceDiscountModelsetCompanyId in interface com.liferay.portal.kernel.model.AuditedModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelsetCompanyId in interface com.liferay.portal.kernel.model.StagedModelcompanyId - the company ID of this commerce discountpublic void setCouponCode(java.lang.String couponCode)
setCouponCode in interface CommerceDiscountModelcouponCode - the coupon code of this commerce discountpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface CommerceDiscountModelsetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface com.liferay.portal.kernel.model.StagedModelcreateDate - the create date of this commerce discountpublic void setDisplayDate(java.util.Date displayDate)
setDisplayDate in interface CommerceDiscountModeldisplayDate - the display date of this commerce discountpublic void setExpirationDate(java.util.Date expirationDate)
setExpirationDate in interface CommerceDiscountModelexpirationDate - the expiration date of this commerce discountpublic void setExternalReferenceCode(java.lang.String externalReferenceCode)
setExternalReferenceCode in interface CommerceDiscountModelexternalReferenceCode - the external reference code of this commerce discountpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate in interface CommerceDiscountModellastPublishDate - the last publish date of this commerce discountpublic void setLevel(java.lang.String level)
setLevel in interface CommerceDiscountModellevel - the level of this commerce discountpublic void setLevel1(java.math.BigDecimal level1)
setLevel1 in interface CommerceDiscountModellevel1 - the level1 of this commerce discountpublic void setLevel2(java.math.BigDecimal level2)
setLevel2 in interface CommerceDiscountModellevel2 - the level2 of this commerce discountpublic void setLevel3(java.math.BigDecimal level3)
setLevel3 in interface CommerceDiscountModellevel3 - the level3 of this commerce discountpublic void setLevel4(java.math.BigDecimal level4)
setLevel4 in interface CommerceDiscountModellevel4 - the level4 of this commerce discountpublic void setLimitationTimes(int limitationTimes)
setLimitationTimes in interface CommerceDiscountModellimitationTimes - the limitation times of this commerce discountpublic void setLimitationTimesPerAccount(int limitationTimesPerAccount)
setLimitationTimesPerAccount in interface CommerceDiscountModellimitationTimesPerAccount - the limitation times per account of this commerce discountpublic void setLimitationType(java.lang.String limitationType)
setLimitationType in interface CommerceDiscountModellimitationType - the limitation type of this commerce discountpublic void setMaximumDiscountAmount(java.math.BigDecimal maximumDiscountAmount)
setMaximumDiscountAmount in interface CommerceDiscountModelmaximumDiscountAmount - the maximum discount amount of this commerce discountpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface CommerceDiscountModelsetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelmodifiedDate - the modified date of this commerce discountpublic void setMvccVersion(long mvccVersion)
setMvccVersion in interface CommerceDiscountModelsetMvccVersion in interface com.liferay.portal.kernel.model.MVCCModelmvccVersion - the mvcc version of this commerce discountpublic void setNumberOfUse(int numberOfUse)
setNumberOfUse in interface CommerceDiscountModelnumberOfUse - the number of use of this commerce discountpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CommerceDiscountModelprimaryKey - the primary key of this commerce discountpublic void setRulesConjunction(boolean rulesConjunction)
setRulesConjunction in interface CommerceDiscountModelrulesConjunction - the rules conjunction of this commerce discountpublic void setStatus(int status)
setStatus in interface CommerceDiscountModelsetStatus in interface com.liferay.portal.kernel.model.WorkflowedModelstatus - the status of this commerce discountpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface CommerceDiscountModelsetStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModelstatusByUserId - the status by user ID of this commerce discountpublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName in interface CommerceDiscountModelsetStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModelstatusByUserName - the status by user name of this commerce discountpublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid in interface CommerceDiscountModelsetStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModelstatusByUserUuid - the status by user uuid of this commerce discountpublic void setStatusDate(java.util.Date statusDate)
setStatusDate in interface CommerceDiscountModelsetStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModelstatusDate - the status date of this commerce discountpublic void setTarget(java.lang.String target)
setTarget in interface CommerceDiscountModeltarget - the target of this commerce discountpublic void setTitle(java.lang.String title)
setTitle in interface CommerceDiscountModeltitle - the title of this commerce discountpublic void setUseCouponCode(boolean useCouponCode)
setUseCouponCode in interface CommerceDiscountModeluseCouponCode - the use coupon code of this commerce discountpublic void setUsePercentage(boolean usePercentage)
setUsePercentage in interface CommerceDiscountModelusePercentage - the use percentage of this commerce discountpublic void setUserId(long userId)
setUserId in interface CommerceDiscountModelsetUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this commerce discountpublic void setUserName(java.lang.String userName)
setUserName in interface CommerceDiscountModelsetUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this commerce discountpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface CommerceDiscountModelsetUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this commerce discountpublic void setUuid(java.lang.String uuid)
setUuid in interface CommerceDiscountModelsetUuid in interface com.liferay.portal.kernel.model.StagedModeluuid - the uuid of this commerce discountpublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType in interface com.liferay.portal.kernel.model.StagedModelprotected CommerceDiscountWrapper wrap(CommerceDiscount commerceDiscount)
wrap in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscount>