Interface OrderItemAttribute
- All Superinterfaces:
MultiTenantCloneable<OrderItemAttribute>,Serializable,ValueAssignable<String>
- All Known Implementing Classes:
OrderItemAttributeImpl
public interface OrderItemAttribute
extends ValueAssignable<String>, MultiTenantCloneable<OrderItemAttribute>
The Interface OrderItemAttribute. Allows for arbitrary data to be
persisted with the orderItem. This can be used to store additional
items that are required during order entry.
Examples: Engravement Message for a jewelry item TestDate for someone purchasing an online exam Number of minutes for someone purchasing a rate plan.
-
Method Summary
Modifier and TypeMethodDescriptionclone()Provide support for a deep copy of an order item.getId()Gets the id.Gets the parent orderItemvoidSets the id.voidsetOrderItem(OrderItem orderItem) Sets the orderItem.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstanceMethods inherited from interface org.broadleafcommerce.common.value.ValueAssignable
getName, getValue, setName, setValue
-
Method Details
-
getId
Long getId()Gets the id.- Returns:
- the id
-
setId
Sets the id.- Parameters:
id- the new id
-
getOrderItem
OrderItem getOrderItem()Gets the parent orderItem- Returns:
- the orderItem
-
setOrderItem
Sets the orderItem.- Parameters:
orderItem- the associated orderItem
-
clone
OrderItemAttribute clone()Provide support for a deep copy of an order item.- Returns:
-