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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetAsset()javax.money.CurrencyUnitgetId()getLabel()javax.money.MonetaryAmountDeprecated.intgetType()inthashCode()booleanDeprecated.voidsetAsset(JpaIncludedProductAsset asset) voidsetCurrency(javax.money.CurrencyUnit currency) voidsetDiscountAllowed(boolean discountAllowed) Deprecated.voidsetDisplayOrder(Long displayOrder) voidvoidvoidsetOverridePrice(javax.money.MonetaryAmount amount) voidsetPricingKey(String pricingKey) Deprecated.voidsetProductContextId(String productContextId) voidsetQuantity(int quantity) voidvoidsetVariantContextId(String variantContextId) voidsetVariantParentProductContextId(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:
getIdin 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:
getCurrencyin interfacejavax.money.CurrencySupplier
-
getAsset
- See Also:
-
setId
- Specified by:
setIdin 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()
-