com.ibm.commerce.inventory.facade.server.services.dataaccess.bom.mediator

Class ChangeInventoryAvailabilityBasePartMediator

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ChangeInventoryAvailabilityBasePartMediator

        public ChangeInventoryAvailabilityBasePartMediator()
    • Method Detail

      • getNounPartXPaths

        public java.lang.String[] getNounPartXPaths()
        This method gets the xpath for the main noun part.
        Returns:
        The xpath for the main noun part.
      • create

        public void create(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method creates the physical entity corresponding to the logical InventoryAvailability noun.
        Parameters:
        aNoun - The logical InventoryAvailabilityType SDO business object.
        aNounPart - The logical InventoryAvailabilityType SDO business object.
        Throws:
        AbstractApplicationException
      • update

        public void update(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method updates the physical data container with the modified Inventoryavailability object.
        Parameters:
        aNoun - The logical InventoryAvailabilityType SDO business object to update.
        aNounPart - The logical InventoryAvailabilityType SDO business object to update.
        Throws:
        AbstractApplicationException
      • delete

        public void delete(java.lang.Object aNoun,
                           java.lang.Object aNounPart)
                    throws AbstractApplicationException
        This method performs no actions as the deleting noun is done by the ChangeInventoryAvailabilityMediator .
        Parameters:
        aNoun - The logical InventoryAvailabilityType SDO business object.
        aNounPart - The logical InventoryAvailabilityType SDO business object.
        Throws:
        AbstractApplicationException
      • validateCreate

        public java.util.List validateCreate(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws AbstractApplicationException
        This method performs no checking as the validation is done by the ChangeInventoryAvailabilityMediator .
        Parameters:
        aNoun - The logical InventoryAvailabilityType SDO business object.
        aNounPart - The logical InventoryAvailabilityType SDO business object.
        Returns:
        This method returns null.
        Throws:
        AbstractApplicationException
      • validateChange

        public java.util.List validateChange(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws AbstractApplicationException
        This method checks if the logical InventoryAvailabilityType noun can be updated. It checks that the noun exists in the physical data container. If the noun cannot be updated, the appropriate error exception is added to the list of exceptions to be returned to the caller.
        Parameters:
        aNoun - The logical InventoryAvailabilityType SDO business object to validate.
        aNounPart - The logical InventoryAvailabilityType SDO business object.
        Returns:
        This method returns a list of ApplicationError if there are any errors, otherwise the list will be empty.
        Throws:
        AbstractApplicationException
      • validateDelete

        public java.util.List validateDelete(java.lang.Object aNoun,
                                             java.lang.Object aNounPart)
                                      throws AbstractApplicationException
        This method performs no checking as the validation is done by the ChangeInventoryAvailabilityMediator .
        Parameters:
        aNoun - The logical InventoryAvailabilityType SDO business object.
        aNounPart - The logical InventoryAvailabilityType SDO business object.
        Returns:
        This method returns null.
        Throws:
        AbstractApplicationException
      • findPhysicalEntity

        public java.lang.Object findPhysicalEntity(java.lang.Object aNoun,
                                                   java.lang.Object aNounPart)
                                            throws AbstractApplicationException
        This method returns the Inventoryavailability physical SDO from the PhysicalDataContainer that was created in the ChangeInventoryAvailabilityMediator mediator.
        Parameters:
        aNoun - The logical InventoryAvailabilityType SDO.
        aNounPart - The logical InventoryAvailabilityType SDO.
        Returns:
        This method returns the Inventoryavailability object if it is found, otherwise it returns null.
        Throws:
        AbstractApplicationException