Class SkuAttributeImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.SkuAttributeImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<SkuAttribute>,org.broadleafcommerce.common.value.ValueAssignable<String>,SkuAttribute
The Class SkuAttributeImpl is the default implementation of
This implementation uses a Hibernate implementation of JPA configured through annotations. The Entity references the following tables: BLC_SKU_ATTRIBUTES,
SkuAttribute. A SKU Attribute
is a designator on a SKU that differentiates it from other similar SKUs (for example: Blue
attribute for hat). If you want to add fields specific to your implementation of
BroadLeafCommerce you should extend this class and add your fields. If you need to make
significant changes to the SkuImpl then you should implement your own version of Sku.
This implementation uses a Hibernate implementation of JPA configured through annotations. The Entity references the following tables: BLC_SKU_ATTRIBUTES,
- Author:
- btaylor
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends SkuAttribute>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleangetId()Gets the id.getName()Gets the name.getSku()Gets the sku.getValue()inthashCode()voidSets the id.voidSets the name.voidSets the sku.voidtoString()
-
Field Details
-
id
The id. -
name
The name. -
value
The value. -
sku
The sku.
-
-
Constructor Details
-
SkuAttributeImpl
public SkuAttributeImpl()
-
-
Method Details
-
getId
Description copied from interface:SkuAttributeGets the id.- Specified by:
getIdin interfaceSkuAttribute- Returns:
- the id
-
setId
Description copied from interface:SkuAttributeSets the id.- Specified by:
setIdin interfaceSkuAttribute- Parameters:
id- the new id
-
getValue
- Specified by:
getValuein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
setValue
- Specified by:
setValuein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
getName
Description copied from interface:SkuAttributeGets the name.- Specified by:
getNamein interfaceSkuAttribute- Specified by:
getNamein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>- Returns:
- the name
-
setName
Description copied from interface:SkuAttributeSets the name.- Specified by:
setNamein interfaceSkuAttribute- Specified by:
setNamein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>- Parameters:
name- the new name
-
toString
-
getSku
Description copied from interface:SkuAttributeGets the sku.- Specified by:
getSkuin interfaceSkuAttribute- Returns:
- the sku
-
setSku
Description copied from interface:SkuAttributeSets the sku.- Specified by:
setSkuin interfaceSkuAttribute- Parameters:
sku- the new sku
-
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends SkuAttribute> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<SkuAttribute>- Throws:
CloneNotSupportedException
-