Class ItemTextMapper
java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.strategy.BaseMapper
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.strategy.TextMapper
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.strategy.ItemTextMapper
Handles item texts.
-
Field Summary
FieldsFields inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.strategy.TextMapper
configLangIso, configTextId, OBJECT_ID_TEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Bean initializer.voidread(com.sap.conn.jco.JCoTable etItemTextComV, ObjectInstances objInstMap, ItemList items) Handle output of header and item text.protected voidread1Row(com.sap.conn.jco.JCoTable etItemTextComV, ObjectInstances objInstMap, ItemList items) Handles item texts.protected voidsetValues(com.sap.conn.jco.JCoTable textV, com.sap.conn.jco.JCoTable textX, com.sap.conn.jco.JCoTable objInst, Item item, String itemHandle, boolean sendKeyFields, String handle) voidwrite(SalesDocument salesDoc, Set<String> itemsToBeChanged, com.sap.conn.jco.JCoTable textV, com.sap.conn.jco.JCoTable textX, com.sap.conn.jco.JCoTable objInst) Writes item texts.Methods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.strategy.TextMapper
setConfigLangIso, setConfigTextId, traceReadTexts, traceTextMethods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.strategy.BaseMapper
addToObjInst
-
Field Details
-
sapLogger
Logging instance
-
-
Constructor Details
-
ItemTextMapper
public ItemTextMapper()
-
-
Method Details
-
init
public void init()Description copied from class:BaseMapperBean initializer.Check if all mandatory values injected, else throw runtime error.
- Specified by:
initin classBaseMapper
-
read
public void read(com.sap.conn.jco.JCoTable etItemTextComV, ObjectInstances objInstMap, ItemList items) Handle output of header and item text. The ERP data is converted into header text, header answer text and item texts- Parameters:
etItemTextComV- JCO item text tableitems- BO itemsobjInstMap- Storage of object/parent object relation
-
read1Row
protected void read1Row(com.sap.conn.jco.JCoTable etItemTextComV, ObjectInstances objInstMap, ItemList items) Handles item texts. Transfers them from LO-API tables to BOL items- Parameters:
etItemTextComV-objInstMap-items- BOL item list
-
write
public void write(SalesDocument salesDoc, Set<String> itemsToBeChanged, com.sap.conn.jco.JCoTable textV, com.sap.conn.jco.JCoTable textX, com.sap.conn.jco.JCoTable objInst) Writes item texts. Fills JCO tables from the BOL items before the LO-API update call- Parameters:
salesDoc-itemsToBeChanged-textV- Text tabletextX- Table of change indicatorsobjInst-
-
setValues
protected void setValues(com.sap.conn.jco.JCoTable textV, com.sap.conn.jco.JCoTable textX, com.sap.conn.jco.JCoTable objInst, Item item, String itemHandle, boolean sendKeyFields, String handle) - Parameters:
textV-textX-objInst-item-itemHandle-sendKeyFields-handle-
-