java.lang.Object
de.hybris.platform.odata2services.odata.persistence.hook.impl.PostPersistHookAdapter
All Implemented Interfaces:
PostPersistHook

@Deprecated(since="2205", forRemoval=true) public class PostPersistHookAdapter extends Object implements PostPersistHook
Deprecated, for removal: This API element is subject to removal in a future version.
used temporary while old hooks are beeing reworked to use the new PostPersistHook interface
Adapter class to use old post persist hooks in the new persistence service
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Instantiates this adapter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Executes this hook after persisting the given item.
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PostPersistHookAdapter

      public PostPersistHookAdapter(@NotNull @NotNull PostPersistHook hook)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Instantiates this adapter
      Parameters:
      hook - a legacy hook implementation to adapt to the new hook interface
  • Method Details

    • execute

      public void execute(ItemModel item, PersistenceContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: PostPersistHook
      Executes this hook after persisting the given item.
      Specified by:
      execute in interface PostPersistHook
      Parameters:
      item - an item to execute this hook with.
      context - to provide information about the item to be persisted.
      See Also:
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Object