java.lang.Object
de.hybris.platform.sap.sapordermgmtbol.transaction.salesdocument.backend.impl.erp.strategy.ObjectInstances

public class ObjectInstances extends Object
Handles the object instance references for the LORD API. The object instances are stored in table parameter TT_OBJINST.
  • Constructor Details

    • ObjectInstances

      public ObjectInstances(com.sap.conn.jco.JCoTable ttObjInst)
      Creates a map for TT_OBJINST parameter of the LORD API. This map contains the parent relations for the objects provided in the different tables of the ERP_LORD_GET_ALL function module. Key of the map is the HANDLE.
      Parameters:
      ttObjInst - jCo Table containing the TTT_OBJINST instances
  • Method Details

    • getParent

      public String getParent(String handle)
      Returns the parent handle for a given handle.
      Parameters:
      handle - child handle
      Returns:
      handle of the parent null, when there is no object instance for the handle EMPTY_STRING, when the handle has no parent
    • getObjectType

      public String getObjectType(String handle)
      Returns the object type for a given handle. This is the value of the field OBJECT_ID.
      Parameters:
      handle - object handle
      Returns:
      the object type of the handle; null, if object type cannot be retrieved.