public class CommerceOrderWrapper extends java.lang.Object implements CommerceOrder, com.liferay.portal.kernel.model.ModelWrapper<CommerceOrder>
This class is a wrapper for CommerceOrder.
CommerceOrder,
Serialized FormCOMMERCE_ORDER_ID_ACCESSOR| Constructor and Description |
|---|
CommerceOrderWrapper(CommerceOrder commerceOrder) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
compareTo(CommerceOrder commerceOrder) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAdvanceStatus()
Returns the advance status of this commerce order.
|
CommerceAddress |
getBillingAddress() |
long |
getBillingAddressId()
Returns the billing address ID of this commerce order.
|
com.liferay.commerce.account.model.CommerceAccount |
getCommerceAccount() |
long |
getCommerceAccountId()
Returns the commerce account ID of this commerce order.
|
java.lang.String |
getCommerceAccountName() |
com.liferay.commerce.currency.model.CommerceCurrency |
getCommerceCurrency() |
long |
getCommerceCurrencyId()
Returns the commerce currency ID of this commerce order.
|
long |
getCommerceOrderId()
Returns the commerce order ID of this commerce order.
|
java.util.List<CommerceOrderItem> |
getCommerceOrderItems() |
java.util.List<CommerceOrderItem> |
getCommerceOrderItems(long cpInstanceId) |
int |
getCommerceOrderItemsCount(long cpInstanceId) |
java.lang.String |
getCommercePaymentMethodKey()
Returns the commerce payment method key of this commerce order.
|
CommerceShippingMethod |
getCommerceShippingMethod() |
long |
getCommerceShippingMethodId()
Returns the commerce shipping method ID of this commerce order.
|
long |
getCompanyId()
Returns the company ID of this commerce order.
|
java.lang.String |
getCouponCode()
Returns the coupon code of this commerce order.
|
java.util.Date |
getCreateDate()
Returns the create date of this commerce order.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
java.lang.String |
getExternalReferenceCode()
Returns the external reference code of this commerce order.
|
long |
getGroupId()
Returns the group ID of this commerce order.
|
java.util.Date |
getLastPriceUpdateDate()
Returns the last price update date of this commerce order.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.util.Date |
getModifiedDate()
Returns the modified date of this commerce order.
|
int |
getOrderStatus()
Returns the order status of this commerce order.
|
int |
getPaymentStatus()
Returns the payment status of this commerce order.
|
long |
getPrimaryKey()
Returns the primary key of this commerce order.
|
java.io.Serializable |
getPrimaryKeyObj() |
java.lang.String |
getPrintedNote()
Returns the printed note of this commerce order.
|
java.lang.String |
getPurchaseOrderNumber()
Returns the purchase order number of this commerce order.
|
java.util.Date |
getRequestedDeliveryDate()
Returns the requested delivery date of this commerce order.
|
long |
getScopeGroupId() |
CommerceAddress |
getShippingAddress() |
long |
getShippingAddressId()
Returns the shipping address ID of this commerce order.
|
java.math.BigDecimal |
getShippingAmount()
Returns the shipping amount of this commerce order.
|
java.math.BigDecimal |
getShippingDiscountAmount()
Returns the shipping discount amount of this commerce order.
|
java.math.BigDecimal |
getShippingDiscountPercentageLevel1()
Returns the shipping discount percentage level1 of this commerce order.
|
java.math.BigDecimal |
getShippingDiscountPercentageLevel2()
Returns the shipping discount percentage level2 of this commerce order.
|
java.math.BigDecimal |
getShippingDiscountPercentageLevel3()
Returns the shipping discount percentage level3 of this commerce order.
|
java.math.BigDecimal |
getShippingDiscountPercentageLevel4()
Returns the shipping discount percentage level4 of this commerce order.
|
com.liferay.commerce.currency.model.CommerceMoney |
getShippingMoney() |
java.lang.String |
getShippingOptionName()
Returns the shipping option name of this commerce order.
|
com.liferay.exportimport.kernel.lar.StagedModelType |
getStagedModelType() |
int |
getStatus()
Returns the status of this commerce order.
|
long |
getStatusByUserId()
Returns the status by user ID of this commerce order.
|
java.lang.String |
getStatusByUserName()
Returns the status by user name of this commerce order.
|
java.lang.String |
getStatusByUserUuid()
Returns the status by user uuid of this commerce order.
|
java.util.Date |
getStatusDate()
Returns the status date of this commerce order.
|
java.math.BigDecimal |
getSubtotal()
Returns the subtotal of this commerce order.
|
java.math.BigDecimal |
getSubtotalDiscountAmount()
Returns the subtotal discount amount of this commerce order.
|
java.math.BigDecimal |
getSubtotalDiscountPercentageLevel1()
Returns the subtotal discount percentage level1 of this commerce order.
|
java.math.BigDecimal |
getSubtotalDiscountPercentageLevel2()
Returns the subtotal discount percentage level2 of this commerce order.
|
java.math.BigDecimal |
getSubtotalDiscountPercentageLevel3()
Returns the subtotal discount percentage level3 of this commerce order.
|
java.math.BigDecimal |
getSubtotalDiscountPercentageLevel4()
Returns the subtotal discount percentage level4 of this commerce order.
|
com.liferay.commerce.currency.model.CommerceMoney |
getSubtotalMoney() |
java.math.BigDecimal |
getTaxAmount()
Returns the tax amount of this commerce order.
|
java.math.BigDecimal |
getTotal()
Returns the total of this commerce order.
|
java.math.BigDecimal |
getTotalDiscountAmount()
Returns the total discount amount of this commerce order.
|
java.math.BigDecimal |
getTotalDiscountPercentageLevel1()
Returns the total discount percentage level1 of this commerce order.
|
java.math.BigDecimal |
getTotalDiscountPercentageLevel2()
Returns the total discount percentage level2 of this commerce order.
|
java.math.BigDecimal |
getTotalDiscountPercentageLevel3()
Returns the total discount percentage level3 of this commerce order.
|
java.math.BigDecimal |
getTotalDiscountPercentageLevel4()
Returns the total discount percentage level4 of this commerce order.
|
com.liferay.commerce.currency.model.CommerceMoney |
getTotalMoney() |
java.lang.String |
getTransactionId()
Returns the transaction ID of this commerce order.
|
long |
getUserId()
Returns the user ID of this commerce order.
|
java.lang.String |
getUserName()
Returns the user name of this commerce order.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this commerce order.
|
java.lang.String |
getUuid()
Returns the uuid of this commerce order.
|
CommerceOrder |
getWrappedModel() |
int |
hashCode() |
boolean |
isApproved()
Returns
true if this commerce order is approved. |
boolean |
isB2B() |
boolean |
isCachedModel() |
boolean |
isDenied()
Returns
true if this commerce order is denied. |
boolean |
isDraft()
Returns
true if this commerce order is a draft. |
boolean |
isEmpty() |
boolean |
isEntityCacheEnabled() |
boolean |
isEscapedModel() |
boolean |
isExpired()
Returns
true if this commerce order is expired. |
boolean |
isFinderCacheEnabled() |
boolean |
isGuestOrder() |
boolean |
isInactive()
Returns
true if this commerce order is inactive. |
boolean |
isIncomplete()
Returns
true if this commerce order is incomplete. |
boolean |
isNew() |
boolean |
isOpen() |
boolean |
isPending()
Returns
true if this commerce order is pending. |
boolean |
isScheduled()
Returns
true if this commerce order is scheduled. |
boolean |
isSubscription() |
boolean |
isSubscriptionOrder() |
void |
persist()
NOTE FOR DEVELOPERS:
Never modify or reference this class directly.
|
void |
resetOriginalValues() |
void |
setAdvanceStatus(java.lang.String advanceStatus)
Sets the advance status of this commerce order.
|
void |
setBillingAddressId(long billingAddressId)
Sets the billing address ID of this commerce order.
|
void |
setCachedModel(boolean cachedModel) |
void |
setCommerceAccountId(long commerceAccountId)
Sets the commerce account ID of this commerce order.
|
void |
setCommerceCurrencyId(long commerceCurrencyId)
Sets the commerce currency ID of this commerce order.
|
void |
setCommerceOrderId(long commerceOrderId)
Sets the commerce order ID of this commerce order.
|
void |
setCommercePaymentMethodKey(java.lang.String commercePaymentMethodKey)
Sets the commerce payment method key of this commerce order.
|
void |
setCommerceShippingMethodId(long commerceShippingMethodId)
Sets the commerce shipping method ID of this commerce order.
|
void |
setCompanyId(long companyId)
Sets the company ID of this commerce order.
|
void |
setCouponCode(java.lang.String couponCode)
Sets the coupon code of this commerce order.
|
void |
setCreateDate(java.util.Date createDate)
Sets the create date of this commerce order.
|
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
setExternalReferenceCode(java.lang.String externalReferenceCode)
Sets the external reference code of this commerce order.
|
void |
setGroupId(long groupId)
Sets the group ID of this commerce order.
|
void |
setLastPriceUpdateDate(java.util.Date lastPriceUpdateDate)
Sets the last price update date of this commerce order.
|
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 order.
|
void |
setNew(boolean n) |
void |
setOrderStatus(int orderStatus)
Sets the order status of this commerce order.
|
void |
setPaymentStatus(int paymentStatus)
Sets the payment status of this commerce order.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this commerce order.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
void |
setPrintedNote(java.lang.String printedNote)
Sets the printed note of this commerce order.
|
void |
setPurchaseOrderNumber(java.lang.String purchaseOrderNumber)
Sets the purchase order number of this commerce order.
|
void |
setRequestedDeliveryDate(java.util.Date requestedDeliveryDate)
Sets the requested delivery date of this commerce order.
|
void |
setShippingAddressId(long shippingAddressId)
Sets the shipping address ID of this commerce order.
|
void |
setShippingAmount(java.math.BigDecimal shippingAmount)
Sets the shipping amount of this commerce order.
|
void |
setShippingDiscountAmount(java.math.BigDecimal shippingDiscountAmount)
Sets the shipping discount amount of this commerce order.
|
void |
setShippingDiscountPercentageLevel1(java.math.BigDecimal shippingDiscountPercentageLevel1)
Sets the shipping discount percentage level1 of this commerce order.
|
void |
setShippingDiscountPercentageLevel2(java.math.BigDecimal shippingDiscountPercentageLevel2)
Sets the shipping discount percentage level2 of this commerce order.
|
void |
setShippingDiscountPercentageLevel3(java.math.BigDecimal shippingDiscountPercentageLevel3)
Sets the shipping discount percentage level3 of this commerce order.
|
void |
setShippingDiscountPercentageLevel4(java.math.BigDecimal shippingDiscountPercentageLevel4)
Sets the shipping discount percentage level4 of this commerce order.
|
void |
setShippingDiscounts(CommerceDiscountValue commerceDiscountValue) |
void |
setShippingOptionName(java.lang.String shippingOptionName)
Sets the shipping option name of this commerce order.
|
void |
setStatus(int status)
Sets the status of this commerce order.
|
void |
setStatusByUserId(long statusByUserId)
Sets the status by user ID of this commerce order.
|
void |
setStatusByUserName(java.lang.String statusByUserName)
Sets the status by user name of this commerce order.
|
void |
setStatusByUserUuid(java.lang.String statusByUserUuid)
Sets the status by user uuid of this commerce order.
|
void |
setStatusDate(java.util.Date statusDate)
Sets the status date of this commerce order.
|
void |
setSubtotal(java.math.BigDecimal subtotal)
Sets the subtotal of this commerce order.
|
void |
setSubtotalDiscountAmount(java.math.BigDecimal subtotalDiscountAmount)
Sets the subtotal discount amount of this commerce order.
|
void |
setSubtotalDiscountPercentageLevel1(java.math.BigDecimal subtotalDiscountPercentageLevel1)
Sets the subtotal discount percentage level1 of this commerce order.
|
void |
setSubtotalDiscountPercentageLevel2(java.math.BigDecimal subtotalDiscountPercentageLevel2)
Sets the subtotal discount percentage level2 of this commerce order.
|
void |
setSubtotalDiscountPercentageLevel3(java.math.BigDecimal subtotalDiscountPercentageLevel3)
Sets the subtotal discount percentage level3 of this commerce order.
|
void |
setSubtotalDiscountPercentageLevel4(java.math.BigDecimal subtotalDiscountPercentageLevel4)
Sets the subtotal discount percentage level4 of this commerce order.
|
void |
setSubtotalDiscounts(CommerceDiscountValue commerceDiscountValue) |
void |
setTaxAmount(java.math.BigDecimal taxAmount)
Sets the tax amount of this commerce order.
|
void |
setTotal(java.math.BigDecimal total)
Sets the total of this commerce order.
|
void |
setTotalDiscountAmount(java.math.BigDecimal totalDiscountAmount)
Sets the total discount amount of this commerce order.
|
void |
setTotalDiscountPercentageLevel1(java.math.BigDecimal totalDiscountPercentageLevel1)
Sets the total discount percentage level1 of this commerce order.
|
void |
setTotalDiscountPercentageLevel2(java.math.BigDecimal totalDiscountPercentageLevel2)
Sets the total discount percentage level2 of this commerce order.
|
void |
setTotalDiscountPercentageLevel3(java.math.BigDecimal totalDiscountPercentageLevel3)
Sets the total discount percentage level3 of this commerce order.
|
void |
setTotalDiscountPercentageLevel4(java.math.BigDecimal totalDiscountPercentageLevel4)
Sets the total discount percentage level4 of this commerce order.
|
void |
setTotalDiscounts(CommerceDiscountValue commerceDiscountValue) |
void |
setTransactionId(java.lang.String transactionId)
Sets the transaction ID of this commerce order.
|
void |
setUserId(long userId)
Sets the user ID of this commerce order.
|
void |
setUserName(java.lang.String userName)
Sets the user name of this commerce order.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this commerce order.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this commerce order.
|
com.liferay.portal.kernel.model.CacheModel<CommerceOrder> |
toCacheModel() |
CommerceOrder |
toEscapedModel() |
java.lang.String |
toString() |
CommerceOrder |
toUnescapedModel() |
java.lang.String |
toXmlString() |
public CommerceOrderWrapper(CommerceOrder commerceOrder)
public java.lang.Class<?> getModelClass()
getModelClass in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface com.liferay.portal.kernel.model.ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public java.lang.Object clone()
clone in interface CommerceOrderModelclone in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>clone in interface com.liferay.portal.kernel.model.StagedModelclone in class java.lang.Objectpublic int compareTo(CommerceOrder commerceOrder)
compareTo in interface CommerceOrderModelcompareTo in interface java.lang.Comparable<CommerceOrder>public java.lang.String getAdvanceStatus()
getAdvanceStatus in interface CommerceOrderModelpublic CommerceAddress getBillingAddress() throws com.liferay.portal.kernel.exception.PortalException
getBillingAddress in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic long getBillingAddressId()
getBillingAddressId in interface CommerceOrderModelpublic com.liferay.commerce.account.model.CommerceAccount getCommerceAccount()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceAccount in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic long getCommerceAccountId()
getCommerceAccountId in interface CommerceOrderModelpublic java.lang.String getCommerceAccountName()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceAccountName in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.commerce.currency.model.CommerceCurrency getCommerceCurrency()
throws com.liferay.portal.kernel.exception.PortalException
getCommerceCurrency in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic long getCommerceCurrencyId()
getCommerceCurrencyId in interface CommerceOrderModelpublic long getCommerceOrderId()
getCommerceOrderId in interface CommerceOrderModelpublic java.util.List<CommerceOrderItem> getCommerceOrderItems()
getCommerceOrderItems in interface CommerceOrderpublic java.util.List<CommerceOrderItem> getCommerceOrderItems(long cpInstanceId)
getCommerceOrderItems in interface CommerceOrderpublic int getCommerceOrderItemsCount(long cpInstanceId)
getCommerceOrderItemsCount in interface CommerceOrderpublic java.lang.String getCommercePaymentMethodKey()
getCommercePaymentMethodKey in interface CommerceOrderModelpublic CommerceShippingMethod getCommerceShippingMethod() throws com.liferay.portal.kernel.exception.PortalException
getCommerceShippingMethod in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic long getCommerceShippingMethodId()
getCommerceShippingMethodId in interface CommerceOrderModelpublic long getCompanyId()
getCompanyId in interface CommerceOrderModelgetCompanyId 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 CommerceOrderModelpublic java.util.Date getCreateDate()
getCreateDate in interface CommerceOrderModelgetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelgetCreateDate in interface com.liferay.portal.kernel.model.StagedModelpublic com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge in interface CommerceOrderModelgetExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.String getExternalReferenceCode()
getExternalReferenceCode in interface CommerceOrderModelpublic long getGroupId()
getGroupId in interface CommerceOrderModelgetGroupId in interface com.liferay.portal.kernel.model.GroupedModelpublic java.util.Date getLastPriceUpdateDate()
getLastPriceUpdateDate in interface CommerceOrderModelpublic java.util.Date getModifiedDate()
getModifiedDate in interface CommerceOrderModelgetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelgetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelpublic int getOrderStatus()
getOrderStatus in interface CommerceOrderModelpublic int getPaymentStatus()
getPaymentStatus in interface CommerceOrderModelpublic long getPrimaryKey()
getPrimaryKey in interface CommerceOrderModelpublic java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface CommerceOrderModelgetPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.String getPrintedNote()
getPrintedNote in interface CommerceOrderModelpublic java.lang.String getPurchaseOrderNumber()
getPurchaseOrderNumber in interface CommerceOrderModelpublic java.util.Date getRequestedDeliveryDate()
getRequestedDeliveryDate in interface CommerceOrderModelpublic long getScopeGroupId()
throws com.liferay.portal.kernel.exception.PortalException
getScopeGroupId in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic CommerceAddress getShippingAddress() throws com.liferay.portal.kernel.exception.PortalException
getShippingAddress in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic long getShippingAddressId()
getShippingAddressId in interface CommerceOrderModelpublic java.math.BigDecimal getShippingAmount()
getShippingAmount in interface CommerceOrderModelpublic java.math.BigDecimal getShippingDiscountAmount()
getShippingDiscountAmount in interface CommerceOrderModelpublic java.math.BigDecimal getShippingDiscountPercentageLevel1()
getShippingDiscountPercentageLevel1 in interface CommerceOrderModelpublic java.math.BigDecimal getShippingDiscountPercentageLevel2()
getShippingDiscountPercentageLevel2 in interface CommerceOrderModelpublic java.math.BigDecimal getShippingDiscountPercentageLevel3()
getShippingDiscountPercentageLevel3 in interface CommerceOrderModelpublic java.math.BigDecimal getShippingDiscountPercentageLevel4()
getShippingDiscountPercentageLevel4 in interface CommerceOrderModelpublic com.liferay.commerce.currency.model.CommerceMoney getShippingMoney()
throws com.liferay.portal.kernel.exception.PortalException
getShippingMoney in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getShippingOptionName()
getShippingOptionName in interface CommerceOrderModelpublic int getStatus()
getStatus in interface CommerceOrderModelgetStatus in interface com.liferay.portal.kernel.model.WorkflowedModelpublic long getStatusByUserId()
getStatusByUserId in interface CommerceOrderModelgetStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.lang.String getStatusByUserName()
getStatusByUserName in interface CommerceOrderModelgetStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.lang.String getStatusByUserUuid()
getStatusByUserUuid in interface CommerceOrderModelgetStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.util.Date getStatusDate()
getStatusDate in interface CommerceOrderModelgetStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModelpublic java.math.BigDecimal getSubtotal()
getSubtotal in interface CommerceOrderModelpublic java.math.BigDecimal getSubtotalDiscountAmount()
getSubtotalDiscountAmount in interface CommerceOrderModelpublic java.math.BigDecimal getSubtotalDiscountPercentageLevel1()
getSubtotalDiscountPercentageLevel1 in interface CommerceOrderModelpublic java.math.BigDecimal getSubtotalDiscountPercentageLevel2()
getSubtotalDiscountPercentageLevel2 in interface CommerceOrderModelpublic java.math.BigDecimal getSubtotalDiscountPercentageLevel3()
getSubtotalDiscountPercentageLevel3 in interface CommerceOrderModelpublic java.math.BigDecimal getSubtotalDiscountPercentageLevel4()
getSubtotalDiscountPercentageLevel4 in interface CommerceOrderModelpublic com.liferay.commerce.currency.model.CommerceMoney getSubtotalMoney()
throws com.liferay.portal.kernel.exception.PortalException
getSubtotalMoney in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic java.math.BigDecimal getTaxAmount()
getTaxAmount in interface CommerceOrderModelpublic java.math.BigDecimal getTotal()
getTotal in interface CommerceOrderModelpublic java.math.BigDecimal getTotalDiscountAmount()
getTotalDiscountAmount in interface CommerceOrderModelpublic java.math.BigDecimal getTotalDiscountPercentageLevel1()
getTotalDiscountPercentageLevel1 in interface CommerceOrderModelpublic java.math.BigDecimal getTotalDiscountPercentageLevel2()
getTotalDiscountPercentageLevel2 in interface CommerceOrderModelpublic java.math.BigDecimal getTotalDiscountPercentageLevel3()
getTotalDiscountPercentageLevel3 in interface CommerceOrderModelpublic java.math.BigDecimal getTotalDiscountPercentageLevel4()
getTotalDiscountPercentageLevel4 in interface CommerceOrderModelpublic com.liferay.commerce.currency.model.CommerceMoney getTotalMoney()
throws com.liferay.portal.kernel.exception.PortalException
getTotalMoney in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getTransactionId()
getTransactionId in interface CommerceOrderModelpublic long getUserId()
getUserId in interface CommerceOrderModelgetUserId in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserName()
getUserName in interface CommerceOrderModelgetUserName in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUserUuid()
getUserUuid in interface CommerceOrderModelgetUserUuid in interface com.liferay.portal.kernel.model.AuditedModelpublic java.lang.String getUuid()
getUuid in interface CommerceOrderModelgetUuid in interface com.liferay.portal.kernel.model.StagedModelpublic int hashCode()
hashCode in interface CommerceOrderModelhashCode in class java.lang.Objectpublic boolean isApproved()
true if this commerce order is approved.isApproved in interface CommerceOrderModelisApproved in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is approved; false otherwisepublic boolean isB2B()
throws com.liferay.portal.kernel.exception.PortalException
isB2B in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isCachedModel()
isCachedModel in interface CommerceOrderModelisCachedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public boolean isDenied()
true if this commerce order is denied.isDenied in interface CommerceOrderModelisDenied in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is denied; false otherwisepublic boolean isDraft()
true if this commerce order is a draft.isDraft in interface CommerceOrderModelisDraft in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is a draft; false otherwisepublic boolean isEmpty()
isEmpty in interface CommerceOrderpublic boolean isEscapedModel()
isEscapedModel in interface CommerceOrderModelisEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public boolean isExpired()
true if this commerce order is expired.isExpired in interface CommerceOrderModelisExpired in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is expired; false otherwisepublic boolean isGuestOrder()
throws com.liferay.portal.kernel.exception.PortalException
isGuestOrder in interface CommerceOrdercom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isInactive()
true if this commerce order is inactive.isInactive in interface CommerceOrderModelisInactive in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is inactive; false otherwisepublic boolean isIncomplete()
true if this commerce order is incomplete.isIncomplete in interface CommerceOrderModelisIncomplete in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is incomplete; false otherwisepublic boolean isNew()
isNew in interface CommerceOrderModelisNew in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public boolean isOpen()
isOpen in interface CommerceOrderpublic boolean isPending()
true if this commerce order is pending.isPending in interface CommerceOrderModelisPending in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is pending; false otherwisepublic boolean isScheduled()
true if this commerce order is scheduled.isScheduled in interface CommerceOrderModelisScheduled in interface com.liferay.portal.kernel.model.WorkflowedModeltrue if this commerce order is scheduled; false otherwisepublic boolean isSubscription()
isSubscription in interface CommerceOrderpublic boolean isSubscriptionOrder()
isSubscriptionOrder in interface CommerceOrderpublic void persist()
CommerceOrder interface instead.persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setAdvanceStatus(java.lang.String advanceStatus)
setAdvanceStatus in interface CommerceOrderModeladvanceStatus - the advance status of this commerce orderpublic void setBillingAddressId(long billingAddressId)
setBillingAddressId in interface CommerceOrderModelbillingAddressId - the billing address ID of this commerce orderpublic void setCachedModel(boolean cachedModel)
setCachedModel in interface CommerceOrderModelsetCachedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public void setCommerceAccountId(long commerceAccountId)
setCommerceAccountId in interface CommerceOrderModelcommerceAccountId - the commerce account ID of this commerce orderpublic void setCommerceCurrencyId(long commerceCurrencyId)
setCommerceCurrencyId in interface CommerceOrderModelcommerceCurrencyId - the commerce currency ID of this commerce orderpublic void setCommerceOrderId(long commerceOrderId)
setCommerceOrderId in interface CommerceOrderModelcommerceOrderId - the commerce order ID of this commerce orderpublic void setCommercePaymentMethodKey(java.lang.String commercePaymentMethodKey)
setCommercePaymentMethodKey in interface CommerceOrderModelcommercePaymentMethodKey - the commerce payment method key of this commerce orderpublic void setCommerceShippingMethodId(long commerceShippingMethodId)
setCommerceShippingMethodId in interface CommerceOrderModelcommerceShippingMethodId - the commerce shipping method ID of this commerce orderpublic void setCompanyId(long companyId)
setCompanyId in interface CommerceOrderModelsetCompanyId 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 orderpublic void setCouponCode(java.lang.String couponCode)
setCouponCode in interface CommerceOrderModelcouponCode - the coupon code of this commerce orderpublic void setCreateDate(java.util.Date createDate)
setCreateDate in interface CommerceOrderModelsetCreateDate in interface com.liferay.portal.kernel.model.AuditedModelsetCreateDate in interface com.liferay.portal.kernel.model.StagedModelcreateDate - the create date of this commerce orderpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface CommerceOrderModelsetExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public void setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface CommerceOrderModelsetExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes in interface CommerceOrderModelsetExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public void setExternalReferenceCode(java.lang.String externalReferenceCode)
setExternalReferenceCode in interface CommerceOrderModelexternalReferenceCode - the external reference code of this commerce orderpublic void setGroupId(long groupId)
setGroupId in interface CommerceOrderModelsetGroupId in interface com.liferay.portal.kernel.model.GroupedModelgroupId - the group ID of this commerce orderpublic void setLastPriceUpdateDate(java.util.Date lastPriceUpdateDate)
setLastPriceUpdateDate in interface CommerceOrderModellastPriceUpdateDate - the last price update date of this commerce orderpublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface CommerceOrderModelsetModifiedDate in interface com.liferay.portal.kernel.model.AuditedModelsetModifiedDate in interface com.liferay.portal.kernel.model.StagedModelmodifiedDate - the modified date of this commerce orderpublic void setNew(boolean n)
setNew in interface CommerceOrderModelsetNew in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public void setOrderStatus(int orderStatus)
setOrderStatus in interface CommerceOrderModelorderStatus - the order status of this commerce orderpublic void setPaymentStatus(int paymentStatus)
setPaymentStatus in interface CommerceOrderModelpaymentStatus - the payment status of this commerce orderpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface CommerceOrderModelprimaryKey - the primary key of this commerce orderpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj in interface CommerceOrderModelsetPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelpublic void setPrintedNote(java.lang.String printedNote)
setPrintedNote in interface CommerceOrderModelprintedNote - the printed note of this commerce orderpublic void setPurchaseOrderNumber(java.lang.String purchaseOrderNumber)
setPurchaseOrderNumber in interface CommerceOrderModelpurchaseOrderNumber - the purchase order number of this commerce orderpublic void setRequestedDeliveryDate(java.util.Date requestedDeliveryDate)
setRequestedDeliveryDate in interface CommerceOrderModelrequestedDeliveryDate - the requested delivery date of this commerce orderpublic void setShippingAddressId(long shippingAddressId)
setShippingAddressId in interface CommerceOrderModelshippingAddressId - the shipping address ID of this commerce orderpublic void setShippingAmount(java.math.BigDecimal shippingAmount)
setShippingAmount in interface CommerceOrderModelshippingAmount - the shipping amount of this commerce orderpublic void setShippingDiscountAmount(java.math.BigDecimal shippingDiscountAmount)
setShippingDiscountAmount in interface CommerceOrderModelshippingDiscountAmount - the shipping discount amount of this commerce orderpublic void setShippingDiscountPercentageLevel1(java.math.BigDecimal shippingDiscountPercentageLevel1)
setShippingDiscountPercentageLevel1 in interface CommerceOrderModelshippingDiscountPercentageLevel1 - the shipping discount percentage level1 of this commerce orderpublic void setShippingDiscountPercentageLevel2(java.math.BigDecimal shippingDiscountPercentageLevel2)
setShippingDiscountPercentageLevel2 in interface CommerceOrderModelshippingDiscountPercentageLevel2 - the shipping discount percentage level2 of this commerce orderpublic void setShippingDiscountPercentageLevel3(java.math.BigDecimal shippingDiscountPercentageLevel3)
setShippingDiscountPercentageLevel3 in interface CommerceOrderModelshippingDiscountPercentageLevel3 - the shipping discount percentage level3 of this commerce orderpublic void setShippingDiscountPercentageLevel4(java.math.BigDecimal shippingDiscountPercentageLevel4)
setShippingDiscountPercentageLevel4 in interface CommerceOrderModelshippingDiscountPercentageLevel4 - the shipping discount percentage level4 of this commerce orderpublic void setShippingDiscounts(CommerceDiscountValue commerceDiscountValue)
setShippingDiscounts in interface CommerceOrderpublic void setShippingOptionName(java.lang.String shippingOptionName)
setShippingOptionName in interface CommerceOrderModelshippingOptionName - the shipping option name of this commerce orderpublic void setStatus(int status)
setStatus in interface CommerceOrderModelsetStatus in interface com.liferay.portal.kernel.model.WorkflowedModelstatus - the status of this commerce orderpublic void setStatusByUserId(long statusByUserId)
setStatusByUserId in interface CommerceOrderModelsetStatusByUserId in interface com.liferay.portal.kernel.model.WorkflowedModelstatusByUserId - the status by user ID of this commerce orderpublic void setStatusByUserName(java.lang.String statusByUserName)
setStatusByUserName in interface CommerceOrderModelsetStatusByUserName in interface com.liferay.portal.kernel.model.WorkflowedModelstatusByUserName - the status by user name of this commerce orderpublic void setStatusByUserUuid(java.lang.String statusByUserUuid)
setStatusByUserUuid in interface CommerceOrderModelsetStatusByUserUuid in interface com.liferay.portal.kernel.model.WorkflowedModelstatusByUserUuid - the status by user uuid of this commerce orderpublic void setStatusDate(java.util.Date statusDate)
setStatusDate in interface CommerceOrderModelsetStatusDate in interface com.liferay.portal.kernel.model.WorkflowedModelstatusDate - the status date of this commerce orderpublic void setSubtotal(java.math.BigDecimal subtotal)
setSubtotal in interface CommerceOrderModelsubtotal - the subtotal of this commerce orderpublic void setSubtotalDiscountAmount(java.math.BigDecimal subtotalDiscountAmount)
setSubtotalDiscountAmount in interface CommerceOrderModelsubtotalDiscountAmount - the subtotal discount amount of this commerce orderpublic void setSubtotalDiscountPercentageLevel1(java.math.BigDecimal subtotalDiscountPercentageLevel1)
setSubtotalDiscountPercentageLevel1 in interface CommerceOrderModelsubtotalDiscountPercentageLevel1 - the subtotal discount percentage level1 of this commerce orderpublic void setSubtotalDiscountPercentageLevel2(java.math.BigDecimal subtotalDiscountPercentageLevel2)
setSubtotalDiscountPercentageLevel2 in interface CommerceOrderModelsubtotalDiscountPercentageLevel2 - the subtotal discount percentage level2 of this commerce orderpublic void setSubtotalDiscountPercentageLevel3(java.math.BigDecimal subtotalDiscountPercentageLevel3)
setSubtotalDiscountPercentageLevel3 in interface CommerceOrderModelsubtotalDiscountPercentageLevel3 - the subtotal discount percentage level3 of this commerce orderpublic void setSubtotalDiscountPercentageLevel4(java.math.BigDecimal subtotalDiscountPercentageLevel4)
setSubtotalDiscountPercentageLevel4 in interface CommerceOrderModelsubtotalDiscountPercentageLevel4 - the subtotal discount percentage level4 of this commerce orderpublic void setSubtotalDiscounts(CommerceDiscountValue commerceDiscountValue)
setSubtotalDiscounts in interface CommerceOrderpublic void setTaxAmount(java.math.BigDecimal taxAmount)
setTaxAmount in interface CommerceOrderModeltaxAmount - the tax amount of this commerce orderpublic void setTotal(java.math.BigDecimal total)
setTotal in interface CommerceOrderModeltotal - the total of this commerce orderpublic void setTotalDiscountAmount(java.math.BigDecimal totalDiscountAmount)
setTotalDiscountAmount in interface CommerceOrderModeltotalDiscountAmount - the total discount amount of this commerce orderpublic void setTotalDiscountPercentageLevel1(java.math.BigDecimal totalDiscountPercentageLevel1)
setTotalDiscountPercentageLevel1 in interface CommerceOrderModeltotalDiscountPercentageLevel1 - the total discount percentage level1 of this commerce orderpublic void setTotalDiscountPercentageLevel2(java.math.BigDecimal totalDiscountPercentageLevel2)
setTotalDiscountPercentageLevel2 in interface CommerceOrderModeltotalDiscountPercentageLevel2 - the total discount percentage level2 of this commerce orderpublic void setTotalDiscountPercentageLevel3(java.math.BigDecimal totalDiscountPercentageLevel3)
setTotalDiscountPercentageLevel3 in interface CommerceOrderModeltotalDiscountPercentageLevel3 - the total discount percentage level3 of this commerce orderpublic void setTotalDiscountPercentageLevel4(java.math.BigDecimal totalDiscountPercentageLevel4)
setTotalDiscountPercentageLevel4 in interface CommerceOrderModeltotalDiscountPercentageLevel4 - the total discount percentage level4 of this commerce orderpublic void setTotalDiscounts(CommerceDiscountValue commerceDiscountValue)
setTotalDiscounts in interface CommerceOrderpublic void setTransactionId(java.lang.String transactionId)
setTransactionId in interface CommerceOrderModeltransactionId - the transaction ID of this commerce orderpublic void setUserId(long userId)
setUserId in interface CommerceOrderModelsetUserId in interface com.liferay.portal.kernel.model.AuditedModeluserId - the user ID of this commerce orderpublic void setUserName(java.lang.String userName)
setUserName in interface CommerceOrderModelsetUserName in interface com.liferay.portal.kernel.model.AuditedModeluserName - the user name of this commerce orderpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface CommerceOrderModelsetUserUuid in interface com.liferay.portal.kernel.model.AuditedModeluserUuid - the user uuid of this commerce orderpublic void setUuid(java.lang.String uuid)
setUuid in interface CommerceOrderModelsetUuid in interface com.liferay.portal.kernel.model.StagedModeluuid - the uuid of this commerce orderpublic com.liferay.portal.kernel.model.CacheModel<CommerceOrder> toCacheModel()
toCacheModel in interface CommerceOrderModeltoCacheModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public CommerceOrder toEscapedModel()
toEscapedModel in interface CommerceOrderModeltoEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public java.lang.String toString()
toString in interface CommerceOrderModeltoString in class java.lang.Objectpublic CommerceOrder toUnescapedModel()
toUnescapedModel in interface CommerceOrderModeltoUnescapedModel in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public java.lang.String toXmlString()
toXmlString in interface CommerceOrderModeltoXmlString in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic com.liferay.exportimport.kernel.lar.StagedModelType getStagedModelType()
getStagedModelType in interface com.liferay.portal.kernel.model.StagedModelpublic CommerceOrder getWrappedModel()
getWrappedModel in interface com.liferay.portal.kernel.model.ModelWrapper<CommerceOrder>public boolean isEntityCacheEnabled()
isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public boolean isFinderCacheEnabled()
isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>public void resetOriginalValues()
resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<CommerceOrder>