Interface ISetter<T>

All Known Implementing Classes:
IdentifiableFilePersistence, IdentifiableMemoryPersistence

public interface ISetter<T>
Interface for data processing components that can set (create or update) data items.
  • Method Summary

    Modifier and Type
    Method
    Description
    set(String correlationId, T entity)
    Sets a data item.
  • Method Details

    • set

      T set(String correlationId, T entity) throws org.pipservices3.commons.errors.ApplicationException
      Sets a data item. If the data item exists it updates it, otherwise it create a new data item.
      Parameters:
      correlationId - (optional) transaction id to trace execution through call chain.
      entity - a item to be set.
      Returns:
      updated item.
      Throws:
      org.pipservices3.commons.errors.ApplicationException - when error occured.