org.broadleafcommerce.core.catalog.domain
Class ProductAttributeImpl

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.domain.ProductAttributeImpl
All Implemented Interfaces:
Serializable, Searchable<String>, ValueAssignable<String>, ProductAttribute

@Entity
public class ProductAttributeImpl
extends Object
implements ProductAttribute

The Class ProductAttributeImpl.

See Also:
Serialized Form

Field Summary
protected  Long id
          The id.
protected  String name
          The name.
protected  Product product
          The product.
protected  Boolean searchable
          The searchable.
protected  String value
          The value.
 
Constructor Summary
ProductAttributeImpl()
           
 
Method Summary
 boolean equals(Object obj)
           
 Long getId()
          Gets the id.
 String getName()
           
 Product getProduct()
          Gets the product.
 Boolean getSearchable()
           
 String getValue()
           
 int hashCode()
           
 void setId(Long id)
          Sets the id.
 void setName(String name)
           
 void setProduct(Product product)
          Sets the product.
 void setSearchable(Boolean searchable)
           
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected Long id
The id.


name

protected String name
The name.


value

protected String value
The value.


searchable

protected Boolean searchable
The searchable.


product

protected Product product
The product.

Constructor Detail

ProductAttributeImpl

public ProductAttributeImpl()
Method Detail

getId

public Long getId()
Description copied from interface: ProductAttribute
Gets the id.

Specified by:
getId in interface ProductAttribute
Returns:
the id

setId

public void setId(Long id)
Description copied from interface: ProductAttribute
Sets the id.

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

getValue

public String getValue()
Specified by:
getValue in interface ValueAssignable<String>

setValue

public void setValue(String value)
Specified by:
setValue in interface ValueAssignable<String>

getSearchable

public Boolean getSearchable()
Specified by:
getSearchable in interface Searchable<String>

setSearchable

public void setSearchable(Boolean searchable)
Specified by:
setSearchable in interface Searchable<String>

getName

public String getName()
Specified by:
getName in interface ValueAssignable<String>

setName

public void setName(String name)
Specified by:
setName in interface ValueAssignable<String>

toString

public String toString()
Overrides:
toString in class Object

getProduct

public Product getProduct()
Description copied from interface: ProductAttribute
Gets the product.

Specified by:
getProduct in interface ProductAttribute
Returns:
the product

setProduct

public void setProduct(Product product)
Description copied from interface: ProductAttribute
Sets the product.

Specified by:
setProduct in interface ProductAttribute
Parameters:
product - the new product

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.