Class SimpleItemImpl
java.lang.Object
de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.SimpleItemImpl
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,SimpleItem,Serializable,Cloneable,Comparable<SimpleItem>
- Direct Known Subclasses:
ItemBaseImpl
- See Also:
-
Field Summary
Fields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKeyFields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes a copy of the object.intcompareTo(SimpleItem item) Get descriptions on the item level.Returns the quantity of this item.intGet the internal number for the item.Returns the TechKey (guid) of the parent item if this item is a sub item.
If there is no parent item, null or TechKey.EMPTY_KEY is returned.Get the technical key for the productId of this item.Returns the product (name) of this item.Returns the quantity of this item.Type safe getter for the extension mapgetUnit()Returns the UOM (Unit of Measure) of this item.
This unit is not localised, e.g.booleanIf product of the item changes (e.g.voidsetDescription(String description) Sets Description.voidsetNumberInt(int number) Set the internal number for the item.voidsetParentId(TechKey parentId) Sets parent Id for an item.voidsetProductChanged(boolean productChanged) If product of the item changes (e.g.voidsetProductGuid(TechKey productGuid) Sets the product guid for this item.voidsetProductId(String productId) Sets the product for this item.voidsetQuantity(BigDecimal quantity) Sets an item quantity.voidSet the unit (UOM) for this item.
The value is not localised, e.g.toString()Methods inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setTechKey, setValidMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, setValidMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
Constructor Details
-
SimpleItemImpl
public SimpleItemImpl()
-
-
Method Details
-
clone
Description copied from class:BusinessObjectBaseMakes a copy of the object. The MessageList is copied.- Overrides:
clonein classBusinessObjectBase- Returns:
- a copy of object
- Throws:
CloneNotSupportedException-CloneNotSupportedException
-
getProductId
Description copied from interface:SimpleItemReturns the product (name) of this item.- Specified by:
getProductIdin interfaceSimpleItem- Returns:
- product name
-
getProductGuid
Get the technical key for the productId of this item.- Specified by:
getProductGuidin interfaceSimpleItem- Returns:
- technical key for the productId
-
setProductId
Description copied from interface:SimpleItemSets the product for this item.- Specified by:
setProductIdin interfaceSimpleItem- Parameters:
productId- product name
-
setProductGuid
Description copied from interface:SimpleItemSets the product guid for this item.- Specified by:
setProductGuidin interfaceSimpleItem- Parameters:
productGuid- TechKey/guid of the product
-
isProductChanged
public boolean isProductChanged()Description copied from interface:SimpleItemIf product of the item changes (e.g. was a notebook and is now a monitor), we reuse the item but we need to know whether the product changed- Specified by:
isProductChangedin interfaceSimpleItem- Returns:
- true if product was changed
-
setProductChanged
public void setProductChanged(boolean productChanged) Description copied from interface:SimpleItemIf product of the item changes (e.g. was a notebook and is now a monitor), we reuse the item but we need to know whether the product changed- Specified by:
setProductChangedin interfaceSimpleItem- Parameters:
productChanged- iftrue, we conside the item to be changted
-
getParentId
Description copied from interface:SimpleItemReturns the TechKey (guid) of the parent item if this item is a sub item.
If there is no parent item, null or TechKey.EMPTY_KEY is returned.- Specified by:
getParentIdin interfaceSimpleItem- Returns:
- TechKey of the parent item
-
setParentId
Description copied from interface:SimpleItemSets parent Id for an item. For example for the sub item, free good item.- Specified by:
setParentIdin interfaceSimpleItem- Parameters:
parentId- TechKey or null/TechKey.EMPTY_KEY
-
getDescription
Description copied from interface:SimpleItemGet descriptions on the item level.- Specified by:
getDescriptionin interfaceSimpleItem- Returns:
- description
-
getQuantity
Description copied from interface:SimpleItemReturns the quantity of this item.- Specified by:
getQuantityin interfaceSimpleItem- Returns:
- quantity
-
getLastQuantity
Description copied from interface:SimpleItemReturns the quantity of this item.- Specified by:
getLastQuantityin interfaceSimpleItem- Returns:
- quantity
-
getUnit
Description copied from interface:SimpleItemReturns the UOM (Unit of Measure) of this item.
This unit is not localised, e.g. ST- Specified by:
getUnitin interfaceSimpleItem- Returns:
- UOM
-
setDescription
Description copied from interface:SimpleItemSets Description.- Specified by:
setDescriptionin interfaceSimpleItem- Parameters:
description- item description
-
setQuantity
Description copied from interface:SimpleItemSets an item quantity.- Specified by:
setQuantityin interfaceSimpleItem- Parameters:
quantity- value to set
-
setUnit
Description copied from interface:SimpleItemSet the unit (UOM) for this item.
The value is not localised, e.g. ST- Specified by:
setUnitin interfaceSimpleItem- Parameters:
unit- UOM
-
setNumberInt
public void setNumberInt(int number) Set the internal number for the item. The internal number is the item number (Positionsnummer) displayed on the front end and generated by the backend system. In the default case the numbers are starting with 10 and increased by 10, e.g. 10, 20, 30, 40....- Specified by:
setNumberIntin interfaceSimpleItem- Parameters:
number- position
-
getNumberInt
public int getNumberInt()Get the internal number for the item. The internal number is the item number (Positionsnummer) displayed on the front end and generated by the backend system. In the default case the numbers are starting with 10 and increased by 10, e.g. 10, 20, 30, 40....- Specified by:
getNumberIntin interfaceSimpleItem- Returns:
- numberInt/position
-
getTypedExtensionMap
Description copied from interface:SimpleItemType safe getter for the extension map- Specified by:
getTypedExtensionMapin interfaceSimpleItem- Returns:
- extension map attached to this item
-
compareTo
- Specified by:
compareToin interfaceComparable<SimpleItem>
-
toString
- Overrides:
toStringin classBusinessObjectBase
-