Class SapCpiB2BUnitPersistenceHook

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<ItemModel> execute​(ItemModel item)
      Executes this hook before persisting the given item.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SapCpiB2BUnitPersistenceHook

        public SapCpiB2BUnitPersistenceHook()
    • Method Detail

      • execute

        public java.util.Optional<ItemModel> execute​(ItemModel item)
        Description copied from interface: PrePersistHook
        Executes this hook before persisting the given item.
        Specified by:
        execute in interface PrePersistHook
        Parameters:
        item - an item to execute this hook with.
        Returns:
        result of processing/modification of the item by this hook to be persisted. If empty, that means there is no item to persist.