Class JpaPurchaseItem
java.lang.Object
com.broadleafcommerce.recommendationengine.provider.jpa.domain.JpaPurchaseItem
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,Serializable
@Entity
public class JpaPurchaseItem
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Class<?>
The jpa primary key.javax.money.CurrencyUnit
getName()
int
getSku()
javax.money.MonetaryAmount
getUri()
int
hashCode()
void
setAttributes
(Map<String, Object> attributes) void
setBrandId
(String brandId) void
setCategoryIds
(Set<String> categoryIds) void
setContextId
(String contextId) The jpa primary key.void
setCurrency
(javax.money.CurrencyUnit currency) void
setMerchandisingContext
(String merchandisingContext) void
setMerchandisingTypeId
(String merchandisingTypeId) void
void
setPriceListId
(String priceListId) void
setProductId
(String productId) void
setProductTags
(List<String> productTags) void
setPurchase
(JpaPurchase purchase) void
setQuantity
(int quantity) void
void
setTargetDemographicId
(String targetDemographicId) void
setUnitPrice
(javax.money.MonetaryAmount unitPrice) void
void
setVariantId
(String variantId) void
setVendorRef
(String vendorRef) toString()
-
Constructor Details
-
JpaPurchaseItem
public JpaPurchaseItem()
-
-
Method Details
-
setUnitPrice
public void setUnitPrice(javax.money.MonetaryAmount unitPrice) -
getUnitPrice
public javax.money.MonetaryAmount getUnitPrice() -
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getContextId
The jpa primary key.- Returns:
- The jpa primary key
-
getPurchase
-
getName
-
getUri
-
getQuantity
public int getQuantity() -
getCurrency
public javax.money.CurrencyUnit getCurrency() -
getPriceListId
-
getVariantId
-
getProductId
-
getCategoryIds
-
getProductTags
-
getSku
-
getVendorRef
-
getMerchandisingContext
-
getBrandId
-
getMerchandisingTypeId
-
getTargetDemographicId
-
getAttributes
-
setContextId
The jpa primary key.- Parameters:
_id
- The jpa primary key
-
setPurchase
-
setName
-
setUri
-
setQuantity
public void setQuantity(int quantity) -
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) -
setPriceListId
-
setVariantId
-
setProductId
-
setCategoryIds
-
setProductTags
-
setSku
-
setVendorRef
-
setMerchandisingContext
-
setBrandId
-
setMerchandisingTypeId
-
setTargetDemographicId
-
setAttributes
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-