@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()
Gets the searchable.
|
Sku |
getSku()
Gets the sku.
|
String |
getValue()
Gets the value.
|
int |
hashCode() |
void |
setId(Long id)
Sets the id.
|
void |
setName(String name)
Sets the name.
|
void |
setSearchable(Boolean searchable)
Sets the searchable.
|
void |
setSku(Sku sku)
Sets the sku.
|
void |
setValue(String value)
Sets the 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()
SkuAttributegetValue in interface SkuAttributepublic void setValue(String value)
SkuAttributesetValue in interface SkuAttributevalue - the new valuepublic Boolean getSearchable()
SkuAttributegetSearchable in interface SkuAttributepublic void setSearchable(Boolean searchable)
SkuAttributesetSearchable in interface SkuAttributesearchable - the new searchablepublic String getName()
SkuAttributegetName in interface SkuAttributepublic void setName(String name)
SkuAttributesetName 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.