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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFromMeAttributeChoiceMappings(org.modelmapper.ModelMapper mapper) protected voidaddFromMeItemChoiceMappings(org.modelmapper.ModelMapper mapper) protected voidaddFromMeProductOptionMappings(org.modelmapper.ModelMapper mapper) protected voidaddToMeAttributeChoiceMappings(org.modelmapper.ModelMapper mapper) protected voidaddToMeItemChoiceMappings(org.modelmapper.ModelMapper mapper) protected voidaddToMeProductOptionMappings(org.modelmapper.ModelMapper mapper) protected booleanbooleanorg.modelmapper.ModelMapperfromMe()get_id()Class<?>javax.money.CurrencyUnitgetLabel()getName()javax.money.MonetaryAmountcom.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTrackinginthashCode()booleanvoidvoidsetAllowedValues(List<JpaAttributeChoiceValue> allowedValues) voidsetAttributeChoiceAttributes(Map<String, Object> attributeChoiceAttributes) voidsetAttributeName(String attributeName) voidsetCategoryContextId(String categoryContextId) voidsetChoiceKey(String choiceKey) voidsetChoiceType(String choiceType) voidsetContextId(String contextId) voidsetCurrency(javax.money.CurrencyUnit currency) voidsetDefaultProductContextId(String defaultProductContextId) voidsetDefaultProductInCategoryContextId(String defaultProductInCategoryContextId) voidsetDefaultVariantContextId(String defaultVariantContextId) voidsetDiscountAllowed(Boolean discountAllowed) voidsetDisplayOrder(Integer displayOrder) voidsetErrorCode(String errorCode) voidsetErrorMessage(String errorMessage) voidsetItemChoiceAttributes(Map<String, Object> itemChoiceAttributes) voidvoidsetMaximumQuantity(Integer maximumQuantity) voidsetMinimumQuantity(Integer minimumQuantity) voidvoidsetOptionSubItemIdentifier(String optionSubItemIdentifier) voidsetOptionType(String optionType) voidsetOverridePrice(javax.money.MonetaryAmount overridePrice) voidsetPreferAddTemplateByReference(boolean preferAddTemplateByReference) voidsetPricingKey(String pricingKey) voidsetProductContextId(String productContextId) voidsetRequiredChoice(Boolean requiredChoice) voidsetSearchOnOption(Boolean searchOnOption) voidsetSelectionType(String selectionType) voidsetSpecificChoices(List<JpaSpecificItemChoice> specificChoices) voidsetSpecificItemChoice(JpaSpecificItemChoice specificItemChoice) voidsetTargetType(String targetType) voidsetTemplateContextId(String templateContextId) voidsetTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking) voidsetValidationRule(String validationRule) voidsetValidationStrategy(String validationStrategy) voidsetValidationType(String validationType) org.modelmapper.ModelMappertoMe()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMeMethods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationStateMethods inherited from interface com.broadleafcommerce.data.tracking.core.Trackable
getNotificationStates, getNotificationStates, setNotificationStatesMethods 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:
fromMein 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:
toMein 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:
getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
getDisplay
- Specified by:
getDisplayin 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:
getContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable- Specified by:
getContextIdin interfacecom.broadleafcommerce.translation.domain.Translatable
-
getTracking
public com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking getTracking()- Specified by:
getTrackingin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
getName
-
isPreferAddTemplateByReference
public boolean isPreferAddTemplateByReference() -
getOptionSubItemIdentifier
-
getTemplateContextId
-
getLabel
-
getOptionType
-
getDisplayOrder
-
getProductContextId
-
getSearchOnOption
-
getChoiceKey
-
getTargetType
-
getSelectionType
-
getMaximumQuantity
-
getMinimumQuantity
-
getCurrency
public javax.money.CurrencyUnit getCurrency() -
getDiscountAllowed
-
getPricingKey
-
getCategoryContextId
-
getDefaultProductInCategoryContextId
-
getDefaultProductContextId
-
getDefaultVariantContextId
-
getSpecificChoices
-
getSpecificItemChoice
-
getItemChoiceAttributes
-
getAttributeName
-
getChoiceType
-
getRequiredChoice
-
getValidationStrategy
-
getValidationType
-
getValidationRule
-
getErrorMessage
-
getErrorCode
-
getAllowedValues
-
getAttributeChoiceAttributes
-
set_id
-
setContextId
- Specified by:
setContextIdin interfacecom.broadleafcommerce.data.tracking.core.Trackable
-
setTracking
public void setTracking(com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking tracking) - Specified by:
setTrackingin interfacecom.broadleafcommerce.data.tracking.core.TypedTrackable<com.broadleafcommerce.data.tracking.jpa.filtering.domain.CatalogJpaTracking>
-
setName
-
setPreferAddTemplateByReference
public void setPreferAddTemplateByReference(boolean preferAddTemplateByReference) -
setOptionSubItemIdentifier
-
setTemplateContextId
-
setLabel
-
setOptionType
-
setDisplayOrder
-
setProductContextId
-
setSearchOnOption
-
setChoiceKey
-
setTargetType
-
setSelectionType
-
setMaximumQuantity
-
setMinimumQuantity
-
setCurrency
public void setCurrency(javax.money.CurrencyUnit currency) -
setDiscountAllowed
-
setPricingKey
-
setCategoryContextId
-
setDefaultProductInCategoryContextId
-
setDefaultProductContextId
-
setDefaultVariantContextId
-
setSpecificChoices
-
setSpecificItemChoice
-
setItemChoiceAttributes
-
setAttributeName
-
setChoiceType
-
setRequiredChoice
-
setValidationStrategy
-
setValidationType
-
setValidationRule
-
setErrorMessage
-
setErrorCode
-
setAllowedValues
-
setAttributeChoiceAttributes
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-