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, toUnescapedModel, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public 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 CommerceDiscountModel
cloneWithOriginalValues
in interface com.liferay.portal.kernel.model.BaseModel<CommerceDiscount>
public boolean getActive()
getActive
in interface CommerceDiscountModel
public java.util.List<CommerceDiscountCommerceAccountGroupRel> getCommerceDiscountCommerceAccountGroupRels()
getCommerceDiscountCommerceAccountGroupRels
in interface CommerceDiscount
public long getCommerceDiscountId()
getCommerceDiscountId
in interface CommerceDiscountModel
public long getCompanyId()
getCompanyId
in interface CommerceDiscountModel
getCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
getCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
public java.lang.String getCouponCode()
getCouponCode
in interface CommerceDiscountModel
public java.util.Date getCreateDate()
getCreateDate
in interface CommerceDiscountModel
getCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
getCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
public java.util.Date getDisplayDate()
getDisplayDate
in interface CommerceDiscountModel
public java.util.Date getExpirationDate()
getExpirationDate
in interface CommerceDiscountModel
public java.lang.String getExternalReferenceCode()
getExternalReferenceCode
in interface CommerceDiscountModel
public java.util.Date getLastPublishDate()
getLastPublishDate
in interface CommerceDiscountModel
public java.lang.String getLevel()
getLevel
in interface CommerceDiscountModel
public java.math.BigDecimal getLevel1()
getLevel1
in interface CommerceDiscountModel
public java.math.BigDecimal getLevel2()
getLevel2
in interface CommerceDiscountModel
public java.math.BigDecimal getLevel3()
getLevel3
in interface CommerceDiscountModel
public java.math.BigDecimal getLevel4()
getLevel4
in interface CommerceDiscountModel
public int getLimitationTimes()
getLimitationTimes
in interface CommerceDiscountModel
public int getLimitationTimesPerAccount()
getLimitationTimesPerAccount
in interface CommerceDiscountModel
public java.lang.String getLimitationType()
getLimitationType
in interface CommerceDiscountModel
public java.math.BigDecimal getMaximumDiscountAmount()
getMaximumDiscountAmount
in interface CommerceDiscountModel
public java.util.Date getModifiedDate()
getModifiedDate
in interface CommerceDiscountModel
getModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
getModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
public long getMvccVersion()
getMvccVersion
in interface CommerceDiscountModel
getMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
public int getNumberOfUse()
getNumberOfUse
in interface CommerceDiscountModel
public long getPrimaryKey()
getPrimaryKey
in interface CommerceDiscountModel
public boolean getRulesConjunction()
getRulesConjunction
in interface CommerceDiscountModel
public int getStatus()
getStatus
in interface CommerceDiscountModel
getStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
public long getStatusByUserId()
getStatusByUserId
in interface CommerceDiscountModel
getStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getStatusByUserName()
getStatusByUserName
in interface CommerceDiscountModel
getStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getStatusByUserUuid()
getStatusByUserUuid
in interface CommerceDiscountModel
getStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.util.Date getStatusDate()
getStatusDate
in interface CommerceDiscountModel
getStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
public java.lang.String getTarget()
getTarget
in interface CommerceDiscountModel
public java.lang.String getTitle()
getTitle
in interface CommerceDiscountModel
public boolean getUseCouponCode()
getUseCouponCode
in interface CommerceDiscountModel
public boolean getUsePercentage()
getUsePercentage
in interface CommerceDiscountModel
public long getUserId()
getUserId
in interface CommerceDiscountModel
getUserId
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserName()
getUserName
in interface CommerceDiscountModel
getUserName
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUserUuid()
getUserUuid
in interface CommerceDiscountModel
getUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
public java.lang.String getUuid()
getUuid
in interface CommerceDiscountModel
getUuid
in interface com.liferay.portal.kernel.model.StagedModel
public boolean isActive()
true
if this commerce discount is active.isActive
in interface CommerceDiscountModel
true
if this commerce discount is active; false
otherwisepublic boolean isApproved()
true
if this commerce discount is approved.isApproved
in interface CommerceDiscountModel
isApproved
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is approved; false
otherwisepublic boolean isDenied()
true
if this commerce discount is denied.isDenied
in interface CommerceDiscountModel
isDenied
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is denied; false
otherwisepublic boolean isDraft()
true
if this commerce discount is a draft.isDraft
in interface CommerceDiscountModel
isDraft
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is a draft; false
otherwisepublic boolean isExpired()
true
if this commerce discount is expired.isExpired
in interface CommerceDiscountModel
isExpired
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is expired; false
otherwisepublic boolean isInactive()
true
if this commerce discount is inactive.isInactive
in interface CommerceDiscountModel
isInactive
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is inactive; false
otherwisepublic boolean isIncomplete()
true
if this commerce discount is incomplete.isIncomplete
in interface CommerceDiscountModel
isIncomplete
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is incomplete; false
otherwisepublic boolean isPending()
true
if this commerce discount is pending.isPending
in interface CommerceDiscountModel
isPending
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is pending; false
otherwisepublic boolean isRulesConjunction()
true
if this commerce discount is rules conjunction.isRulesConjunction
in interface CommerceDiscountModel
true
if this commerce discount is rules conjunction; false
otherwisepublic boolean isScheduled()
true
if this commerce discount is scheduled.isScheduled
in interface CommerceDiscountModel
isScheduled
in interface com.liferay.portal.kernel.model.WorkflowedModel
true
if this commerce discount is scheduled; false
otherwisepublic boolean isUseCouponCode()
true
if this commerce discount is use coupon code.isUseCouponCode
in interface CommerceDiscountModel
true
if this commerce discount is use coupon code; false
otherwisepublic boolean isUsePercentage()
true
if this commerce discount is use percentage.isUsePercentage
in interface CommerceDiscountModel
true
if this commerce discount is use percentage; false
otherwisepublic void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void setActive(boolean active)
setActive
in interface CommerceDiscountModel
active
- the active of this commerce discountpublic void setCommerceDiscountId(long commerceDiscountId)
setCommerceDiscountId
in interface CommerceDiscountModel
commerceDiscountId
- the commerce discount ID of this commerce discountpublic void setCompanyId(long companyId)
setCompanyId
in interface CommerceDiscountModel
setCompanyId
in interface com.liferay.portal.kernel.model.AuditedModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
setCompanyId
in interface com.liferay.portal.kernel.model.StagedModel
companyId
- the company ID of this commerce discountpublic void setCouponCode(java.lang.String couponCode)
setCouponCode
in interface CommerceDiscountModel
couponCode
- the coupon code of this commerce discountpublic void setCreateDate(java.util.Date createDate)
setCreateDate
in interface CommerceDiscountModel
setCreateDate
in interface com.liferay.portal.kernel.model.AuditedModel
setCreateDate
in interface com.liferay.portal.kernel.model.StagedModel
createDate
- the create date of this commerce discountpublic void setDisplayDate(java.util.Date displayDate)
setDisplayDate
in interface CommerceDiscountModel
displayDate
- the display date of this commerce discountpublic void setExpirationDate(java.util.Date expirationDate)
setExpirationDate
in interface CommerceDiscountModel
expirationDate
- the expiration date of this commerce discountpublic void setExternalReferenceCode(java.lang.String externalReferenceCode)
setExternalReferenceCode
in interface CommerceDiscountModel
externalReferenceCode
- the external reference code of this commerce discountpublic void setLastPublishDate(java.util.Date lastPublishDate)
setLastPublishDate
in interface CommerceDiscountModel
lastPublishDate
- the last publish date of this commerce discountpublic void setLevel(java.lang.String level)
setLevel
in interface CommerceDiscountModel
level
- the level of this commerce discountpublic void setLevel1(java.math.BigDecimal level1)
setLevel1
in interface CommerceDiscountModel
level1
- the level1 of this commerce discountpublic void setLevel2(java.math.BigDecimal level2)
setLevel2
in interface CommerceDiscountModel
level2
- the level2 of this commerce discountpublic void setLevel3(java.math.BigDecimal level3)
setLevel3
in interface CommerceDiscountModel
level3
- the level3 of this commerce discountpublic void setLevel4(java.math.BigDecimal level4)
setLevel4
in interface CommerceDiscountModel
level4
- the level4 of this commerce discountpublic void setLimitationTimes(int limitationTimes)
setLimitationTimes
in interface CommerceDiscountModel
limitationTimes
- the limitation times of this commerce discountpublic void setLimitationTimesPerAccount(int limitationTimesPerAccount)
setLimitationTimesPerAccount
in interface CommerceDiscountModel
limitationTimesPerAccount
- the limitation times per account of this commerce discountpublic void setLimitationType(java.lang.String limitationType)
setLimitationType
in interface CommerceDiscountModel
limitationType
- the limitation type of this commerce discountpublic void setMaximumDiscountAmount(java.math.BigDecimal maximumDiscountAmount)
setMaximumDiscountAmount
in interface CommerceDiscountModel
maximumDiscountAmount
- the maximum discount amount of this commerce discountpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface CommerceDiscountModel
setModifiedDate
in interface com.liferay.portal.kernel.model.AuditedModel
setModifiedDate
in interface com.liferay.portal.kernel.model.StagedModel
modifiedDate
- the modified date of this commerce discountpublic void setMvccVersion(long mvccVersion)
setMvccVersion
in interface CommerceDiscountModel
setMvccVersion
in interface com.liferay.portal.kernel.model.MVCCModel
mvccVersion
- the mvcc version of this commerce discountpublic void setNumberOfUse(int numberOfUse)
setNumberOfUse
in interface CommerceDiscountModel
numberOfUse
- the number of use of this commerce discountpublic void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface CommerceDiscountModel
primaryKey
- the primary key of this commerce discountpublic void setRulesConjunction(boolean rulesConjunction)
setRulesConjunction
in interface CommerceDiscountModel
rulesConjunction
- the rules conjunction of this commerce discountpublic void setStatus(int status)
setStatus
in interface CommerceDiscountModel
setStatus
in interface com.liferay.portal.kernel.model.WorkflowedModel
status
- the status of this commerce discountpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId
in interface CommerceDiscountModel
setStatusByUserId
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserId
- the status by user ID of this commerce discountpublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName
in interface CommerceDiscountModel
setStatusByUserName
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserName
- the status by user name of this commerce discountpublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid
in interface CommerceDiscountModel
setStatusByUserUuid
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusByUserUuid
- the status by user uuid of this commerce discountpublic void setStatusDate(java.util.Date statusDate)
setStatusDate
in interface CommerceDiscountModel
setStatusDate
in interface com.liferay.portal.kernel.model.WorkflowedModel
statusDate
- the status date of this commerce discountpublic void setTarget(java.lang.String target)
setTarget
in interface CommerceDiscountModel
target
- the target of this commerce discountpublic void setTitle(java.lang.String title)
setTitle
in interface CommerceDiscountModel
title
- the title of this commerce discountpublic void setUseCouponCode(boolean useCouponCode)
setUseCouponCode
in interface CommerceDiscountModel
useCouponCode
- the use coupon code of this commerce discountpublic void setUsePercentage(boolean usePercentage)
setUsePercentage
in interface CommerceDiscountModel
usePercentage
- the use percentage of this commerce discountpublic void setUserId(long userId)
setUserId
in interface CommerceDiscountModel
setUserId
in interface com.liferay.portal.kernel.model.AuditedModel
userId
- the user ID of this commerce discountpublic void setUserName(java.lang.String userName)
setUserName
in interface CommerceDiscountModel
setUserName
in interface com.liferay.portal.kernel.model.AuditedModel
userName
- the user name of this commerce discountpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface CommerceDiscountModel
setUserUuid
in interface com.liferay.portal.kernel.model.AuditedModel
userUuid
- the user uuid of this commerce discountpublic void setUuid(java.lang.String uuid)
setUuid
in interface CommerceDiscountModel
setUuid
in interface com.liferay.portal.kernel.model.StagedModel
uuid
- the uuid of this commerce discountpublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType
in interface com.liferay.portal.kernel.model.StagedModel
protected CommerceDiscountWrapper wrap(CommerceDiscount commerceDiscount)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<CommerceDiscount>