@Entity public class SkuAttributeImpl extends Object implements SkuAttribute
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.
SkuAttribute}, {@link SkuImpl},
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected Long |
id
The id.
|
protected String |
name
The name.
|
protected Boolean |
searchable
The searchable.
|
protected Sku |
sku
The sku.
|
protected String |
value
The value.
|
| Constructor and Description |
|---|
SkuAttributeImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Long |
getId()
Gets the id.
|
String |
getName()
Gets the name.
|
Boolean |
getSearchable() |
Sku |
getSku()
Gets the sku.
|
String |
getValue() |
int |
hashCode() |
void |
setId(Long id)
Sets the id.
|
void |
setName(String name)
Sets the name.
|
void |
setSearchable(Boolean searchable) |
void |
setSku(Sku sku)
Sets the sku.
|
void |
setValue(String value) |
String |
toString() |
protected Long id
protected String name
protected String value
protected Boolean searchable
protected Sku sku
public Long getId()
SkuAttributegetId in interface SkuAttributepublic void setId(Long id)
SkuAttributesetId in interface SkuAttributeid - the new idpublic String getValue()
getValue in interface ValueAssignable<String>public void setValue(String value)
setValue in interface ValueAssignable<String>public Boolean getSearchable()
getSearchable in interface Searchable<String>public void setSearchable(Boolean searchable)
setSearchable in interface Searchable<String>public String getName()
SkuAttributegetName in interface ValueAssignable<String>getName in interface SkuAttributepublic void setName(String name)
SkuAttributesetName in interface ValueAssignable<String>setName in interface SkuAttributename - the new namepublic Sku getSku()
SkuAttributegetSku in interface SkuAttributepublic void setSku(Sku sku)
SkuAttributesetSku in interface SkuAttributesku - the new skuCopyright © 2014. All Rights Reserved.