org.broadleafcommerce.core.order.domain
Class OrderItemAttributeImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.OrderItemAttributeImpl
All Implemented Interfaces:
Serializable, 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()
          Gets the name.
 OrderItem getOrderItem()
          Gets the parent orderItem
 String getValue()
          Gets the value.
 int hashCode()
           
 void setId(Long id)
          Sets the id.
 void setName(String name)
          Sets the name.
 void setOrderItem(OrderItem orderItem)
          Sets the orderItem.
 void setValue(String value)
          Sets the 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()
Description copied from interface: OrderItemAttribute
Gets the value.

Specified by:
getValue in interface OrderItemAttribute
Returns:
the value

setValue

public void setValue(String value)
Description copied from interface: OrderItemAttribute
Sets the value.

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

getName

public String getName()
Description copied from interface: OrderItemAttribute
Gets the name.

Specified by:
getName in interface OrderItemAttribute
Returns:
the name

setName

public void setName(String name)
Description copied from interface: OrderItemAttribute
Sets the name.

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

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 © 2012. All Rights Reserved.