Class JpaOptionTemplate
java.lang.Object
com.broadleafcommerce.catalog.provider.jpa.domain.option.JpaOptionTemplate
- All Implemented Interfaces:
com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
,com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
,com.broadleafcommerce.data.tracking.core.Trackable
,com.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
,com.broadleafcommerce.translation.domain.Translatable
,Serializable
@Entity
public class JpaOptionTemplate
extends Object
implements com.broadleafcommerce.data.tracking.core.CatalogTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable, com.broadleafcommerce.translation.domain.Translatable
Persistent counter-part to a
OptionTemplate
for use with a JPA datastore.- Author:
- Nathan Moore (nathanmoore).
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFromMeAttributeChoiceMappings
(org.modelmapper.ModelMapper mapper) protected void
addFromMeItemChoiceMappings
(org.modelmapper.ModelMapper mapper) protected void
addFromMeProductOptionMappings
(org.modelmapper.ModelMapper mapper) protected void
addToMeAttributeChoiceMappings
(org.modelmapper.ModelMapper mapper) protected void
addToMeItemChoiceMappings
(org.modelmapper.ModelMapper mapper) protected void
addToMeProductOptionMappings
(org.modelmapper.ModelMapper mapper) protected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
get_id()
Class<?>
javax.money.CurrencyUnit
getLabel()
getName()
javax.money.MonetaryAmount
com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking
int
hashCode()
void
void
setAllowedValues
(List<JpaAttributeChoiceValue> allowedValues) void
setAttributeName
(String attributeName) void
setCategoryContextId
(String categoryContextId) void
setChoiceKey
(String choiceKey) void
setChoiceType
(String choiceType) void
setContextId
(String contextId) void
setCurrency
(javax.money.CurrencyUnit currency) void
setDefaultProductContextId
(String defaultProductContextId) void
setDefaultProductInCategoryContextId
(String defaultProductInCategoryContextId) void
setDefaultVariantContextId
(String defaultVariantContextId) void
setDiscountAllowed
(Boolean discountAllowed) void
setDisplayOrder
(Integer displayOrder) void
setErrorCode
(String errorCode) void
setErrorMessage
(String errorMessage) void
void
setMaximumQuantity
(Integer maximumQuantity) void
setMinimumQuantity
(Integer minimumQuantity) void
void
setOptionSubItemIdentifier
(String optionSubItemIdentifier) void
setOptionType
(String optionType) void
setOverridePrice
(javax.money.MonetaryAmount overridePrice) void
setPricingKey
(String pricingKey) void
setProductContextId
(String productContextId) void
setRequiredChoice
(Boolean requiredChoice) void
setSelectionType
(String selectionType) void
setSpecificChoices
(List<JpaSpecificItemChoice> specificChoices) void
setTargetType
(String targetType) void
setTemplateContextId
(String templateContextId) void
setTracking
(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking) void
setValidationRule
(String validationRule) void
setValidationStrategy
(String validationStrategy) void
setValidationType
(String validationType) org.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
Methods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStates
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TypedTrackable
setTracking
-
Constructor Details
-
JpaOptionTemplate
public JpaOptionTemplate()
-
-
Method Details
-
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
addFromMeProductOptionMappings
protected void addFromMeProductOptionMappings(org.modelmapper.ModelMapper mapper) -
addFromMeAttributeChoiceMappings
protected void addFromMeAttributeChoiceMappings(org.modelmapper.ModelMapper mapper) -
addFromMeItemChoiceMappings
protected void addFromMeItemChoiceMappings(org.modelmapper.ModelMapper mapper) -
toMe
@NonNull public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
addToMeProductOptionMappings
protected void addToMeProductOptionMappings(org.modelmapper.ModelMapper mapper) -
addToMeAttributeChoiceMappings
protected void addToMeAttributeChoiceMappings(org.modelmapper.ModelMapper mapper) -
addToMeItemChoiceMappings
protected void addToMeItemChoiceMappings(org.modelmapper.ModelMapper mapper) -
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplay
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setOverridePrice
public void setOverridePrice(javax.money.MonetaryAmount overridePrice) -
getOverridePrice
public javax.money.MonetaryAmount getOverridePrice() -
get_id
-
getContextId
- Specified by:
getContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
- Specified by:
getContextId
in interfacecom.broadleafcommerce.translation.domain.Translatable
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking getTracking()- Specified by:
getTracking
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getName
-
getOptionSubItemIdentifier
-
getTemplateContextId
-
getLabel
-
getOptionType
-
getDisplayOrder
-
getProductContextId
-
getChoiceKey
-
getTargetType
-
getSelectionType
-
getMaximumQuantity
-
getMinimumQuantity
-
getCurrency
public javax.money.CurrencyUnit getCurrency() -
getDiscountAllowed
-
getPricingKey
-
getCategoryContextId
-
getDefaultProductInCategoryContextId
-
getDefaultProductContextId
-
getDefaultVariantContextId
-
getSpecificChoices
-
getAttributeName
-
getChoiceType
-
getRequiredChoice
-
getValidationStrategy
-
getValidationType
-
getValidationRule
-
getErrorMessage
-
getErrorCode
-
getAllowedValues
-
set_id
-
setContextId
- Specified by:
setContextId
in interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking) - Specified by:
setTracking
in interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
-
setName
-
setOptionSubItemIdentifier
-
setTemplateContextId
-
setLabel
-
setOptionType
-
setDisplayOrder
-
setProductContextId
-
setChoiceKey
-
setTargetType
-
setSelectionType
-
setMaximumQuantity
-
setMinimumQuantity
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) -
setDiscountAllowed
-
setPricingKey
-
setCategoryContextId
-
setDefaultProductInCategoryContextId
-
setDefaultProductContextId
-
setDefaultVariantContextId
-
setSpecificChoices
-
setAttributeName
-
setChoiceType
-
setRequiredChoice
-
setValidationStrategy
-
setValidationType
-
setValidationRule
-
setErrorMessage
-
setErrorCode
-
setAllowedValues
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-