org.broadleafcommerce.core.order.domain
Class OrderItemAttributeImpl

java.lang.Object
  extended by org.broadleafcommerce.core.order.domain.OrderItemAttributeImpl
All Implemented Interfaces:
java.io.Serializable, OrderItemAttribute

@Entity
public class OrderItemAttributeImpl
extends java.lang.Object
implements OrderItemAttribute

Arbitrary attributes to add to an order-item.

See Also:
OrderItemAttribute, Serialized Form

Field Summary
protected  java.lang.Long id
           
static org.apache.commons.logging.Log LOG
           
protected  java.lang.String name
           
protected  OrderItem orderItem
           
protected  java.lang.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(java.lang.Object obj)
           
 java.lang.Long getId()
          Gets the id.
 java.lang.String getName()
          Gets the name.
 OrderItem getOrderItem()
          Gets the parent orderItem
 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 setOrderItem(OrderItem orderItem)
          Sets the orderItem.
 void setValue(java.lang.String value)
          Sets the value.
 java.lang.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 java.lang.Long id

name

protected java.lang.String name

value

protected java.lang.String value

orderItem

protected OrderItem orderItem
Constructor Detail

OrderItemAttributeImpl

public OrderItemAttributeImpl()
Method Detail

getId

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

Specified by:
getId in interface OrderItemAttribute
Returns:
the id

setId

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

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

getValue

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

Specified by:
getValue in interface OrderItemAttribute
Returns:
the value

setValue

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

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

getName

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

Specified by:
getName in interface OrderItemAttribute
Returns:
the name

setName

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

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.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 java.lang.CloneNotSupportedException,
                           java.lang.SecurityException,
                           java.lang.NoSuchMethodException
Throws:
java.lang.CloneNotSupportedException
java.lang.SecurityException
java.lang.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 java.lang.Object
Returns:

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.