Class OrderItemAttributeImpl
java.lang.Object
org.broadleafcommerce.core.order.domain.OrderItemAttributeImpl
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<OrderItemAttribute>,org.broadleafcommerce.common.value.ValueAssignable<String>,OrderItemAttribute
Arbitrary attributes to add to an order-item.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCloneable(OrderItemAttribute itemAttribute) clone()Provide support for a deep copy of an order item.<G extends OrderItemAttribute>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) booleangetId()Gets the id.getName()Gets the parent orderItemgetValue()inthashCode()voidSets the id.voidvoidsetOrderItem(OrderItem orderItem) Sets the orderItem.voidtoString()
-
Field Details
-
LOG
public static final org.apache.commons.logging.Log LOG -
id
-
name
-
value
-
orderItem
-
-
Constructor Details
-
OrderItemAttributeImpl
public OrderItemAttributeImpl()
-
-
Method Details
-
getId
Description copied from interface:OrderItemAttributeGets the id.- Specified by:
getIdin interfaceOrderItemAttribute- Returns:
- the id
-
setId
Description copied from interface:OrderItemAttributeSets the id.- Specified by:
setIdin interfaceOrderItemAttribute- Parameters:
id- the new id
-
getValue
- Specified by:
getValuein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
setValue
- Specified by:
setValuein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
getName
- Specified by:
getNamein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
setName
- Specified by:
setNamein interfaceorg.broadleafcommerce.common.value.ValueAssignable<String>
-
toString
-
getOrderItem
Description copied from interface:OrderItemAttributeGets the parent orderItem- Specified by:
getOrderItemin interfaceOrderItemAttribute- Returns:
- the orderItem
-
setOrderItem
Description copied from interface:OrderItemAttributeSets the orderItem.- Specified by:
setOrderItemin interfaceOrderItemAttribute- Parameters:
orderItem- the associated orderItem
-
checkCloneable
public void checkCloneable(OrderItemAttribute itemAttribute) throws CloneNotSupportedException, SecurityException, NoSuchMethodException -
clone
Description copied from interface:OrderItemAttributeProvide support for a deep copy of an order item.- Specified by:
clonein interfaceOrderItemAttribute- Overrides:
clonein classObject- Returns:
-
hashCode
public int hashCode() -
equals
-
createOrRetrieveCopyInstance
public <G extends OrderItemAttribute> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<OrderItemAttribute>- Throws:
CloneNotSupportedException
-