|
||||||||||
| 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 java.lang.Long |
id
The id. |
protected java.lang.String |
name
The name. |
protected java.lang.Boolean |
searchable
The searchable. |
protected Sku |
sku
The sku. |
protected java.lang.String |
value
The value. |
| Constructor Summary | |
|---|---|
SkuAttributeImpl()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.Long |
getId()
Gets the id. |
java.lang.String |
getName()
Gets the name. |
java.lang.Boolean |
getSearchable()
Gets the searchable. |
Sku |
getSku()
Gets the sku. |
java.lang.String |
getValue()
Gets the value. |
int |
hashCode()
|
void |
setId(java.lang.Long id)
Sets the id. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setSearchable(java.lang.Boolean searchable)
Sets the searchable. |
void |
setSku(Sku sku)
Sets the sku. |
void |
setValue(java.lang.String value)
Sets the value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Long id
protected java.lang.String name
protected java.lang.String value
protected java.lang.Boolean searchable
protected Sku sku
| Constructor Detail |
|---|
public SkuAttributeImpl()
| Method Detail |
|---|
public java.lang.Long getId()
SkuAttribute
getId in interface SkuAttributepublic void setId(java.lang.Long id)
SkuAttribute
setId in interface SkuAttributeid - the new idpublic java.lang.String getValue()
SkuAttribute
getValue in interface SkuAttributepublic void setValue(java.lang.String value)
SkuAttribute
setValue in interface SkuAttributevalue - the new valuepublic java.lang.Boolean getSearchable()
SkuAttribute
getSearchable in interface SkuAttributepublic void setSearchable(java.lang.Boolean searchable)
SkuAttribute
setSearchable in interface SkuAttributesearchable - the new searchablepublic java.lang.String getName()
SkuAttribute
getName in interface SkuAttributepublic void setName(java.lang.String name)
SkuAttribute
setName in interface SkuAttributename - the new namepublic java.lang.String toString()
toString in class java.lang.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 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||