Class JpaIncludedProduct
java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.JpaIncludedProduct
- All Implemented Interfaces:
com.broadleafcommerce.translation.mapping.SubIdentifiable
,Serializable
,javax.money.CurrencySupplier
public class JpaIncludedProduct
extends Object
implements Serializable, javax.money.CurrencySupplier, com.broadleafcommerce.translation.mapping.SubIdentifiable
Persistent counter-part to a
IncludedProduct
for use with a JPA datastore.- Author:
- Samarth Dhruva (samarthd)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getAsset()
javax.money.CurrencyUnit
getId()
getLabel()
javax.money.MonetaryAmount
Deprecated.int
getType()
int
hashCode()
boolean
Deprecated.void
setAsset
(JpaIncludedProductAsset asset) void
setCurrency
(javax.money.CurrencyUnit currency) void
setDiscountAllowed
(boolean discountAllowed) Deprecated.void
setDisplayOrder
(Long displayOrder) void
void
void
setOverridePrice
(javax.money.MonetaryAmount amount) void
setPricingKey
(String pricingKey) Deprecated.void
setProductContextId
(String productContextId) void
setQuantity
(int quantity) void
void
setVariantContextId
(String variantContextId) void
setVariantParentProductContextId
(String variantParentProductContextId) toString()
-
Constructor Details
-
JpaIncludedProduct
public JpaIncludedProduct()
-
-
Method Details
-
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice() -
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount amount) -
getId
- Specified by:
getId
in interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
- See Also:
-
SubIdentifiable.getId()
-
getPricingKey
Deprecated.- See Also:
-
getType
- Returns:
- the persisted counter-part of
IncludedProduct.getType()
-
getLabel
- Returns:
- the persisted counter-part of
IncludedProduct.getLabel()
-
getDisplayOrder
- Returns:
- the persisted counter-part of
IncludedProduct.getDisplayOrder()
-
getProductContextId
- Returns:
- the persisted counter-part of
IncludedProduct.getProduct()
-
getVariantContextId
- Returns:
- the persisted counter-part of
IncludedProduct.getVariant()
-
getVariantParentProductContextId
- Returns:
- the persisted counter-part of
IncludedProduct.variantParentProductId
-
isDiscountAllowed
Deprecated.- Returns:
- the persisted counter-part of
IncludedProduct.isDiscountAllowed()
-
getQuantity
public int getQuantity()- Returns:
- the persisted counter-part of
IncludedProduct.getQuantity()
-
getCurrency
public javax.money.CurrencyUnit getCurrency()- Specified by:
getCurrency
in interfacejavax.money.CurrencySupplier
-
getAsset
- See Also:
-
setId
- Specified by:
setId
in interfacecom.broadleafcommerce.translation.mapping.SubIdentifiable
- See Also:
-
SubIdentifiable.getId()
-
setPricingKey
Deprecated.- See Also:
-
setType
- Parameters:
type
- the persisted counter-part ofIncludedProduct.getType()
-
setLabel
- Parameters:
label
- the persisted counter-part ofIncludedProduct.getLabel()
-
setDisplayOrder
- Parameters:
displayOrder
- the persisted counter-part ofIncludedProduct.getDisplayOrder()
-
setProductContextId
- Parameters:
productContextId
- the persisted counter-part ofIncludedProduct.getProduct()
-
setVariantContextId
- Parameters:
variantContextId
- the persisted counter-part ofIncludedProduct.getVariant()
-
setVariantParentProductContextId
- Parameters:
variantParentProductContextId
- the persisted counter-part ofIncludedProduct.variantParentProductId
-
setDiscountAllowed
Deprecated.- Parameters:
discountAllowed
- the persisted counter-part ofIncludedProduct.isDiscountAllowed()
-
setQuantity
public void setQuantity(int quantity) - Parameters:
fixedQuantity
- the persisted counter-part ofIncludedProduct.getQuantity()
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) -
setAsset
- See Also:
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-