Class Variant
java.lang.Object
com.broadleafcommerce.dataexchange.domain.catalog.product.AbstractPassthroughProperties
com.broadleafcommerce.dataexchange.domain.AbstractExchangeObject
com.broadleafcommerce.dataexchange.domain.EntityExchangeObject
com.broadleafcommerce.dataexchange.domain.catalog.product.Variant
- All Implemented Interfaces:
PassthroughProperties
,ExchangeObject
,Translatable
,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Returns the entity type that this object represents at the service layer.getName()
getSku()
getUpc()
int
hashCode()
void
setExternalId
(String externalId) void
void
setProductId
(String productId) void
setProductTags
(List<ProductTag> productTags) void
void
setTranslations
(List<Translation> translations) void
toString()
Methods inherited from class com.broadleafcommerce.dataexchange.domain.EntityExchangeObject
containsCustomProperty, getCustomProperties, getCustomProperty, getId, setCustomProperties, setCustomProperty, setId
Methods inherited from class com.broadleafcommerce.dataexchange.domain.AbstractExchangeObject
getCorrelationId, getJsonPath, getParentCorrelationId, isNewlyCreated, setCorrelationId, setJsonPath, setNewlyCreated, setParentCorrelationId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.dataexchange.domain.ExchangeObject
getContextState, setContextState
-
Constructor Details
-
Variant
public Variant()
-
-
Method Details
-
getEntityType
Description copied from interface:Translatable
Returns the entity type that this object represents at the service layer. This should be set withTranslation.setEntityType(String)
before persistence.For example, this would be "com.broadleafcommerce.catalog.provider.jpa.domain.product.JpaVariant" for a variant entity. It is also acceptable to set this to the extended entity type.
- Specified by:
getEntityType
in interfaceTranslatable
- Returns:
- the entity type
-
getSku
-
getUpc
-
getExternalId
-
getProductId
-
getName
-
getTranslations
- Specified by:
getTranslations
in interfaceTranslatable
-
getProductTags
-
setSku
-
setUpc
-
setExternalId
-
setProductId
-
setName
-
setTranslations
- Specified by:
setTranslations
in interfaceTranslatable
-
setProductTags
-
equals
- Overrides:
equals
in classEntityExchangeObject
-
canEqual
- Overrides:
canEqual
in classEntityExchangeObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classEntityExchangeObject
-
toString
- Overrides:
toString
in classEntityExchangeObject
-