Interface IGetter<T extends org.pipservices3.commons.data.IIdentifiable<K>,K>

All Known Implementing Classes:
IdentifiableFilePersistence, IdentifiableMemoryPersistence

public interface IGetter<T extends org.pipservices3.commons.data.IIdentifiable<K>,K>
Interface for data processing components that can get data items.
  • Method Summary

    Modifier and Type
    Method
    Description
    getOneById(String correlationId, K id)
    Gets a data items by its unique id.
  • Method Details

    • getOneById

      T getOneById(String correlationId, K id) throws org.pipservices3.commons.errors.ApplicationException
      Gets a data items by its unique id.
      Parameters:
      correlationId - (optional) transaction id to trace execution through call chain.
      id - an id of item to be retrieved.
      Returns:
      an item by its id.
      Throws:
      org.pipservices3.commons.errors.ApplicationException - when error occured.