org.broadleafcommerce.core.catalog.domain
Interface SkuAttribute

All Superinterfaces:
Searchable<String>, Serializable, ValueAssignable<String>
All Known Implementing Classes:
SkuAttributeImpl

public interface SkuAttribute
extends Searchable<String>

Implementations of this interface are used to hold data about a SKU's Attributes. A SKU Attribute is a designator on a SKU that differentiates it from other similar SKUs (for example: Blue attribute for hat).

You should implement this class if you want to make significant changes to how the class is persisted. If you just want to add additional fields then you should extend SkuAttributeImpl.

Author:
btaylor
See Also:
SkuAttributeImpl}, {@link Sku}

Method Summary
 Long getId()
          Gets the id.
 String getName()
          Gets the name.
 Sku getSku()
          Gets the sku.
 void setId(Long id)
          Sets the id.
 void setName(String name)
          Sets the name.
 void setSku(Sku sku)
          Sets the sku.
 
Methods inherited from interface org.broadleafcommerce.common.value.Searchable
getSearchable, setSearchable
 
Methods inherited from interface org.broadleafcommerce.common.value.ValueAssignable
getValue, setValue
 

Method Detail

getId

Long getId()
Gets the id.

Returns:
the id

setId

void setId(Long id)
Sets the id.

Parameters:
id - the new id

getSku

Sku getSku()
Gets the sku.

Returns:
the sku

setSku

void setSku(Sku sku)
Sets the sku.

Parameters:
sku - the new sku

getName

String getName()
Gets the name.

Specified by:
getName in interface ValueAssignable<String>
Returns:
the name

setName

void setName(String name)
Sets the name.

Specified by:
setName in interface ValueAssignable<String>
Parameters:
name - the new name


Copyright © 2013. All Rights Reserved.