org.broadleafcommerce.core.order.domain
Class OrderItemAttributeImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.OrderItemAttributeImpl
All Implemented Interfaces:
Serializable, ValueAssignable<String>, OrderItemAttribute

@Entity
public class OrderItemAttributeImpl
extends Object
implements OrderItemAttribute

Arbitrary attributes to add to an order-item.

See Also:
OrderItemAttribute, Serialized Form

Field Summary
protected  Long id
           
static org.apache.commons.logging.Log LOG
           
protected  String name
           
protected  OrderItem orderItem
           
protected  String value
           
 
Constructor Summary
OrderItemAttributeImpl()
           
 
Method Summary
 void checkCloneable(OrderItemAttribute itemAttribute)
           
 OrderItemAttribute clone()
          Provide support for a deep copy of an order item.
 boolean equals(Object obj)
           
 Long getId()
          Gets the id.
 String getName()
           
 OrderItem getOrderItem()
          Gets the parent orderItem
 String getValue()
           
 int hashCode()
           
 void setId(Long id)
          Sets the id.
 void setName(String name)
           
 void setOrderItem(OrderItem orderItem)
          Sets the orderItem.
 void setValue(String value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

id

protected Long id

name

protected String name

value

protected String value

orderItem

protected OrderItem orderItem
Constructor Detail

OrderItemAttributeImpl

public OrderItemAttributeImpl()
Method Detail

getId

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

Specified by:
getId in interface OrderItemAttribute
Returns:
the id

setId

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

Specified by:
setId in interface OrderItemAttribute
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>

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

getOrderItem

public OrderItem getOrderItem()
Description copied from interface: OrderItemAttribute
Gets the parent orderItem

Specified by:
getOrderItem in interface OrderItemAttribute
Returns:
the orderItem

setOrderItem

public void setOrderItem(OrderItem orderItem)
Description copied from interface: OrderItemAttribute
Sets the orderItem.

Specified by:
setOrderItem in interface OrderItemAttribute
Parameters:
orderItem - the associated orderItem

checkCloneable

public void checkCloneable(OrderItemAttribute itemAttribute)
                    throws CloneNotSupportedException,
                           SecurityException,
                           NoSuchMethodException
Throws:
CloneNotSupportedException
SecurityException
NoSuchMethodException

clone

public OrderItemAttribute clone()
Description copied from interface: OrderItemAttribute
Provide support for a deep copy of an order item.

Specified by:
clone in interface OrderItemAttribute
Overrides:
clone in class Object
Returns:

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.