org.broadleafcommerce.core.catalog.domain
Class SkuAttributeImpl

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.domain.SkuAttributeImpl
All Implemented Interfaces:
java.io.Serializable, SkuAttribute

@Entity
public class SkuAttributeImpl
extends java.lang.Object
implements SkuAttribute

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,

Author:
btaylor
See Also:
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

id

protected java.lang.Long id
The id.


name

protected java.lang.String name
The name.


value

protected java.lang.String value
The value.


searchable

protected java.lang.Boolean searchable
The searchable.


sku

protected Sku sku
The sku.

Constructor Detail

SkuAttributeImpl

public SkuAttributeImpl()
Method Detail

getId

public java.lang.Long getId()
Description copied from interface: SkuAttribute
Gets the id.

Specified by:
getId in interface SkuAttribute
Returns:
the id

setId

public void setId(java.lang.Long id)
Description copied from interface: SkuAttribute
Sets the id.

Specified by:
setId in interface SkuAttribute
Parameters:
id - the new id

getValue

public java.lang.String getValue()
Description copied from interface: SkuAttribute
Gets the value.

Specified by:
getValue in interface SkuAttribute
Returns:
the value

setValue

public void setValue(java.lang.String value)
Description copied from interface: SkuAttribute
Sets the value.

Specified by:
setValue in interface SkuAttribute
Parameters:
value - the new value

getSearchable

public java.lang.Boolean getSearchable()
Description copied from interface: SkuAttribute
Gets the searchable.

Specified by:
getSearchable in interface SkuAttribute
Returns:
the searchable

setSearchable

public void setSearchable(java.lang.Boolean searchable)
Description copied from interface: SkuAttribute
Sets the searchable.

Specified by:
setSearchable in interface SkuAttribute
Parameters:
searchable - the new searchable

getName

public java.lang.String getName()
Description copied from interface: SkuAttribute
Gets the name.

Specified by:
getName in interface SkuAttribute
Returns:
the name

setName

public void setName(java.lang.String name)
Description copied from interface: SkuAttribute
Sets the name.

Specified by:
setName in interface SkuAttribute
Parameters:
name - the new name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSku

public Sku getSku()
Description copied from interface: SkuAttribute
Gets the sku.

Specified by:
getSku in interface SkuAttribute
Returns:
the sku

setSku

public void setSku(Sku sku)
Description copied from interface: SkuAttribute
Sets the sku.

Specified by:
setSku in interface SkuAttribute
Parameters:
sku - the new sku

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2012. All Rights Reserved.