|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.catalog.domain.SkuAttributeImpl
@Entity public class SkuAttributeImpl
The Class SkuAttributeImpl is the default implementation of 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,
SkuAttribute}, {@link SkuImpl},
Serialized Form| Field Summary | |
|---|---|
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 Summary | |
|---|---|
SkuAttributeImpl()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Long id
protected String name
protected String value
protected Boolean searchable
protected Sku sku
| Constructor Detail |
|---|
public SkuAttributeImpl()
| Method Detail |
|---|
public Long getId()
SkuAttribute
getId in interface SkuAttributepublic void setId(Long id)
SkuAttribute
setId 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()
SkuAttribute
getName in interface ValueAssignable<String>getName in interface SkuAttributepublic void setName(String name)
SkuAttribute
setName in interface ValueAssignable<String>setName in interface SkuAttributename - the new namepublic String toString()
toString in class Objectpublic Sku getSku()
SkuAttribute
getSku in interface SkuAttributepublic void setSku(Sku sku)
SkuAttribute
setSku in interface SkuAttributesku - the new skupublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||