Class BasketERP
- java.lang.Object
-
- de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
-
- de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.IsaBackendBusinessObjectBaseSalesERP
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.SalesDocumentERP
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.basket.backend.impl.erp.BasketERP
-
- All Implemented Interfaces:
BackendBusinessObject,BackendBusinessObjectJCo,BasketBackend,BackendState,SalesDocumentBackend
public class BasketERP extends SalesDocumentERP implements BasketBackend
ERP specific basket implementation. Most parts inherited fromSalesDocumentERP
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.SalesDocumentERP
additionalPricing, createProcess, deliveryPriority, erroneous, getAllStrategy, headerCondTypeFreight, isIncompletionLogRequested, isUMEDisabledWarningNecessary, itemVariantMap, lrdActionsStrategy, ORDER_HEADER_STRUCTURE, ORDER_ITEM_STRUCTURE, RESOURCE_KEY, setStrategy, showInlineConfig, STRATEGY_FACTORY_ERP, transactionConfiguration
-
Fields inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.IsaBackendBusinessObjectBaseSalesERP
docflowRead, headerDocFlow, headerPriceAttribs, headerPropMap, itemConfigChangeableMap, itemDocFlow, itemsPriceAttribMap, itemsPropMap, loadState, messageBufferMap, predecessorShipTo, savedItemsMap, setIpcPriceAttributes, shipToMap
-
Fields inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
genericFactory, moduleConfigurationAccess
-
-
Constructor Summary
Constructors Constructor Description BasketERP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SalesDocumentTypegetSalesDocumentType()Each implementing class has to define the used sales document type.voidreadForUpdateFromBackend(SalesDocument salesDocument)In the BasketERP case the readForUpdateFromBackend calls readFromBackend to avoid calling of ERP_WEC_ORDER_LOADvoidreadFromBackend(SalesDocument salesDocument, TransactionConfiguration transConf, boolean directRead)Reads Data from the back end.booleansaveInBackend(Basket basket, boolean commit)Saves the basket object in the underlying backend layer.voidupdateInBackend(SalesDocument salesDocument, TransactionConfiguration shop)Update object in the backend by putting the data into the underlying storage.-
Methods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.SalesDocumentERP
addErroneousItem, afterReadFromBackend, afterWriteDocument, checkForInitializationError, checkShippingConditions, clearErroneousItems, clearItemBuffer, closeBackendSession, createInBackend, createInBackend, deleteItemInBackend, deleteItemsInBackend, emptyInBackend, executeAdditionalPricing, fixErroneousHeader, fixErroneousItem, getAdditionalPricing, getCloseStrategy, getErroneousHeader, getErroneousItems, getGetAllStrategy, getItemBuffer, getItemVariantMap, getLrdActionsStrategy, getModuleConfigurationAccess, getPayerHandle, getSalesDocumentERPHooks, getSetStrategy, getShippingCondition, getSoldToHandle, handleInvalidHeaderAfterRead, handleInvalidHeaderAfterUpdate, handleInvalidHeaderBeforeUpdate, handleInvalidItems, handleInvalidItemsAfterRead, handleInvalidItemsAfterUpdate, initBackendObject, isBackendDown, isCreateProcess, isDocumentInitial, isErroneous, isInBackend, isItemBasedAvailability, isMultipleAddressesSupported, prepareForValidation, recoverFromBackend, removeErroneousItems, restoreErroneousHeaderAfterRead, restoreErroneousHeaderAfterSet, restoreErroneousItem, setAdditionalPricing, setCloseStrategy, setDocumentInitial, setErroneous, setErroneousHeader, setGData, setGetAllStrategy, setItemBuffer, setLoadStateCreate, setLrdActionsStrategy, setPayerHandle, setSalesDocumentERPHooks, setSetStrategy, setShippingCondition, setSoldToHandle, updateInBackend, updateInBackend, validate
-
Methods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.IsaBackendBusinessObjectBaseSalesERP
adjustFreeGoods, getHeaderDocFlow, getHeaderPriceAttribs, getHeaderPropMap, getItemDocFlow, getItemsPriceAttribMap, getItemsPropMap, getLoadState, getMessageList, getOrCreateMessageList, getSavedItemsMap, getShipToMap, isDocflowRead, removeMessageFromMessageList, setDocflowRead, setHeaderDocFlow, setItemDocFlow, setShipToMap
-
Methods inherited from class de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
getDefaultConnectionName, getDefaultDestinationName, getDefaultJCoConnection, getJCoConnection, getJCoConnection, getModuleId, setDefaultConnectionName, setDefaultDestinationName, setManagedConnectionContainer, toString
-
Methods inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
destroyBackendObject, setGenericFactory, setModuleConfigurationAccess
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.sap.core.bol.backend.BackendBusinessObject
destroyBackendObject, initBackendObject
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.interf.SalesDocumentBackend
clearItemBuffer, closeBackendSession, createInBackend, deleteItemInBackend, deleteItemsInBackend, emptyInBackend, isBackendDown, isItemBasedAvailability, isMultipleAddressesSupported, recoverFromBackend, setGData, setLoadStateCreate, updateInBackend, updateInBackend, validate
-
-
-
-
Method Detail
-
saveInBackend
public boolean saveInBackend(Basket basket, boolean commit) throws BackendException
Description copied from interface:BasketBackendSaves the basket object in the underlying backend layer.- Specified by:
saveInBackendin interfaceBasketBackend- Parameters:
basket- Basket to be saved in back endcommit- iftruealso a commit will be done in the backend- Returns:
trueonly if document saved successfully- Throws:
BackendException- Is thrown if there is an exception in the backend
-
getSalesDocumentType
public SalesDocumentType getSalesDocumentType()
Description copied from interface:SalesDocumentBackendEach implementing class has to define the used sales document type. This is e.g. used for finding the right strategies.- Specified by:
getSalesDocumentTypein interfaceSalesDocumentBackend- Returns:
- sales document type
-
readFromBackend
public void readFromBackend(SalesDocument salesDocument, TransactionConfiguration transConf, boolean directRead) throws BackendException
Description copied from interface:SalesDocumentBackendReads Data from the back end. Every document consists of two parts: the header and the items. This method retrieves the header and the item information. If a soldTo is set in the partner list, ship to information should be read- Specified by:
readFromBackendin interfaceSalesDocumentBackend- Overrides:
readFromBackendin classSalesDocumentERP- Parameters:
salesDocument- Sales Document to be readtransConf- Transaction Configuration object that holds the configuration settingsdirectRead- In case other sessions/channels update the sales document in parallel, it is only guaranteed that the most recent data is returned if direct read is set totrue, otherwise the data might be returned from a buffer.- Throws:
BackendException- in case of a back-end or communication error
-
readForUpdateFromBackend
public void readForUpdateFromBackend(SalesDocument salesDocument) throws BackendException
In the BasketERP case the readForUpdateFromBackend calls readFromBackend to avoid calling of ERP_WEC_ORDER_LOAD- Specified by:
readForUpdateFromBackendin interfaceSalesDocumentBackend- Overrides:
readForUpdateFromBackendin classSalesDocumentERP- Parameters:
salesDocument- Sales Document- Throws:
BackendException- in case of a back-end or communication error
-
updateInBackend
public void updateInBackend(SalesDocument salesDocument, TransactionConfiguration shop) throws BackendException
Description copied from class:SalesDocumentERPUpdate object in the backend by putting the data into the underlying storage.- Specified by:
updateInBackendin interfaceSalesDocumentBackend- Overrides:
updateInBackendin classSalesDocumentERP- Parameters:
salesDocument- the document to updateshop- the current shop- Throws:
BackendException- This exception is thrown if an error occurs in the back end
-
-